update ACS SS commands #130
@ -56,16 +56,13 @@ def handle_event_packet(raw_tm: bytes, printer: FsfwTmTcPrinter):
|
|||||||
if info.name == "MODE_INFO":
|
if info.name == "MODE_INFO":
|
||||||
mode_name = "Unknown"
|
mode_name = "Unknown"
|
||||||
if obj_name == "ACS_SUBSYSTEM":
|
if obj_name == "ACS_SUBSYSTEM":
|
||||||
if event_def.param1 == Mode.OFF:
|
acs_mode = AcsMode(event_def.param1)
|
||||||
mode_name = "Off"
|
pw.dlog(f"ACS Mode: {acs_mode!r}")
|
||||||
elif event_def.param1 == AcsMode.IDLE:
|
elif obj_name == "ACS_CONTROLLER_ID":
|
||||||
mode_name = "Idle"
|
mode_name = Mode(event_def.param1)
|
||||||
elif event_def.param1 == AcsMode.DETUMBLE:
|
submode = AcsMode(event_def.param2)
|
||||||
mode_name = "Detumble"
|
pw.dlog(f"Mode: {mode_name!r}")
|
||||||
elif event_def.param1 == AcsMode.SAFE:
|
pw.dlog(f"ACS Mode: {submode!r}")
|
||||||
mode_name = "Safe"
|
|
||||||
elif event_def.param1 == AcsMode.TARGET_PT:
|
|
||||||
mode_name = "Target Pointing"
|
|
||||||
else:
|
else:
|
||||||
if event_def.param1 == Mode.OFF:
|
if event_def.param1 == Mode.OFF:
|
||||||
mode_name = "Off"
|
mode_name = "Off"
|
||||||
@ -75,8 +72,8 @@ def handle_event_packet(raw_tm: bytes, printer: FsfwTmTcPrinter):
|
|||||||
mode_name = "Normal"
|
mode_name = "Normal"
|
||||||
elif event_def.param1 == Mode.RAW:
|
elif event_def.param1 == Mode.RAW:
|
||||||
mode_name = "Raw"
|
mode_name = "Raw"
|
||||||
pw.dlog(f"Mode Number {event_def.param1}, Mode Name {mode_name}")
|
pw.dlog(f"Mode Number {event_def.param1}, Mode Name {mode_name}")
|
||||||
pw.dlog(f"Submode: {event_def.param2}")
|
pw.dlog(f"Submode: {event_def.param2}")
|
||||||
elif info.name == "CLOCK_SET":
|
elif info.name == "CLOCK_SET":
|
||||||
old_time = event_def.param1
|
old_time = event_def.param1
|
||||||
new_time = event_def.param2
|
new_time = event_def.param2
|
||||||
|
@ -30,7 +30,7 @@ class OpCode(str, enum.Enum):
|
|||||||
class AcsMode(enum.IntEnum):
|
class AcsMode(enum.IntEnum):
|
||||||
OFF = 0
|
OFF = 0
|
||||||
SAFE = 2
|
SAFE = 2
|
||||||
DETUMBLE = 2
|
DETUMBLE = 3
|
||||||
IDLE = 4
|
IDLE = 4
|
||||||
PTG_TARGET_NADIR = 5
|
PTG_TARGET_NADIR = 5
|
||||||
PTG_TARGET = 6
|
PTG_TARGET = 6
|
||||||
|
Loading…
Reference in New Issue
Block a user