HK Parsing and TC PROC Tests #76
24
.run/tmtcloop.run.xml
Normal file
24
.run/tmtcloop.run.xml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="tmtcloop" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
|
||||||
|
<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" />
|
||||||
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||||
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||||
|
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||||
|
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcloop.py" />
|
||||||
|
<option name="PARAMETERS" value="" />
|
||||||
|
<option name="SHOW_COMMAND_LINE" 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="" />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
</component>
|
@ -968,7 +968,7 @@ def add_proc_cmds(cmd_dict: ServiceOpCodeDictT):
|
|||||||
op_code_dict=op_code_dict, keys=OpCodes.PCDU_FT, info=KAI.PCDU_FT[1]
|
op_code_dict=op_code_dict, keys=OpCodes.PCDU_FT, info=KAI.PCDU_FT[1]
|
||||||
)
|
)
|
||||||
add_op_code_entry(
|
add_op_code_entry(
|
||||||
op_code_dict=op_code_dict, keys=OpCodes.CORE_FT, info=KAI.CORE_FT[1]
|
op_code_dict=op_code_dict, keys=OpCodes.CORE_FT, info=KAI.CORE_FT[1], options={}
|
||||||
)
|
)
|
||||||
add_service_op_code_entry(
|
add_service_op_code_entry(
|
||||||
srv_op_code_dict=cmd_dict,
|
srv_op_code_dict=cmd_dict,
|
||||||
|
@ -18,4 +18,4 @@ def handle_core_hk_data(printer: FsfwTmTcPrinter, set_id: int, hk_data: bytes):
|
|||||||
f"PL Voltage [mV] {pl_voltage}"
|
f"PL Voltage [mV] {pl_voltage}"
|
||||||
)
|
)
|
||||||
pw.dlog(printout)
|
pw.dlog(printout)
|
||||||
printer.print_validity_buffer(validity_buffer=hk_data[inc_len:], num_vars=4)
|
printer.print_validity_buffer(validity_buffer=hk_data[inc_len:], num_vars=3)
|
||||||
|
2
tmtccmd
2
tmtccmd
@ -1 +1 @@
|
|||||||
Subproject commit cf0afec762de4077f89b8da1f43b98e993fca6d0
|
Subproject commit 163ed8c5d5295a511bfee72f4a62864aa67e59be
|
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""EIVE TMTC Commander"""
|
"""EIVE TMTC Commander"""
|
||||||
from distutils.log import debug
|
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
@ -63,11 +62,11 @@ def main():
|
|||||||
|
|
||||||
tmtc_backend.set_mode(CoreModeList.CONTINUOUS_MODE)
|
tmtc_backend.set_mode(CoreModeList.CONTINUOUS_MODE)
|
||||||
|
|
||||||
get_console_logger().info("Disabling console logger for continuous operation")
|
# get_console_logger().info("Disabling console logger for continuous operation")
|
||||||
get_console_logger().setLevel("ERROR")
|
# get_console_logger().setLevel("ERROR")
|
||||||
|
|
||||||
tmtccmd.init_and_start_daemons(tmtc_backend=tmtc_backend)
|
tmtccmd.init_and_start_daemons(tmtc_backend=tmtc_backend)
|
||||||
tmtccmd.performOperation(tmtc_backend=tmtc_backend)
|
tmtc_backend.perform_operation()
|
||||||
|
|
||||||
# remove cmdline args so that we can reuse code
|
# remove cmdline args so that we can reuse code
|
||||||
sys.argv = sys.argv[:1]
|
sys.argv = sys.argv[:1]
|
||||||
@ -81,7 +80,7 @@ def main():
|
|||||||
tmtc_backend.set_opcode(args.op_code)
|
tmtc_backend.set_opcode(args.op_code)
|
||||||
tmtc_backend.set_mode(CoreModeList.CONTINUOUS_MODE)
|
tmtc_backend.set_mode(CoreModeList.CONTINUOUS_MODE)
|
||||||
|
|
||||||
tmtccmd.performOperation(tmtc_backend=tmtc_backend)
|
tmtc_backend.perform_operation()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user