diff --git a/pus_tc/cmd_definitions.py b/pus_tc/cmd_definitions.py index 5aea9e3..5467862 100644 --- a/pus_tc/cmd_definitions.py +++ b/pus_tc/cmd_definitions.py @@ -647,6 +647,12 @@ def add_system_cmds(cmd_dict: ServiceOpCodeDictT): info="Switch off SUS board", options=default_opts, ) + add_op_code_entry( + op_code_dict=op_code_dict, + keys=SusOpCodes.SUS_ASS_DUAL_MODE, + info="Switch SUS board to dual mode", + options=default_opts, + ) add_service_op_code_entry( srv_op_code_dict=cmd_dict, name=CustomServiceList.SUS_ASS.value, diff --git a/pus_tc/system/acs.py b/pus_tc/system/acs.py index 958a45c..86868da 100644 --- a/pus_tc/system/acs.py +++ b/pus_tc/system/acs.py @@ -112,6 +112,14 @@ def pack_sus_cmds(tc_queue: TcQueueT, op_code: str): tc_queue=tc_queue, info="Switching SUS board off", ) + if op_code in SusOpCodes.SUS_ASS_DUAL_MODE: + command_acs_board( + object_id=SUS_BOARD_ASS_ID, + mode=Modes.NORMAL, + submode=DualSideSubmodes.DUAL_SIDE, + tc_queue=tc_queue, + info="Switching to SUS board to dual side", + ) def command_acs_board(object_id: bytes, mode: Modes, submode: int, tc_queue: TcQueueT, info: str):