fsfw-example-tmtc-common/pus_tc/pus_17_test.py
2022-09-12 00:53:15 +02:00

13 lines
367 B
Python

from tmtccmd.pus.pus_17_test import (
pack_service_17_ping_command,
pack_generic_service17_test,
)
from tmtccmd.tc.queue import DefaultPusQueueHelper
def pack_service_17_commands(op_code: str, q: DefaultPusQueueHelper):
if op_code in ["0", "ping"]:
q.add_pus_tc(pack_service_17_ping_command())
else:
pack_generic_service17_test(q=q)