minor bugfixes for event handling

This commit is contained in:
2022-03-07 11:26:44 +01:00
parent 0bdc8f04a8
commit 20753e7c75
4 changed files with 12 additions and 8 deletions

View File

@ -19,15 +19,15 @@ class AcsBoardSubmodes(enum.IntEnum):
def pack_acs_command(tc_queue: TcQueueT, op_code: str):
if op_code in AcsOpCodes.ACS_ASS_A_SIDE:
tc_queue.appendleft((QueueCommands.PRINT, "Switching to ACS board assembly A side"))
tc_queue.appendleft(
(QueueCommands.PRINT, "Switching to ACS board assembly A side")
)
mode_data = pack_mode_data(
object_id=ACS_BOARD_ASS_ID,
mode=Modes.NORMAL,
submode=AcsBoardSubmodes.A_SIDE,
)
cmd = PusTelecommand(
service=200,
subservice=Subservices.COMMAND_MODE_COMMAND,
app_data=mode_data
service=200, subservice=Subservices.COMMAND_MODE_COMMAND, app_data=mode_data
)
tc_queue.appendleft(cmd.pack_command_tuple())