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

13 lines
357 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 == "0":
q.add_pus_tc(pack_service_17_ping_command())
else:
pack_generic_service17_test(q=q)