From 1b39bb2ad2421db89487b4ea352edbd4d420b9b1 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sat, 20 Aug 2022 01:59:29 +0200 Subject: [PATCH] continued hk parsing ploc supv --- tmtc/ploc_supervisor.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tmtc/ploc_supervisor.py b/tmtc/ploc_supervisor.py index f6f9ab1..462e7a5 100644 --- a/tmtc/ploc_supervisor.py +++ b/tmtc/ploc_supervisor.py @@ -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 @@ -110,6 +111,7 @@ class SupvActionIds: class SetIds: HK_REPORT = 102 + BOOT_STATUS_REPORT = 103 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): + 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