add basic rw commanding framework

This commit is contained in:
Robin Müller 2022-04-28 18:59:15 +02:00
parent 443deb8556
commit 981f4f0c3e
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 13 additions and 0 deletions

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