continued hk parsing ploc supv

This commit is contained in:
Robin Müller 2022-08-20 01:59:29 +02:00
parent 00e99292cc
commit 1b39bb2ad2
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -11,6 +11,7 @@ import struct
from config.object_ids import PLOC_SUPV_ID, get_object_ids from config.object_ids import PLOC_SUPV_ID, get_object_ids
from config.definitions import CustomServiceList from config.definitions import CustomServiceList
from pus_tm.defs import PrintWrapper
from spacepackets.ecss.tc import PusTelecommand from spacepackets.ecss.tc import PusTelecommand
from tmtccmd.tc.pus_3_fsfw_hk import generate_one_hk_command, make_sid from tmtccmd.tc.pus_3_fsfw_hk import generate_one_hk_command, make_sid
from tmtccmd.config import TmtcDefinitionWrapper from tmtccmd.config import TmtcDefinitionWrapper
@ -110,6 +111,7 @@ class SupvActionIds:
class SetIds: class SetIds:
HK_REPORT = 102 HK_REPORT = 102
BOOT_STATUS_REPORT = 103
class SupvHkIds: class SupvHkIds:
@ -685,4 +687,14 @@ def get_event_buffer_path() -> str:
def handle_supv_hk_data(set_id: int, hk_data: bytes, printer: FsfwTmTcPrinter): 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 pass