Merge pull request 'fixed bug in dipoles set' (#161) from zink_imtq into main

Reviewed-on: #161
This commit is contained in:
Robin Müller 2023-03-09 17:57:01 +01:00
commit b0f51072b2
1 changed files with 1 additions and 1 deletions

View File

@ -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}")