From 9de4cabcd9db8ddb9e88203b4ad9c5eaf612a112 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 16 Aug 2022 11:56:06 +0200 Subject: [PATCH] can request mgm hk now --- config/object_ids.py | 2 +- pus_tc/system/acs_ctrl.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/object_ids.py b/config/object_ids.py index c430253..180dbd8 100644 --- a/config/object_ids.py +++ b/config/object_ids.py @@ -129,7 +129,7 @@ RW_ASSEMBLY = bytes([0x73, 0x00, 0x00, 0x04]) # Controllers TCS_CONTROLLER = bytes([0x43, 0x40, 0x00, 0x01]) -ACS_CONTROLLER = bytes([0x43, 0x40, 0x00, 0x02]) +ACS_CONTROLLER = bytes([0x43, 0x00, 0x00, 0x02]) CORE_CONTROLLER_ID = bytes([0x43, 0x00, 0x00, 0x03]) diff --git a/pus_tc/system/acs_ctrl.py b/pus_tc/system/acs_ctrl.py index 320ac5b..63972b2 100644 --- a/pus_tc/system/acs_ctrl.py +++ b/pus_tc/system/acs_ctrl.py @@ -2,12 +2,15 @@ import enum from config.definitions import CustomServiceList from config.object_ids import ACS_CONTROLLER -from tmtccmd import DefaultProcedureInfo +from tmtccmd import DefaultProcedureInfo, get_console_logger from tmtccmd.config.tmtc import tmtc_definitions_provider, TmtcDefinitionWrapper, OpCodeEntry from tmtccmd.tc import DefaultPusQueueHelper, service_provider from tmtccmd.tc.pus_3_fsfw_hk import generate_one_hk_command, make_sid +LOGGER = get_console_logger() + + class SetIds(enum.IntEnum): MGM_SET = 0 @@ -47,3 +50,5 @@ def pack_acs_ctrl_command( sid = make_sid(ACS_CONTROLLER, SetIds.MGM_SET) q.add_log_cmd("Requesting one MGM HK packet") q.add_pus_tc(generate_one_hk_command(sid)) + else: + LOGGER.info(f"Unknown op code {op_code}")