From aa0dcdae1ac53cac007dff2dce5492a9d687b1e5 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 14 Dec 2021 16:00:26 +0100 Subject: [PATCH] added mode commanding to hook impl --- config/hook_implementation.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/hook_implementation.py b/config/hook_implementation.py index 0243b35..e3b8434 100644 --- a/config/hook_implementation.py +++ b/config/hook_implementation.py @@ -19,9 +19,14 @@ class FsfwHookBase(TmTcHookBase): return "config/tmtc_config.json" def get_service_op_code_dictionary(self) -> ServiceOpCodeDictT: - from tmtccmd.config.globals import get_default_service_op_code_dict + from tmtccmd.config.globals import get_default_service_op_code_dict, add_service_op_code_entry, add_op_code_entry def_dict = get_default_service_op_code_dict() + op_code = dict() + add_op_code_entry(op_code_dict=op_code, keys="test", info="Mode CMD Test") + add_service_op_code_entry( + srv_op_code_dict=def_dict, name="200", info="Mode MGMT", op_code_entry=op_code + ) return def_dict def add_globals_pre_args_parsing(self, gui: bool = False):