ip address localhost

This commit is contained in:
Jakob Meier 2022-05-30 18:00:09 +02:00
parent 048a0ea447
commit c3012cd7a4
2 changed files with 5 additions and 3 deletions

View File

@ -17,10 +17,10 @@ def handle_thermal_controller_hk_data(
pw.dlog("Received Sensor Temperature data") pw.dlog("Received Sensor Temperature data")
# get all the floats # get all the floats
tm_data = struct.unpack("!ffffffffffffffff", hk_data[: 16 * 4]) tm_data = struct.unpack("!ffffffffffffffff", hk_data[: 18 * 4])
parsed_data = {} 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_HEATSPREADER"] = tm_data[0]
parsed_data["SENSOR_PLOC_MISSIONBOARD"] = tm_data[1] parsed_data["SENSOR_PLOC_MISSIONBOARD"] = tm_data[1]
parsed_data["SENSOR_4K_CAMERA"] = tm_data[2] 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_PLPCDU_HEATSPREADER"] = tm_data[13]
parsed_data["SENSOR_TCS_BOARD"] = tm_data[14] parsed_data["SENSOR_TCS_BOARD"] = tm_data[14]
parsed_data["SENSOR_MAGNETTORQUER"] = tm_data[15] 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) TM_TCP_SERVER.report_parsed_hk_data(object_id, set_id, parsed_data)

View File

@ -8,7 +8,7 @@ from tmtccmd.utility.obj_id import ObjectId
from dle_encoder import DleEncoder from dle_encoder import DleEncoder
# TODO add to configuration parameters # TODO add to configuration parameters
SERVER_HOST = "" SERVER_HOST = "localhost"
SERVER_PORT = 7305 SERVER_PORT = 7305
LOGGER = get_console_logger() LOGGER = get_console_logger()