minor fix

This commit is contained in:
Robin Müller 2021-09-16 11:50:25 +02:00
parent b3bc1fe28c
commit 9d1cae0809
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -85,15 +85,17 @@ def pack_pdu1_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: str):
tc_queue.appendleft(command.pack_command_tuple()) tc_queue.appendleft(command.pack_command_tuple())
if op_code == "8": if op_code == "8":
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn SUS nominal on")) tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn SUS nominal on"))
command = pack_set_param_command(object_id, PDUConfigTable.out_en_4.parameter_address, command = pack_set_param_command(
PDUConfigTable.out_en_4.parameter_size, Channel.on) object_id, PDUConfigTable.out_en_4.parameter_address,
command = PusTelecommand(service=8, subservice=128, ssc=36, app_data=command) PDUConfigTable.out_en_4.parameter_size, Channel.on
)
tc_queue.appendleft(command.pack_command_tuple()) tc_queue.appendleft(command.pack_command_tuple())
if op_code == "9": if op_code == "9":
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn SUS nominal off")) tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn SUS nominal off"))
command = pack_set_param_command(object_id, PDUConfigTable.out_en_4.parameter_address, command = pack_set_param_command(
PDUConfigTable.out_en_4.parameter_size, Channel.off) object_id, PDUConfigTable.out_en_4.parameter_address,
command = PusTelecommand(service=8, subservice=128, ssc=36, app_data=command) PDUConfigTable.out_en_4.parameter_size, Channel.off
)
tc_queue.appendleft(command.pack_command_tuple()) tc_queue.appendleft(command.pack_command_tuple())
if PDU1TestProcedure.all or PDU1TestProcedure.ping: if PDU1TestProcedure.all or PDU1TestProcedure.ping: