Skip to content
Snippets Groups Projects
Commit d4b6fe90 authored by Robin Mueller's avatar Robin Mueller
Browse files

hmm, this is kind of annoying..

parent d2b52d1f
No related branches found
No related tags found
No related merge requests found
......@@ -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():
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment