From 0eff081ab6e36eb5f3ab62d217653cfd6c39316e Mon Sep 17 00:00:00 2001 From: "Jan.Gerhards" <jan@gerhards.net> Date: Tue, 11 Aug 2020 09:41:07 +0200 Subject: [PATCH] add error message for when service 20 TM includes invalid subservice --- tm/obsw_pus_tm_factory.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tm/obsw_pus_tm_factory.py b/tm/obsw_pus_tm_factory.py index 42c6355..734c76b 100644 --- a/tm/obsw_pus_tm_factory.py +++ b/tm/obsw_pus_tm_factory.py @@ -120,6 +120,9 @@ class Service20TM(PusTelemetry): self.param = struct.unpack('>i', self._tm_data[12:datasize])[0] if self.type_ptc == 5 and self.type_pfc == 1: self.param = struct.unpack('>f', self._tm_data[12:datasize])[0] + else: + logger.info("Error when receiving Pus Service 20 TM: subservice is != 130, but 130 is \ + only known subservice") self.specify_packet_info("Functional Commanding Reply") def append_telemetry_content(self, array): -- GitLab