bugfix IMTQ eng HK handling

This commit is contained in:
Robin Müller 2022-10-19 19:08:17 +02:00
parent 87e40fab0f
commit 42b962dede
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -17,7 +17,6 @@ def handle_eng_set(printer: FsfwTmTcPrinter, hk_data: bytes):
"Coil X Temperature [°C]",
"Coil Y Temperature [°C]",
"Coil Z Temperature [°C]",
"Coil Z Temperature [°C]",
"MCU Temperature [°C]",
]
digital_voltage = struct.unpack("!H", hk_data[0:2])[0]
@ -27,12 +26,12 @@ def handle_eng_set(printer: FsfwTmTcPrinter, hk_data: bytes):
coil_x_current = struct.unpack("!f", hk_data[12:16])[0]
coil_y_current = struct.unpack("!f", hk_data[16:20])[0]
coil_z_current = struct.unpack("!f", hk_data[20:24])[0]
coil_x_temperature = struct.unpack("!H", hk_data[24:26])[0]
coil_y_temperature = struct.unpack("!H", hk_data[26:28])[0]
coil_z_temperature = struct.unpack("!H", hk_data[30:32])[0]
mcu_temperature = struct.unpack("!h", hk_data[32:34])[0]
coil_x_temperature = struct.unpack("!h", hk_data[24:26])[0]
coil_y_temperature = struct.unpack("!h", hk_data[26:28])[0]
coil_z_temperature = struct.unpack("!h", hk_data[28:30])[0]
mcu_temperature = struct.unpack("!h", hk_data[30:32])[0]
validity_buffer = hk_data[42:]
validity_buffer = hk_data[32:]
content_list = [
digital_voltage,
analog_voltage,