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

13 lines
367 B
Python
Raw Normal View History

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,
)
from tmtccmd.tc.queue import DefaultPusQueueHelper
2021-07-14 00:28:33 +02:00
def pack_service_17_commands(op_code: str, q: DefaultPusQueueHelper):
2022-09-12 00:53:15 +02:00
if op_code in ["0", "ping"]:
2022-07-03 20:58:32 +02:00
q.add_pus_tc(pack_service_17_ping_command())
2021-07-14 00:28:33 +02:00
else:
2022-07-03 20:58:32 +02:00
pack_generic_service17_test(q=q)