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

15 lines
424 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,
)
from tmtccmd.tc.queue import DefaultPusQueueHelper
2023-01-13 11:07:08 +01:00
from tmtccmd.logging import get_console_logger
LOGGER = get_console_logger()
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:
2023-01-13 11:07:08 +01:00
LOGGER.warning(f"Invalid op code {op_code}")