From db0cbf620e63c03947b8b93779d2e86267ef8ddf Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 18 Jan 2023 15:36:09 +0100 Subject: [PATCH] bugfix for syrlinks HK code --- eive_tmtc/pus_tc/devs/syrlinks_hk_handler.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/eive_tmtc/pus_tc/devs/syrlinks_hk_handler.py b/eive_tmtc/pus_tc/devs/syrlinks_hk_handler.py index 84cd894..b48e416 100644 --- a/eive_tmtc/pus_tc/devs/syrlinks_hk_handler.py +++ b/eive_tmtc/pus_tc/devs/syrlinks_hk_handler.py @@ -14,7 +14,10 @@ from tmtccmd.config.tmtc import ( OpCodeEntry, ) from tmtccmd.tc import DefaultPusQueueHelper -from tmtccmd.tc.pus_3_fsfw_hk import make_sid, generate_one_hk_command +from tmtccmd.tc.pus_3_fsfw_hk import ( + make_sid, + create_request_one_diag_command, +) from spacepackets.ecss.tc import PusTelecommand from tmtccmd.tc.pus_200_fsfw_modes import pack_mode_data, Mode import struct @@ -25,6 +28,7 @@ from tmtccmd.util import ObjectIdU32 class SetId: RX_REGISTERS_DATASET = 1 TX_REGISTERS_DATASET = 2 + TEMPERATURE_SET_ID = 3 class OpCode: @@ -125,11 +129,11 @@ def pack_syrlinks_command( if op_code in OpCode.HK_RX_REGS: q.add_log_cmd(f"{prefix}: {Info.HK_RX_REGS}") sid = make_sid(obyt, SetId.RX_REGISTERS_DATASET) - q.add_pus_tc(generate_one_hk_command(sid)) + q.add_pus_tc(create_request_one_diag_command(sid)) if op_code in OpCode.HK_TX_REGS: q.add_log_cmd(f"{prefix}: {Info.HK_TX_REGS}") sid = make_sid(obyt, SetId.TX_REGISTERS_DATASET) - q.add_pus_tc(generate_one_hk_command(sid)) + q.add_pus_tc(create_request_one_diag_command(sid)) if op_code in OpCode.TX_STATUS: q.add_log_cmd(f"{prefix}: {Info.TX_STATUS}") command = obyt + struct.pack("!I", CommandId.READ_TX_STATUS)