Merge remote-tracking branch 'origin/main' into mueller/update-ploc-supv-cmds

This commit is contained in:
Robin Müller 2022-08-22 17:15:24 +02:00
commit 88c2d9fe52

View File

@ -11,6 +11,7 @@ import struct
from config.object_ids import PLOC_SUPV_ID, get_object_ids
from config.definitions import CustomServiceList
from pus_tm.defs import PrintWrapper
from spacepackets.ecss.tc import PusTelecommand
from tmtccmd.tc.pus_3_fsfw_hk import generate_one_hk_command, make_sid
from tmtccmd.config import TmtcDefinitionWrapper
@ -112,6 +113,7 @@ class SupvActionIds:
class SetIds:
HK_REPORT = 102
BOOT_STATUS_REPORT = 103
class SupvHkIds:
@ -719,4 +721,14 @@ def get_event_buffer_path() -> str:
def handle_supv_hk_data(set_id: int, hk_data: bytes, printer: FsfwTmTcPrinter):
pw = PrintWrapper(printer)
if set_id == SetIds.HK_REPORT:
# TODO: Implement
pass
elif set_id == SetIds.BOOT_STATUS_REPORT:
# TODO: Implement
pass
else:
pw.dlog(f"PLOC SUPV: HK handling not implemented for set ID {set_id}")
pw.dlog(f"Raw Data: 0x[{hk_data.hex(sep=',')}]")
pass