From c7f5db0f5373d4a86ecd336d75d2d9bcb757eced Mon Sep 17 00:00:00 2001
From: "Jakob.Meier" <–meierj@irs.uni-stuttgart.de>
Date: Wed, 11 Aug 2021 17:14:30 +0200
Subject: [PATCH] op_code fix
---
.idea/runConfigurations/PDU1_Test_UDP.xml | 2 +-
pus_tc/pdu1.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.idea/runConfigurations/PDU1_Test_UDP.xml b/.idea/runConfigurations/PDU1_Test_UDP.xml
index 7e5d81c..5c13b3b 100644
--- a/.idea/runConfigurations/PDU1_Test_UDP.xml
+++ b/.idea/runConfigurations/PDU1_Test_UDP.xml
@@ -13,7 +13,7 @@
-
+
diff --git a/pus_tc/pdu1.py b/pus_tc/pdu1.py
index 083511f..1f1a78d 100644
--- a/pus_tc/pdu1.py
+++ b/pus_tc/pdu1.py
@@ -27,13 +27,13 @@ class PDU1TestProcedure:
turn_channel_2_on = False # Star Tracker connected to this channel (5V)
turn_channel_2_off = False
turn_channel_3_on = False # MTQ connected to this channel (5V)
- turn_channel_3_off = True
+ turn_channel_3_off = False
-def pack_pdu1_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: str):
+def pack_pdu1_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: str) -> TcQueueT:
tc_queue.appendleft((QueueCommands.PRINT, "Commanding PDU1"))
- if op_code == 1:
+ if op_code == "1":
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Turn star tracker on"))
command = pack_set_param_command(object_id, PDUConfigTable.out_en_2.parameter_address,
PDUConfigTable.out_en_2.parameter_size, Channel.on)