add SUS temp handling
This commit is contained in:
parent
c9790911ef
commit
aba0dd8ebb
@ -144,9 +144,6 @@ def handle_thermal_controller_hk_data(
|
|||||||
printer.file_logger.info(str(parsed_data))
|
printer.file_logger.info(str(parsed_data))
|
||||||
pp = pprint.PrettyPrinter(depth=4)
|
pp = pprint.PrettyPrinter(depth=4)
|
||||||
pp.pprint(parsed_data)
|
pp.pprint(parsed_data)
|
||||||
# tcp_server_sensor_temperatures.report_parsed_hk_data(
|
|
||||||
# object_id, set_id, parsed_data
|
|
||||||
# )
|
|
||||||
elif set_id == SetId.DEVICE_SENSORS:
|
elif set_id == SetId.DEVICE_SENSORS:
|
||||||
pw = PrintWrapper(printer)
|
pw = PrintWrapper(printer)
|
||||||
pw.dlog("Received device temperature data")
|
pw.dlog("Received device temperature data")
|
||||||
@ -184,29 +181,25 @@ def handle_thermal_controller_hk_data(
|
|||||||
printer.file_logger.info(str(parsed_data))
|
printer.file_logger.info(str(parsed_data))
|
||||||
pp = pprint.PrettyPrinter(depth=4)
|
pp = pprint.PrettyPrinter(depth=4)
|
||||||
pp.pprint(parsed_data)
|
pp.pprint(parsed_data)
|
||||||
# print(parsed_data)
|
|
||||||
# tcp_server_device_temperatures.report_parsed_hk_data(
|
|
||||||
# object_id, set_id, parsed_data
|
|
||||||
# )
|
|
||||||
elif set_id == SetId.SUS_TEMP_SENSORS:
|
elif set_id == SetId.SUS_TEMP_SENSORS:
|
||||||
pass
|
pw = PrintWrapper(printer)
|
||||||
# pw = PrintWrapper(printer)
|
pw.dlog("Received SUS temperature data")
|
||||||
# pw.dlog("Received SUS temperature data")
|
fmt_str = "!ffffffffffffffffff"
|
||||||
# fmt_str = "!ffffffffffffffffff"
|
tm_data = struct.unpack(fmt_str, hk_data[: 4 * 18])
|
||||||
# tm_data = struct.unpack(fmt_str, hk_data[:4 * 18])
|
parsed_data = {
|
||||||
# parsed_data = {
|
"SUS_0": tm_data[0],
|
||||||
# "SUS_0": tm_data[0],
|
"SUS_1": tm_data[1],
|
||||||
# "SUS_1": tm_data[1],
|
"SUS_2": tm_data[2],
|
||||||
# "SUS_2": tm_data[2],
|
"SUS_3": tm_data[3],
|
||||||
# "SUS_3": tm_data[3],
|
"SUS_4": tm_data[4],
|
||||||
# "SUS_4": tm_data[4],
|
"SUS_5": tm_data[5],
|
||||||
# "SUS_5": tm_data[5],
|
"SUS_6": tm_data[6],
|
||||||
# "SUS_6": tm_data[6],
|
"SUS_7": tm_data[7],
|
||||||
# "SUS_7": tm_data[7],
|
"SUS_8": tm_data[8],
|
||||||
# "SUS_8": tm_data[8],
|
"SUS_9": tm_data[9],
|
||||||
# "SUS_9": tm_data[9],
|
"SUS_10": tm_data[10],
|
||||||
# "SUS_10": tm_data[10],
|
"SUS_11": tm_data[11],
|
||||||
# "SUS_11": tm_data[11],
|
}
|
||||||
# }
|
printer.file_logger.info(str(parsed_data))
|
||||||
# print(parsed_data)
|
pp = pprint.PrettyPrinter(depth=4)
|
||||||
# TODO: Forward data to space simulator
|
pp.pprint(parsed_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user