some adaptions
This commit is contained in:
4
tmtcc.py
4
tmtcc.py
@ -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,
|
||||
|
Reference in New Issue
Block a user