From d188b10f6409fe7a957d6ed2c5769fc7cb32578e Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 14 Mar 2022 17:40:01 +0100 Subject: [PATCH] plpcdu tmtc fixes --- pus_tc/devs/plpcdu.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pus_tc/devs/plpcdu.py b/pus_tc/devs/plpcdu.py index b11be7d..9473db8 100644 --- a/pus_tc/devs/plpcdu.py +++ b/pus_tc/devs/plpcdu.py @@ -82,14 +82,14 @@ def pack_pl_pcdu_commands(tc_queue: TcQueueT, op_code: str): tc_queue.appendleft((QueueCommands.PRINT, "Switching PL PCDU on")) mode_data = pack_mode_data(object_id=PL_PCDU_ID, mode=Modes.ON, submode=0) mode_cmd = PusTelecommand( - service=200, subservice=Subservices.SWITCH_MODE, app_data=mode_data + service=200, subservice=Subservices.COMMAND_MODE_COMMAND, app_data=mode_data ) tc_queue.appendleft(mode_cmd.pack_command_tuple()) if op_code in OpCodes.SWITCH_OFF: tc_queue.appendleft((QueueCommands.PRINT, "Switching PL PCDU off")) mode_data = pack_mode_data(object_id=PL_PCDU_ID, mode=Modes.OFF, submode=0) mode_cmd = PusTelecommand( - service=200, subservice=Subservices.SWITCH_MODE, app_data=mode_data + service=200, subservice=Subservices.COMMAND_MODE_COMMAND, app_data=mode_data ) tc_queue.appendleft(mode_cmd.pack_command_tuple()) if op_code in OpCodes.SWITCH_ADC_NORMAL: @@ -100,7 +100,7 @@ def pack_pl_pcdu_commands(tc_queue: TcQueueT, op_code: str): object_id=PL_PCDU_ID, mode=Modes.NORMAL, submode=Submodes.ADC_ON ) mode_cmd = PusTelecommand( - service=200, subservice=Subservices.SWITCH_MODE, app_data=mode_data + service=200, subservice=Subservices.COMMAND_MODE_COMMAND, app_data=mode_data ) tc_queue.appendleft(mode_cmd.pack_command_tuple()) if op_code in OpCodes.SWITCH_ALL_NORMAL: @@ -114,7 +114,7 @@ def pack_pl_pcdu_commands(tc_queue: TcQueueT, op_code: str): object_id=PL_PCDU_ID, mode=Modes.NORMAL, submode=Submodes.ALL_ON ) mode_cmd = PusTelecommand( - service=200, subservice=Subservices.SWITCH_MODE, app_data=mode_data + service=200, subservice=Subservices.COMMAND_MODE_COMMAND, app_data=mode_data ) tc_queue.appendleft(mode_cmd.pack_command_tuple()) if op_code in OpCodes.UPDATE_DRO_TO_X8_WAIT: