diff --git a/obsw_user_code.py b/obsw_user_code.py index 571ff27d696bc13fec49cfd10462277ab67d4c8c..54534b8a52f645462f780e821207e581e2840806 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(): """