From 42b962dede547975488e72b22abe2360065c0404 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 19 Oct 2022 19:08:17 +0200 Subject: [PATCH] bugfix IMTQ eng HK handling --- pus_tm/devs/imtq_mgt.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pus_tm/devs/imtq_mgt.py b/pus_tm/devs/imtq_mgt.py index 591b695..dcb8f67 100644 --- a/pus_tm/devs/imtq_mgt.py +++ b/pus_tm/devs/imtq_mgt.py @@ -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,