reaction wheel commands

This commit is contained in:
Jakob Meier 2021-06-25 12:16:35 +02:00
parent 3d26373726
commit 899cd942ce
2 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,10 @@ SOLAR_ARRAY_DEPLOYMENT_ID = bytes([0x44, 0x00, 0x10, 0x01])
SYRLINKS_HANDLER = bytes([0x44, 0x00, 0x10, 0x02])
IMTQ_HANDLER_ID = bytearray([0x44, 0x00, 0x00, 0x14])
PLOC_ID = bytearray([0x44, 0x00, 0x00, 0x15])
RW1_ID = bytearray([0x44, 0x00, 0x00, 0x15])
RW1_ID = bytearray([0x44, 0x21, 0x00, 0x1])
RW2_ID = bytearray([0x44, 0x21, 0x00, 0x2])
RW3_ID = bytearray([0x44, 0x21, 0x00, 0x3])
RW4_ID = bytearray([0x44, 0x21, 0x00, 0x4])
def get_object_ids() -> Dict[bytes, list]:

View File

@ -24,7 +24,7 @@ from pus_tc.ploc import pack_ploc_test_into
from pus_tc.heater import pack_heater_test_into
from config.definitions import CustomServiceList
from config.object_ids import P60_DOCK_HANDLER, PDU_1_HANDLER_ID, PDU_2_HANDLER_ID, ACU_HANDLER_ID, \
TMP_1075_1_HANDLER_ID, TMP_1075_2_HANDLER_ID, HEATER_ID, IMTQ_HANDLER_ID, PLOC_ID
TMP_1075_1_HANDLER_ID, TMP_1075_2_HANDLER_ID, HEATER_ID, IMTQ_HANDLER_ID, PLOC_ID, RW1_ID
LOGGER = get_logger()
@ -69,7 +69,7 @@ def pack_service_queue_user(service: Union[str, int], op_code: str, service_queu
object_id = PLOC_ID
return pack_ploc_test_into(object_id=object_id, tc_queue=service_queue)
if service == CustomServiceList.REACTION_WHEEL.value:
object_id =
object_id = RW1_ID
return pack_ploc_test_into(object_id=object_id, tc_queue=service_queue)
LOGGER.warning("Invalid Service !")