some more useful printout

This commit is contained in:
Robin Müller 2022-10-11 15:38:31 +02:00
parent aaacc8babd
commit 2ab3a5cdc4
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -3,6 +3,7 @@ import os.path
from datetime import datetime from datetime import datetime
from config.object_ids import get_object_ids from config.object_ids import get_object_ids
from pus_tm.defs import PrintWrapper from pus_tm.defs import PrintWrapper
from pus_tm.verification_handler import generic_retval_printout
from tmtc.acs_subsystem import AcsModes from tmtc.acs_subsystem import AcsModes
from tmtccmd.tc.pus_200_fsfw_modes import Modes from tmtccmd.tc.pus_200_fsfw_modes import Modes
@ -52,6 +53,10 @@ def handle_event_packet(raw_tm: bytes, printer: FsfwTmTcPrinter):
) )
LOGGER.info(generic_event_string) LOGGER.info(generic_event_string)
specific_handler = True specific_handler = True
if info.name == "MODE_TRANSITION_FAILED":
reason = generic_retval_printout(tm.param_1)
for string in reason:
pw.dlog(f"Reason from event parameter 1: {string}")
if info.name == "SUPV_UPDATE_PROGRESS" or info.name == "WRITE_MEMORY_FAILED": if info.name == "SUPV_UPDATE_PROGRESS" or info.name == "WRITE_MEMORY_FAILED":
additional_event_info = f"Additional info: {info.info}" additional_event_info = f"Additional info: {info.info}"
context = ( context = (