From d4b6fe90b8bacae787862380554b38c4737f63d7 Mon Sep 17 00:00:00 2001
From: "Robin.Mueller" <robin.mueller.m@gmail.com>
Date: Mon, 6 Jul 2020 15:36:54 +0200
Subject: [PATCH] hmm, this is kind of annoying..

---
 obsw_user_code.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/obsw_user_code.py b/obsw_user_code.py
index 571ff27..54534b8 100644
--- a/obsw_user_code.py
+++ b/obsw_user_code.py
@@ -2,13 +2,21 @@
 User defined code can be added here.
 """
 from typing import Tuple, Union
-from tc.obsw_pus_tc_base import  PusTcInfo
+from tc.obsw_pus_tc_base import  PusTcInfo, PusTelecommand
+from tc.obsw_pus_tc_frame_packer import pack_tc_frame
+
 
 def command_preparation_hook() -> Tuple[bytearray, Union[None, PusTcInfo]]:
     """
     Can be used to pack user-defined commands.
     """
-    pass
+    command = PusTelecommand(service=17, subservice=1, ssc=20)
+    command2 = PusTelecommand(service=17, subservice=1, ssc=21)
+    tc_list = list()
+    tc_list.append(command)
+    tc_list.append(command2)
+    frame, frame_size, num_packets = pack_tc_frame(tc_list, 256)
+    return frame, None
 
 def global_setup_hook():
     """
-- 
GitLab