update tmtccmd

This commit is contained in:
Robin Müller 2021-09-06 19:58:39 +02:00
parent 4e4d69f6d6
commit c72eabca3e
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 8 additions and 8 deletions

View File

@ -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)

@ -1 +1 @@
Subproject commit e7df305143120985da11236b8d75f8a5387d95e5
Subproject commit 24fdc4738e1f6079116618e60feb7afd7da9c28f