Skip to content
Snippets Groups Projects
Commit 0eff081a authored by Jan Gerhards's avatar Jan Gerhards
Browse files

add error message for when service 20 TM includes invalid subservice

parent a940958a
Branches
No related tags found
No related merge requests found
...@@ -120,6 +120,9 @@ class Service20TM(PusTelemetry): ...@@ -120,6 +120,9 @@ class Service20TM(PusTelemetry):
self.param = struct.unpack('>i', self._tm_data[12:datasize])[0] self.param = struct.unpack('>i', self._tm_data[12:datasize])[0]
if self.type_ptc == 5 and self.type_pfc == 1: if self.type_ptc == 5 and self.type_pfc == 1:
self.param = struct.unpack('>f', self._tm_data[12:datasize])[0] 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") self.specify_packet_info("Functional Commanding Reply")
def append_telemetry_content(self, array): def append_telemetry_content(self, array):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment