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,
|
|
|
|
)
|
2022-07-28 16:37:01 +02:00
|
|
|
from tmtccmd.tc.queue import DefaultPusQueueHelper
|
2021-07-14 00:28:33 +02:00
|
|
|
|
|
|
|
|
2022-07-28 16:37:01 +02:00
|
|
|
def pack_service_17_commands(op_code: str, q: DefaultPusQueueHelper):
|
2021-07-14 00:28:33 +02:00
|
|
|
if op_code == "0":
|
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)
|