From aaa4537b2d7b3211843e50d2d7b2ce8c70dac224 Mon Sep 17 00:00:00 2001
From: "Robin.Mueller" <robin.mueller.m@gmail.com>
Date: Tue, 26 May 2020 01:03:44 +0200
Subject: [PATCH] added setting off to srv8 test

---
 tc/obsw_tc_service8.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tc/obsw_tc_service8.py b/tc/obsw_tc_service8.py
index bc0b859..5d1b818 100644
--- a/tc/obsw_tc_service8.py
+++ b/tc/obsw_tc_service8.py
@@ -51,7 +51,14 @@ def pack_service8_test_into(tc_queue: Deque, called_externally: bool = False) ->
     direct_command = object_id + action_id
     command = PusTelecommand(service=8, subservice=128, ssc=840, app_data=direct_command)
     tc_queue.appendleft(command.pack_command_tuple())
+
+    # set mode off
+    tc_queue.appendleft(("print", "Testing Service 8: Set Off Mode"))
+    mode_data = pack_mode_data(object_id, 0, 0)
+    command = PusTelecommand(service=200, subservice=1, ssc=800, app_data=mode_data)
+    tc_queue.appendleft(command.pack_command_tuple())
     tc_queue.appendleft(("wait", 2))
+
     if called_externally is False:
         tc_queue.appendleft(("export", "log/tmtc_log_service8.txt"))
     return tc_queue
-- 
GitLab