diff --git a/pus_tc/devs/rws.py b/pus_tc/devs/rws.py new file mode 100644 index 0000000..b838c9f --- /dev/null +++ b/pus_tc/devs/rws.py @@ -0,0 +1,5 @@ +from config.object_ids import RW1_ID, RW2_ID, RW3_ID, RW4_ID + + +def pack_rw_cmds(op_code: str): + pass diff --git a/pus_tc/tc_packer_hook.py b/pus_tc/tc_packer_hook.py index 420a768..00b50f6 100644 --- a/pus_tc/tc_packer_hook.py +++ b/pus_tc/tc_packer_hook.py @@ -40,6 +40,7 @@ from pus_tc.system.time import pack_set_current_time_ascii_command from pus_tc.system.acs import pack_acs_command, pack_sus_cmds from pus_tc.devs.plpcdu import pack_pl_pcdu_commands from pus_tc.devs.str_img_helper import pack_str_img_helper_command +from pus_tc.devs.rws import pack_rw_cmds from pus_tc.system.tcs import pack_tcs_sys_commands from config.definitions import CustomServiceList from config.object_ids import ( @@ -233,6 +234,13 @@ def pack_service_queue_user( return pack_tcs_sys_commands(tc_queue=service_queue, op_code=op_code) if service == CustomServiceList.TIME.value: return pack_set_current_time_ascii_command(tc_queue=service_queue, ssc=0) + if service in [ + CustomServiceList.REACTION_WHEEL_1, + CustomServiceList.REACTION_WHEEL_2, + CustomServiceList.REACTION_WHEEL_3, + CustomServiceList.REACTION_WHEEL_4 + ]: + return pack_rw_cmds(op_code=op_code) LOGGER.warning("Invalid Service !")