bugfix IMTQ eng HK handling
This commit is contained in:
parent
87e40fab0f
commit
42b962dede
@ -17,7 +17,6 @@ def handle_eng_set(printer: FsfwTmTcPrinter, hk_data: bytes):
|
|||||||
"Coil X Temperature [°C]",
|
"Coil X Temperature [°C]",
|
||||||
"Coil Y Temperature [°C]",
|
"Coil Y Temperature [°C]",
|
||||||
"Coil Z Temperature [°C]",
|
"Coil Z Temperature [°C]",
|
||||||
"Coil Z Temperature [°C]",
|
|
||||||
"MCU Temperature [°C]",
|
"MCU Temperature [°C]",
|
||||||
]
|
]
|
||||||
digital_voltage = struct.unpack("!H", hk_data[0:2])[0]
|
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_x_current = struct.unpack("!f", hk_data[12:16])[0]
|
||||||
coil_y_current = struct.unpack("!f", hk_data[16:20])[0]
|
coil_y_current = struct.unpack("!f", hk_data[16:20])[0]
|
||||||
coil_z_current = struct.unpack("!f", hk_data[20:24])[0]
|
coil_z_current = struct.unpack("!f", hk_data[20:24])[0]
|
||||||
coil_x_temperature = struct.unpack("!H", hk_data[24:26])[0]
|
coil_x_temperature = struct.unpack("!h", hk_data[24:26])[0]
|
||||||
coil_y_temperature = struct.unpack("!H", hk_data[26:28])[0]
|
coil_y_temperature = struct.unpack("!h", hk_data[26:28])[0]
|
||||||
coil_z_temperature = struct.unpack("!H", hk_data[30:32])[0]
|
coil_z_temperature = struct.unpack("!h", hk_data[28:30])[0]
|
||||||
mcu_temperature = struct.unpack("!h", hk_data[32:34])[0]
|
mcu_temperature = struct.unpack("!h", hk_data[30:32])[0]
|
||||||
|
|
||||||
validity_buffer = hk_data[42:]
|
validity_buffer = hk_data[32:]
|
||||||
content_list = [
|
content_list = [
|
||||||
digital_voltage,
|
digital_voltage,
|
||||||
analog_voltage,
|
analog_voltage,
|
||||||
|
Loading…
Reference in New Issue
Block a user