basic code to dump TCs/TMs to bin
This commit is contained in:
parent
f99ca2f8d8
commit
0d596a5547
4
tmtcc.py
4
tmtcc.py
@ -170,6 +170,8 @@ class PusHandler(SpecificApidHandlerBase):
|
||||
self.raw_logger = raw_logger
|
||||
|
||||
def handle_tm(self, packet: bytes, _user_args: any):
|
||||
# with open("tc.bin", "wb") as of:
|
||||
# of.write(packet)
|
||||
pus_factory_hook(packet, self.verif_wrapper, self.printer, self.raw_logger)
|
||||
|
||||
|
||||
@ -255,6 +257,8 @@ class TcHandler(TcHandlerBase):
|
||||
self.high_level_file_logger.info(
|
||||
f"{get_current_time_string(True)}: {tc_info_string}"
|
||||
)
|
||||
# with open("tc.bin", "wb") as of:
|
||||
# of.write(raw_tc)
|
||||
send_params.com_if.send(raw_tc)
|
||||
elif entry_helper.entry_type == TcQueueEntryType.CCSDS_TC:
|
||||
cfdp_packet_in_ccsds = entry_helper.to_space_packet_entry()
|
||||
|
Loading…
Reference in New Issue
Block a user