diff --git a/pus_tm/system/tcs.py b/pus_tm/system/tcs.py index 867347c..f7392fe 100644 --- a/pus_tm/system/tcs.py +++ b/pus_tm/system/tcs.py @@ -17,10 +17,10 @@ def handle_thermal_controller_hk_data( pw.dlog("Received Sensor Temperature data") # get all the floats - tm_data = struct.unpack("!ffffffffffffffff", hk_data[: 16 * 4]) + tm_data = struct.unpack("!ffffffffffffffff", hk_data[: 18 * 4]) parsed_data = {} - # put them into an nice dictionary + # put them into a nice dictionary parsed_data["SENSOR_PLOC_HEATSPREADER"] = tm_data[0] parsed_data["SENSOR_PLOC_MISSIONBOARD"] = tm_data[1] parsed_data["SENSOR_4K_CAMERA"] = tm_data[2] @@ -37,5 +37,7 @@ def handle_thermal_controller_hk_data( parsed_data["SENSOR_PLPCDU_HEATSPREADER"] = tm_data[13] parsed_data["SENSOR_TCS_BOARD"] = tm_data[14] parsed_data["SENSOR_MAGNETTORQUER"] = tm_data[15] + parsed_data["TMP1075 1"] = tm_data[16] + parsed_data["TMP1075 2"] = tm_data[17] TM_TCP_SERVER.report_parsed_hk_data(object_id, set_id, parsed_data) diff --git a/pus_tm/tm_tcp_server.py b/pus_tm/tm_tcp_server.py index f6d0e88..f0d7f61 100644 --- a/pus_tm/tm_tcp_server.py +++ b/pus_tm/tm_tcp_server.py @@ -8,7 +8,7 @@ from tmtccmd.utility.obj_id import ObjectId from dle_encoder import DleEncoder # TODO add to configuration parameters -SERVER_HOST = "" +SERVER_HOST = "localhost" SERVER_PORT = 7305 LOGGER = get_console_logger()