now it works
This commit is contained in:
parent
37806e428f
commit
2165f376fb
@ -3,6 +3,9 @@
|
|||||||
<module name="tmtc" />
|
<module name="tmtc" />
|
||||||
<option name="INTERPRETER_OPTIONS" value="" />
|
<option name="INTERPRETER_OPTIONS" value="" />
|
||||||
<option name="PARENT_ENVS" value="true" />
|
<option name="PARENT_ENVS" value="true" />
|
||||||
|
<envs>
|
||||||
|
<env name="PYTHONUNBUFFERED" value="1" />
|
||||||
|
</envs>
|
||||||
<option name="SDK_HOME" value="" />
|
<option name="SDK_HOME" value="" />
|
||||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||||
<option name="IS_MODULE_SDK" value="true" />
|
<option name="IS_MODULE_SDK" value="true" />
|
||||||
@ -12,7 +15,7 @@
|
|||||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcc.py" />
|
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcc.py" />
|
||||||
<option name="PARAMETERS" value="" />
|
<option name="PARAMETERS" value="" />
|
||||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
<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="MODULE_MODE" value="false" />
|
||||||
<option name="REDIRECT_INPUT" value="false" />
|
<option name="REDIRECT_INPUT" value="false" />
|
||||||
<option name="INPUT_FILE" value="" />
|
<option name="INPUT_FILE" value="" />
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
from . import acs_ctrl
|
@ -2,6 +2,7 @@ import enum
|
|||||||
|
|
||||||
from config.definitions import CustomServiceList
|
from config.definitions import CustomServiceList
|
||||||
from config.object_ids import ACS_CONTROLLER
|
from config.object_ids import ACS_CONTROLLER
|
||||||
|
from tmtccmd import DefaultProcedureInfo
|
||||||
from tmtccmd.config.tmtc import tmtc_definitions_provider, TmtcDefinitionWrapper, OpCodeEntry
|
from tmtccmd.config.tmtc import tmtc_definitions_provider, TmtcDefinitionWrapper, OpCodeEntry
|
||||||
from tmtccmd.tc import DefaultPusQueueHelper, service_provider
|
from tmtccmd.tc import DefaultPusQueueHelper, service_provider
|
||||||
from tmtccmd.tc.pus_3_fsfw_hk import generate_one_hk_command, make_sid
|
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)
|
@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:
|
if op_code in OpCodes.REQUEST_MGM_HK:
|
||||||
sid = make_sid(ACS_CONTROLLER, SetIds.MGM_SET)
|
sid = make_sid(ACS_CONTROLLER, SetIds.MGM_SET)
|
||||||
q.add_log_cmd("Requesting one MGM HK packet")
|
q.add_log_cmd("Requesting one MGM HK packet")
|
||||||
|
Loading…
Reference in New Issue
Block a user