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

continue implementing test for service 20

parent ca339ef6
No related branches found
No related tags found
No related merge requests found
......@@ -105,17 +105,23 @@ class Service17TM(PusTelemetry):
class Service20TM(PusTelemetry):
def __init__(self, byte_array):
super().__init__(byte_array)
self.parameter_id = struct.unpack('>I', self._tm_data[0:4])[0]
self.objectId = struct.unpack('>I', self._tm_data[0:4])[0]
self.parameter_id = struct.unpack('>I', self._tm_data[4:8])[0]
self.param = struct.unpack('>I', self._tm_data[8:12])[0]
self.specify_packet_info("Functional Commanding Reply")
def append_telemetry_content(self, array):
super().append_telemetry_content(array)
array.append(hex(self.objectId))
array.append(self.parameter_id)
array.append(str(hex(self.param)))
return
def append_telemetry_column_headers(self, array):
super().append_telemetry_column_headers(array)
array.append("param0_dump_repl")
array.append("objectID")
array.append("parameterID")
array.append("parameter")
return
class Service200TM(PusTelemetry):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment