From 1238df03834b0b9ddbe2a59565de493661f5476e Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 25 Feb 2022 19:27:39 +0100 Subject: [PATCH] enabled mode command handling --- pus_tm/factory_hook.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pus_tm/factory_hook.py b/pus_tm/factory_hook.py index 74d73dd..2e1f726 100644 --- a/pus_tm/factory_hook.py +++ b/pus_tm/factory_hook.py @@ -10,6 +10,7 @@ from tmtccmd.utility.logger import get_console_logger from tmtccmd.pus.service_1_verification import Service1TMExtended from tmtccmd.pus.service_17_test import Service17TMExtended from tmtccmd.tm.service_3_housekeeping import Service3TM +from tmtccmd.tm.service_200_mode import Service200TM from tmtccmd.tm.service_5_event import Service5TM from tmtccmd.utility.tmtc_printer import TmTcPrinter, PrintFormats @@ -44,6 +45,8 @@ def pus_factory_hook(raw_tm_packet: bytearray, tmtc_printer: TmTcPrinter): tm_packet = Service8TM.unpack(raw_telemetry=raw_tm_packet) if service_type == 17: tm_packet = Service17TMExtended.unpack(raw_telemetry=raw_tm_packet) + if service_type == 200: + tm_packet = Service200TM.unpack(raw_telemetry=raw_tm_packet) if tm_packet is None: LOGGER.info( f"The service {service_type} is not implemented in Telemetry Factory"