From 77de0d301a980e1a090110c0b197b13c466628e6 Mon Sep 17 00:00:00 2001
From: "Robin.Mueller" <robin.mueller.m@gmail.com>
Date: Thu, 11 Jun 2020 03:10:52 +0200
Subject: [PATCH] problems with srv3..

---
 ...TmTcClient_GPS1_Serial.xml => tmtcclient_GPS1_Serial.xml} | 4 ++--
 ...ervice_3_Serial_.xml => tmtcclient_Service_3_Serial_.xml} | 2 +-
 tc/obsw_tc_service3.py                                       | 5 ++++-
 3 files changed, 7 insertions(+), 4 deletions(-)
 rename .idea/runConfigurations/{OBSW_TmTcClient_GPS1_Serial.xml => tmtcclient_GPS1_Serial.xml} (81%)
 rename .idea/runConfigurations/{OBSW_TmTcClient_Service_3_Serial_.xml => tmtcclient_Service_3_Serial_.xml} (86%)

diff --git a/.idea/runConfigurations/OBSW_TmTcClient_GPS1_Serial.xml b/.idea/runConfigurations/tmtcclient_GPS1_Serial.xml
similarity index 81%
rename from .idea/runConfigurations/OBSW_TmTcClient_GPS1_Serial.xml
rename to .idea/runConfigurations/tmtcclient_GPS1_Serial.xml
index 122ed72..1f8098a 100644
--- a/.idea/runConfigurations/OBSW_TmTcClient_GPS1_Serial.xml
+++ b/.idea/runConfigurations/tmtcclient_GPS1_Serial.xml
@@ -1,5 +1,5 @@
 <component name="ProjectRunConfigurationManager">
-  <configuration default="false" name="OBSW_TmTcClient GPS1 Serial" type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
+  <configuration default="false" name="tmtcclient GPS1 Serial" type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
     <module name="tmtc" />
     <option name="INTERPRETER_OPTIONS" value="" />
     <option name="PARENT_ENVS" value="true" />
@@ -13,7 +13,7 @@
     <option name="ADD_SOURCE_ROOTS" value="true" />
     <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
     <option name="SCRIPT_NAME" value="$PROJECT_DIR$/obsw_tmtc_client.py" />
-    <option name="PARAMETERS" value="-m 3 -s GPS1 -c 1" />
+    <option name="PARAMETERS" value="-m 3 -s GPS1 -c 1 -t 3" />
     <option name="SHOW_COMMAND_LINE" value="false" />
     <option name="EMULATE_TERMINAL" value="true" />
     <option name="MODULE_MODE" value="false" />
diff --git a/.idea/runConfigurations/OBSW_TmTcClient_Service_3_Serial_.xml b/.idea/runConfigurations/tmtcclient_Service_3_Serial_.xml
similarity index 86%
rename from .idea/runConfigurations/OBSW_TmTcClient_Service_3_Serial_.xml
rename to .idea/runConfigurations/tmtcclient_Service_3_Serial_.xml
index 642285d..7b0db83 100644
--- a/.idea/runConfigurations/OBSW_TmTcClient_Service_3_Serial_.xml
+++ b/.idea/runConfigurations/tmtcclient_Service_3_Serial_.xml
@@ -1,5 +1,5 @@
 <component name="ProjectRunConfigurationManager">
-  <configuration default="false" name="OBSW_TmTcClient Service 3 Serial " type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
+  <configuration default="false" name="tmtcclient Service 3 Serial " type="PythonConfigurationType" factoryName="Python" folderName="Serial Communication">
     <module name="tmtc" />
     <option name="INTERPRETER_OPTIONS" value="" />
     <option name="PARENT_ENVS" value="true" />
diff --git a/tc/obsw_tc_service3.py b/tc/obsw_tc_service3.py
index 89d9061..f488cad 100644
--- a/tc/obsw_tc_service3.py
+++ b/tc/obsw_tc_service3.py
@@ -26,16 +26,18 @@ hk_definition = sid_test + collection_interval_hk + number_of_parameters + p1 +
 diag_definition = (sid_custom + collection_interval_diag + number_of_parameters +
                         p1 + p2 + p3 + p4 + p5)
 
+
 def pack_service3_test_into(tc_queue: Deque) -> Deque:
     tc_queue.appendleft(("print", "Testing Service 3"))
     # Predefined packet testing
-    # pack_predefined_tests(tc_queue)
+    pack_predefined_tests(tc_queue)
 
     pack_custom_tests(tc_queue)
 
     tc_queue.appendleft(("export", "log/tmtc_log_service3.txt"))
     return tc_queue
 
+
 def pack_predefined_tests(tc_queue: Deque):
     # enable gps0
     tc_queue.appendleft(("print", "Testing Service 3: Enable GPS definition"))
@@ -80,6 +82,7 @@ def pack_predefined_tests(tc_queue: Deque):
     command = PusTelecommand(service=3, subservice=27, ssc=3070, app_data=sid_test)
     tc_queue.appendleft(command.pack_command_tuple())
 
+
 def pack_custom_tests(tc_queue: Deque):
     # deleting pre-defined test entry
     tc_queue.appendleft(("print", "Testing Service 3: Deleting pre-defined HK definition"))
-- 
GitLab