RW CMDs #61

Merged
muellerr merged 21 commits from mueller/rw-cmds into develop 2022-05-11 17:59:50 +02:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit 981f4f0c3e - Show all commits

5
pus_tc/devs/rws.py Normal file
View File

@ -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

View File

@ -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 !")