added mode commanding to hook impl

This commit is contained in:
Robin Müller 2021-12-14 16:00:26 +01:00
parent 1b6799ae9b
commit aa0dcdae1a
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C

View File

@ -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):