cleaned up structure a bit
This commit is contained in:
parent
5f3a50a82a
commit
0d7b0d0184
@ -1,5 +1,5 @@
|
|||||||
import argparse
|
import argparse
|
||||||
from typing import Union, Dict, Tuple
|
from typing import Union, Dict
|
||||||
|
|
||||||
from tmtccmd.config.definitions import (
|
from tmtccmd.config.definitions import (
|
||||||
ServiceOpCodeDictT,
|
ServiceOpCodeDictT,
|
||||||
@ -13,7 +13,6 @@ from tmtccmd.core.backend import TmTcHandler
|
|||||||
from tmtccmd.config.hook import TmTcHookBase
|
from tmtccmd.config.hook import TmTcHookBase
|
||||||
from tmtccmd.utility.tmtc_printer import TmTcPrinter
|
from tmtccmd.utility.tmtc_printer import TmTcPrinter
|
||||||
from tmtccmd.config.globals import OpCodeDictKeys
|
from tmtccmd.config.globals import OpCodeDictKeys
|
||||||
from config.object_ids import RW1_ID
|
|
||||||
|
|
||||||
from config.definitions import CustomServiceList
|
from config.definitions import CustomServiceList
|
||||||
|
|
||||||
@ -103,7 +102,7 @@ class EiveHookObject(TmTcHookBase):
|
|||||||
def handle_service_5_event(
|
def handle_service_5_event(
|
||||||
object_id: bytes, event_id: int, param_1: int, param_2: int
|
object_id: bytes, event_id: int, param_1: int, param_2: int
|
||||||
) -> str:
|
) -> str:
|
||||||
from config.event_handler import handle_event_packet
|
from pus_tm.event_handler import handle_event_packet
|
||||||
return handle_event_packet(
|
return handle_event_packet(
|
||||||
object_id=object_id,
|
object_id=object_id,
|
||||||
event_id=event_id,
|
event_id=event_id,
|
||||||
@ -113,7 +112,7 @@ class EiveHookObject(TmTcHookBase):
|
|||||||
|
|
||||||
|
|
||||||
def get_eive_service_op_code_dict(service_op_code_dict: ServiceOpCodeDictT):
|
def get_eive_service_op_code_dict(service_op_code_dict: ServiceOpCodeDictT):
|
||||||
from config.cmd_definitions import (
|
from pus_tc.cmd_definitions import (
|
||||||
add_bpx_cmd_definitions,
|
add_bpx_cmd_definitions,
|
||||||
add_core_controller_definitions,
|
add_core_controller_definitions,
|
||||||
add_pcdu_cmds,
|
add_pcdu_cmds,
|
||||||
@ -123,7 +122,7 @@ def get_eive_service_op_code_dict(service_op_code_dict: ServiceOpCodeDictT):
|
|||||||
add_rad_sens_cmds,
|
add_rad_sens_cmds,
|
||||||
add_ploc_cmds,
|
add_ploc_cmds,
|
||||||
)
|
)
|
||||||
from pus_tc.gps import GpsOpCodes
|
from pus_tc.devs.gps import GpsOpCodes
|
||||||
|
|
||||||
add_bpx_cmd_definitions(cmd_dict=service_op_code_dict)
|
add_bpx_cmd_definitions(cmd_dict=service_op_code_dict)
|
||||||
add_core_controller_definitions(cmd_dict=service_op_code_dict)
|
add_core_controller_definitions(cmd_dict=service_op_code_dict)
|
||||||
|
@ -6,12 +6,7 @@ from tmtccmd.tc.service_200_mode import pack_mode_data, Modes
|
|||||||
from tmtccmd.tc.packer import PusTelecommand
|
from tmtccmd.tc.packer import PusTelecommand
|
||||||
from config.object_ids import (
|
from config.object_ids import (
|
||||||
MGM_0_HANDLER_ID,
|
MGM_0_HANDLER_ID,
|
||||||
MGM_1_HANDLER_ID,
|
|
||||||
MGM_2_HANDLER_ID,
|
|
||||||
MGM_3_HANDLER_ID,
|
|
||||||
)
|
)
|
||||||
from pus_tc.pdu1 import pack_pdu1_commands, Pdu1OpCodes
|
|
||||||
from pus_tc.pdu2 import pack_pdu2_commands, Pdu2OpCodes
|
|
||||||
|
|
||||||
|
|
||||||
class AcsOpCodes(enum.Enum):
|
class AcsOpCodes(enum.Enum):
|
||||||
|
@ -6,7 +6,7 @@ from tmtccmd.config import (
|
|||||||
OpCodeDictKeys,
|
OpCodeDictKeys,
|
||||||
)
|
)
|
||||||
from config.definitions import CustomServiceList
|
from config.definitions import CustomServiceList
|
||||||
from pus_tc.bpx_batt import BpxOpCodes
|
from pus_tc.devs.bpx_batt import BpxOpCodes
|
||||||
|
|
||||||
|
|
||||||
def add_bpx_cmd_definitions(cmd_dict: ServiceOpCodeDictT):
|
def add_bpx_cmd_definitions(cmd_dict: ServiceOpCodeDictT):
|
||||||
@ -160,7 +160,7 @@ def add_pl_pcdu_cmds(cmd_dict: ServiceOpCodeDictT):
|
|||||||
|
|
||||||
def add_pcdu_cmds(cmd_dict: ServiceOpCodeDictT):
|
def add_pcdu_cmds(cmd_dict: ServiceOpCodeDictT):
|
||||||
from pus_tc.p60dock import P60OpCodes, GomspaceOpCodes
|
from pus_tc.p60dock import P60OpCodes, GomspaceOpCodes
|
||||||
from pus_tc.pdu1 import Pdu1OpCodes
|
from pus_tc.devs.pdu1 import Pdu1OpCodes
|
||||||
from pus_tc.pdu2 import Pdu2OpCodes
|
from pus_tc.pdu2 import Pdu2OpCodes
|
||||||
|
|
||||||
op_code_dict = dict()
|
op_code_dict = dict()
|
0
pus_tc/devs/__init__.py
Normal file
0
pus_tc/devs/__init__.py
Normal file
@ -13,8 +13,8 @@ from tmtccmd.pus.service_17_test import pack_service_17_ping_command
|
|||||||
from pus_tc.service_200_mode import pack_service200_test_into
|
from pus_tc.service_200_mode import pack_service200_test_into
|
||||||
from pus_tc.p60dock import pack_p60dock_test_into
|
from pus_tc.p60dock import pack_p60dock_test_into
|
||||||
from pus_tc.pdu2 import pack_pdu2_commands
|
from pus_tc.pdu2 import pack_pdu2_commands
|
||||||
from pus_tc.pdu1 import pack_pdu1_commands
|
from pus_tc.devs.pdu1 import pack_pdu1_commands
|
||||||
from pus_tc.bpx_batt import pack_bpx_commands
|
from pus_tc.devs.bpx_batt import pack_bpx_commands
|
||||||
from pus_tc.acu import pack_acu_test_into
|
from pus_tc.acu import pack_acu_test_into
|
||||||
from pus_tc.imtq import pack_imtq_test_into
|
from pus_tc.imtq import pack_imtq_test_into
|
||||||
from pus_tc.tmp1075 import pack_tmp1075_test_into
|
from pus_tc.tmp1075 import pack_tmp1075_test_into
|
||||||
@ -25,11 +25,11 @@ from pus_tc.reaction_wheels import pack_single_rw_test_into
|
|||||||
from pus_tc.rad_sensor import pack_rad_sensor_test_into
|
from pus_tc.rad_sensor import pack_rad_sensor_test_into
|
||||||
from pus_tc.ploc_upater import pack_ploc_updater_test_into
|
from pus_tc.ploc_upater import pack_ploc_updater_test_into
|
||||||
from pus_tc.ploc_memory_dumper import pack_ploc_memory_dumper_cmd
|
from pus_tc.ploc_memory_dumper import pack_ploc_memory_dumper_cmd
|
||||||
from pus_tc.ccsds_handler import pack_ccsds_handler_test
|
from pus_tc.devs.ccsds_handler import pack_ccsds_handler_test
|
||||||
from pus_tc.core import pack_core_commands
|
from pus_tc.core import pack_core_commands
|
||||||
from pus_tc.star_tracker import pack_star_tracker_commands
|
from pus_tc.star_tracker import pack_star_tracker_commands
|
||||||
from pus_tc.syrlinks_hk_handler import pack_syrlinks_command
|
from pus_tc.syrlinks_hk_handler import pack_syrlinks_command
|
||||||
from pus_tc.gps import pack_gps_command
|
from pus_tc.devs.gps import pack_gps_command
|
||||||
from pus_tc.acs import pack_acs_command
|
from pus_tc.acs import pack_acs_command
|
||||||
from pus_tc.plpcdu import pack_pl_pcdu_commands
|
from pus_tc.plpcdu import pack_pl_pcdu_commands
|
||||||
from pus_tc.str_img_helper import pack_str_img_helper_command
|
from pus_tc.str_img_helper import pack_str_img_helper_command
|
||||||
|
@ -6,7 +6,7 @@ import datetime
|
|||||||
from tmtccmd.config.definitions import HkReplyUnpacked
|
from tmtccmd.config.definitions import HkReplyUnpacked
|
||||||
from tmtccmd.tm.service_3_fsfw_housekeeping import Service3Base
|
from tmtccmd.tm.service_3_fsfw_housekeeping import Service3Base
|
||||||
from tmtccmd.utility.logger import get_console_logger
|
from tmtccmd.utility.logger import get_console_logger
|
||||||
from pus_tc.bpx_batt import BpxSetIds
|
from pus_tc.devs.bpx_batt import BpxSetIds
|
||||||
from pus_tc.syrlinks_hk_handler import SetIds
|
from pus_tc.syrlinks_hk_handler import SetIds
|
||||||
from pus_tc.imtq import ImtqSetIds
|
from pus_tc.imtq import ImtqSetIds
|
||||||
from config.object_ids import (
|
from config.object_ids import (
|
||||||
|
Loading…
Reference in New Issue
Block a user