commands to enable and disable star tracker filestamping
This commit is contained in:
@ -82,6 +82,8 @@ class StarTrackerActionIds:
|
||||
LOG_SUBSCRIPTION = 82
|
||||
DEBUG_CAMERA = 83
|
||||
FIRMWARE_UPDATE = 84
|
||||
DISBALE_TIMESTAMP_GENERATION = 85
|
||||
ENABLE_TIMESTAMP_GENERATION = 86
|
||||
|
||||
|
||||
class FileDefs:
|
||||
@ -96,8 +98,8 @@ class FileDefs:
|
||||
downloadFpgaImageName = "testname"
|
||||
uploadFpgaImageName = "/mnt/sd0/startracker/fpga-image.bin"
|
||||
egseGroundConfig = "/home/pi/arcsec/ground-config.json"
|
||||
egseFlightConfig = "/home/pi/arcsec/flight-config.json"
|
||||
q7sGroundConfig = "/mnt/sd0/startracker/ground-config.json"
|
||||
egseFlightConfig = "/home/pi/arcsec/json/flight-config.json"
|
||||
q7sGroundConfig = "/mnt/sd0/startracker/json/ground-config.json"
|
||||
q7sFlightConfig = "/mnt/sd0/startracker/flight-config.json"
|
||||
firmware2_1 = "/home/pi/arcsec/firmware/sagitta2-1.bin"
|
||||
firmware22_1 = "/home/pi/arcsec/firmware/sagitta-22.1.bin"
|
||||
@ -649,6 +651,16 @@ def pack_star_tracker_commands(
|
||||
command = object_id + struct.pack('!I', StarTrackerActionIds.FIRMWARE_UPDATE) + bytearray(firmware, "utf-8")
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=87, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
if op_code == "70":
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Star tracker: Disable timestamp generation"))
|
||||
command = object_id + struct.pack('!I', StarTrackerActionIds.DISBALE_TIMESTAMP_GENERATION)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=88, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
if op_code == "71":
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Star tracker: Enable timestamp generation"))
|
||||
command = object_id + struct.pack('!I', StarTrackerActionIds.DISBALE_TIMESTAMP_GENERATION)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=89, 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