fsfw-example-tmtc-common/pus_tc/pus_17_test.py

15 lines
454 B
Python
Raw Normal View History

2021-07-14 01:27:38 +02:00
from tmtccmd.tc.definitions import TcQueueT
2022-05-18 23:40:13 +02:00
from tmtccmd.pus.pus_17_test import (
2021-12-14 15:46:00 +01:00
pack_service_17_ping_command,
pack_generic_service17_test,
)
2021-07-14 00:28:33 +02:00
def pack_service_17_commands(op_code: str, init_ssc: int, tc_queue: TcQueueT):
if op_code == "0":
2021-12-14 15:46:00 +01:00
tc_queue.appendleft(
pack_service_17_ping_command(ssc=init_ssc).pack_command_tuple()
)
2021-07-14 00:28:33 +02:00
else:
pack_generic_service17_test(tc_queue=tc_queue, init_ssc=init_ssc)