thats a large set

This commit is contained in:
2023-03-08 19:57:28 +01:00
parent 4386b18049
commit ed5cb87cad
3 changed files with 82 additions and 7 deletions

View File

@ -462,12 +462,9 @@ def handle_dipole_set(printer: FsfwTmTcPrinter, hk_data: bytes):
pw.dlog("Received iMTQ dipole set")
fmt_str = "!hhhH"
fmt_len = struct.calcsize(fmt_str)
(
dipole_x,
dipole_y,
dipole_z,
current_torque_duration
) = struct.unpack(fmt_str, hk_data)
(dipole_x, dipole_y, dipole_z, current_torque_duration) = struct.unpack(
fmt_str, hk_data
)
pw.dlog(f"Dipole X: {dipole_x}")
pw.dlog(f"Dipole Y: {dipole_y}")
pw.dlog(f"Dipole Z: {dipole_z}")