reset pl command

This commit is contained in:
Jakob Meier
2022-04-28 11:29:26 +02:00
parent 5de92a366a
commit 16ebba3f5b
2 changed files with 7 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class SupvActionIds:
LOGGING_CLEAR_COUNTERS = 55
LOGGING_SET_TOPIC = 56
REQUEST_ADC_REPORT = 57
RESET_PL = 58
class SupvHkIds:
@ -466,6 +467,11 @@ def pack_ploc_supv_commands(
command = object_id + struct.pack('!I', SupvActionIds.REQUEST_ADC_REPORT)
command = PusTelecommand(service=8, subservice=128, ssc=70, app_data=command)
tc_queue.appendleft(command.pack_command_tuple())
elif op_code == "56":
tc_queue.appendleft((QueueCommands.PRINT, "PLOC Supervisor: Reset PL"))
command = object_id + struct.pack('!I', SupvActionIds.RESET_PL)
command = PusTelecommand(service=8, subservice=128, ssc=71, app_data=command)
tc_queue.appendleft(command.pack_command_tuple())
return tc_queue