v1.9.0 #53
@ -27,16 +27,16 @@ def pus_factory_hook(raw_tm_packet: bytearray, tmtc_printer: TmTcPrinter):
|
||||
service_type = raw_tm_packet[7]
|
||||
tm_packet = None
|
||||
if service_type == 1:
|
||||
tm_packet = Service1TM(raw_tm_packet)
|
||||
tm_packet = Service1TM.unpack(raw_telemetry=raw_tm_packet)
|
||||
if service_type == 3:
|
||||
tm_packet = Service3TM(raw_tm_packet)
|
||||
tm_packet = Service3TM.unpack(raw_telemetry=raw_tm_packet, custom_hk_handling=False)
|
||||
if service_type == 5:
|
||||
tm_packet = Service5TM(raw_tm_packet)
|
||||
tm_packet = Service5TM.unpack(raw_telemetry=raw_tm_packet)
|
||||
if service_type == 8:
|
||||
tm_packet = Service8TM(raw_tm_packet)
|
||||
tm_packet = Service8TM.unpack(raw_telemetry=raw_tm_packet)
|
||||
if service_type == 17:
|
||||
tm_packet = Service17TM(raw_tm_packet)
|
||||
tm_packet = Service17TM.unpack(raw_telemetry=raw_tm_packet)
|
||||
if tm_packet is None:
|
||||
LOGGER.info(f'The service {service_type} is not implemented in Telemetry Factory')
|
||||
tm_packet = PusTelemetry(raw_tm_packet)
|
||||
tmtc_printer.print_telemetry(packet=tm_packet)
|
||||
tm_packet = PusTelemetry.unpack(raw_telemetry=raw_tm_packet)
|
||||
tmtc_printer.print_telemetry(packet_if=tm_packet, info_if=tm_packet, print_raw_tm=False)
|
||||
|
2
tmtccmd
2
tmtccmd
@ -1 +1 @@
|
||||
Subproject commit e7df305143120985da11236b8d75f8a5387d95e5
|
||||
Subproject commit 24fdc4738e1f6079116618e60feb7afd7da9c28f
|
Loading…
Reference in New Issue
Block a user