some adaptions

This commit is contained in:
Jakob Meier 2022-05-31 16:42:53 +02:00
parent a1cbc3bc13
commit cba2055c59
5 changed files with 11 additions and 4 deletions

View File

@ -13,7 +13,7 @@
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcgui.py" />
<option name="PARAMETERS" value="" />
<option name="PARAMETERS" value="-l" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />

View File

@ -271,7 +271,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
if op_code in OpCodes.TV_SETUP_TCS_FT_ON:
# Enable scheduling
tc_queue.appendleft(generate_enable_tc_sched_cmd().pack_command_tuple())
tc_queue.appendleft(generate_enable_tc_sched_cmd(22).pack_command_tuple())
# check whether tcs_assembly also has to be commanded to NORMAL Mode
pack_tcs_sys_commands(
tc_queue=tc_queue, op_code=TcsOpCodes.TCS_BOARD_ASS_NORMAL[0]

View File

@ -2,6 +2,8 @@ import argparse
import sys
import traceback
from typing import Optional
from tmtccmd.config.definitions import CoreModeList
from tmtccmd.config.globals import update_global, CoreGlobalIds
try:
import spacepackets
@ -57,6 +59,8 @@ def tmtcc_post_args(
ccsds_handler.add_tm_handler(apid=PUS_APID, handler=apid_handler)
tmtccmd.setup(setup_args=setup_args)
tmtccmd.add_ccsds_handler(ccsds_handler)
if use_gui:
update_global(CoreGlobalIds.MODE, CoreModeList.LISTENER_MODE)
tmtc_backend = tmtccmd.create_default_tmtc_backend(
setup_args=setup_args,
tm_handler=ccsds_handler,

@ -1 +1 @@
Subproject commit eaed332a69885c19912827eb71440e8562935d36
Subproject commit 2354f5d2778c7681ddf6602766dd4e68b943e1c0

View File

@ -1,6 +1,9 @@
#!/usr/bin/env python3
"""TMTC commander for EIVE"""
from tmtcc import tmtcc_post_args, tmtcc_pre_args
from tmtcc import (
tmtcc_post_args,
tmtcc_pre_args
)
def main():