request star tracker parameters commands
This commit is contained in:
@ -59,6 +59,9 @@ class StarTrackerActionIds:
|
||||
CHANGE_FPGA_DOWNLOAD_FILE = 64
|
||||
UPLOAD_FPGA_IMAGE = 65
|
||||
FPGA_ACTION = 66
|
||||
REQ_CAMERA_PARAMS = 67
|
||||
REQ_LIMITS = 68
|
||||
REQ_BLOB_PARAMS = 69
|
||||
|
||||
|
||||
class ImagePathDefs:
|
||||
@ -370,6 +373,21 @@ def pack_star_tracker_commands(object_id: bytearray, tc_queue: TcQueueT, op_code
|
||||
command = object_id + struct.pack('!I', StarTrackerActionIds.UNLOCK)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=70, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
if op_code == "48":
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Star tracker: Request camera parameters"))
|
||||
command = object_id + struct.pack('!I', StarTrackerActionIds.REQ_CAMERA_PARAMS)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=71, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
if op_code == "49":
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Star tracker: Request limits"))
|
||||
command = object_id + struct.pack('!I', StarTrackerActionIds.REQ_LIMITS)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=72, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
if op_code == "50":
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Star tracker: Request blob parameters"))
|
||||
command = object_id + struct.pack('!I', StarTrackerActionIds.REQ_BLOB_PARAMS)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=73, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
|
||||
|
||||
def pack_write_command(object_id: bytearray) -> bytearray:
|
||||
|
Reference in New Issue
Block a user