Skip to content
Snippets Groups Projects
Commit 066362af authored by Robin Mueller's avatar Robin Mueller
Browse files

enabled load command

parent 4cf1a094
No related branches found
No related tags found
No related merge requests found
......@@ -56,12 +56,12 @@ def pack_service20_test_into(tc_queue: Deque, called_externally: bool = False) -
#tc_queue.appendleft(command.pack_command_tuple())
#test checking Load for uint32_t
#tc_queue.appendleft(("print", "Testing Service 20: Load uint32_t"))
#parameter_id = struct.pack(">I", parameterID0)
#parameter_data = struct.pack(">I", 42)
#payload = object_id + parameter_id + parameter_data
#command = PusTelecommand(service=20, subservice=128, ssc=2001, app_data=payload)
#tc_queue.appendleft(command.pack_command_tuple())
tc_queue.appendleft(("print", "Testing Service 20: Load uint32_t"))
parameter_id = struct.pack(">I", parameterID0)
parameter_data = struct.pack(">I", 42)
payload = object_id + parameter_id + parameter_data
command = PusTelecommand(service=20, subservice=128, ssc=2001, app_data=payload)
tc_queue.appendleft(command.pack_command_tuple())
#test checking Dump for uint32_t
tc_queue.appendleft(("print", "Testing Service 20: Dump uint32_t"))
......
......@@ -122,7 +122,7 @@ class Service20TM(PusTelemetry):
array.append(hex(self.objectId))
array.append(self.parameter_id)
if self.get_subservice() == 130:
array.append(str("ptc: " + self.type_ptc + "| pfc: " + self.type_pfc))
array.append("PTC: " + str(self.type_ptc) + " | PFC: " + str(self.type_pfc))
array.append(str(self.column))
array.append(str(self.row))
array.append(str(hex(self.param)))
......
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