now it works

This commit is contained in:
Robin Müller 2022-08-16 11:44:49 +02:00
parent 37806e428f
commit 2165f376fb
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 11 additions and 2 deletions

View File

@ -3,6 +3,9 @@
<module name="tmtc" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
@ -12,7 +15,7 @@
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcc.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="EMULATE_TERMINAL" value="true" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />

View File

@ -0,0 +1 @@
from . import acs_ctrl

View File

@ -2,6 +2,7 @@ import enum
from config.definitions import CustomServiceList
from config.object_ids import ACS_CONTROLLER
from tmtccmd import DefaultProcedureInfo
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
@ -37,7 +38,11 @@ def acs_cmd_defs(defs: TmtcDefinitionWrapper):
@service_provider(CustomServiceList.ACS_CTRL.value)
def pack_acs_ctrl_command(q: DefaultPusQueueHelper, op_code: str):
def pack_acs_ctrl_command(
_info: DefaultProcedureInfo,
q: DefaultPusQueueHelper,
op_code: str
):
if op_code in OpCodes.REQUEST_MGM_HK:
sid = make_sid(ACS_CONTROLLER, SetIds.MGM_SET)
q.add_log_cmd("Requesting one MGM HK packet")