fixes
This commit is contained in:
@ -11,9 +11,9 @@ import argparse
|
||||
# All globals can be added here and will be part of a globals dictionary.
|
||||
from config.definitions import CustomServiceList
|
||||
from config.custom_mode_op import CustomModeList
|
||||
from tmtccmd.core.definitions import CoreComInterfaces
|
||||
from tmtccmd.core.definitions import CoreComInterfaces, CoreServiceList
|
||||
from tmtccmd.defaults.globals_setup import set_default_globals_pre_args_parsing, \
|
||||
set_default_globals_post_args_parsing
|
||||
set_default_globals_post_args_parsing, get_core_service_dict
|
||||
from tmtccmd.core.globals_manager import update_global
|
||||
from tmtccmd.core.definitions import CoreGlobalIds
|
||||
from tmtccmd.utility.tmtcc_logger import get_logger
|
||||
@ -27,20 +27,11 @@ class CustomGlobalIds(enum.Enum):
|
||||
|
||||
|
||||
def set_globals_pre_args_parsing(gui: bool = False):
|
||||
set_default_globals_pre_args_parsing(apid=0x65, com_if_id=CoreComInterfaces.EthernetUDP)
|
||||
set_default_globals_pre_args_parsing(apid=0x65, com_if_id=CoreComInterfaces.TCPIP_UDP)
|
||||
|
||||
servicelist = dict()
|
||||
servicelist[CustomServiceList.SERVICE_2] = ["Service 2 Raw Commanding"]
|
||||
servicelist[CustomServiceList.SERVICE_3] = ["Service 3 Housekeeping"]
|
||||
servicelist[CustomServiceList.SERVICE_5] = ["Service 5 Event"]
|
||||
servicelist[CustomServiceList.SERVICE_8] = ["Service 8 Functional Commanding"]
|
||||
servicelist[CustomServiceList.SERVICE_9] = ["Service 9 Time"]
|
||||
servicelist[CustomServiceList.SERVICE_17] = ["Service 17 Test"]
|
||||
servicelist[CustomServiceList.SERVICE_20] = ["Service 20 Parameters"]
|
||||
servicelist[CustomServiceList.SERVICE_23] = ["Service 23 File Management"]
|
||||
servicelist[CustomServiceList.SERVICE_200] = ["Service 200 Mode Management"]
|
||||
update_global(CoreGlobalIds.SERVICE, CustomServiceList.SERVICE_17)
|
||||
update_global(CoreGlobalIds.SERVICELIST, servicelist)
|
||||
servicelist = get_core_service_dict()
|
||||
update_global(CoreGlobalIds.CURRENT_SERVICE, CoreServiceList.SERVICE_17)
|
||||
update_global(CoreGlobalIds.SERVICE_DICT, servicelist)
|
||||
|
||||
|
||||
def add_globals_post_args_parsing(args: argparse.Namespace):
|
||||
|
Reference in New Issue
Block a user