From be5cf32dc8dfe70bb346a390bd74e3975df9a0d3 Mon Sep 17 00:00:00 2001 From: Julia Zink Date: Thu, 9 Mar 2023 17:50:40 +0100 Subject: [PATCH] fixed bug in dipoles set --- eive_tmtc/tmtc/acs/imtq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eive_tmtc/tmtc/acs/imtq.py b/eive_tmtc/tmtc/acs/imtq.py index 6c13a03..710a608 100644 --- a/eive_tmtc/tmtc/acs/imtq.py +++ b/eive_tmtc/tmtc/acs/imtq.py @@ -463,7 +463,7 @@ def handle_dipole_set(printer: FsfwTmTcPrinter, hk_data: bytes): fmt_str = "!hhhH" fmt_len = struct.calcsize(fmt_str) (dipole_x, dipole_y, dipole_z, current_torque_duration) = struct.unpack( - fmt_str, hk_data + fmt_str, hk_data[0:8] ) pw.dlog(f"Dipole X: {dipole_x}") pw.dlog(f"Dipole Y: {dipole_y}")