this is hardcore

This commit is contained in:
2023-11-22 10:51:26 +01:00
parent b3920524ab
commit ba24faefa9
5 changed files with 31 additions and 19 deletions

View File

@ -1,14 +1,15 @@
from typing import Optional
from eive_tmtc.config.definitions import SPACE_PACKET_IDS
from eive_tmtc.tmtc.time import create_time_node
from tmtccmd import HookBase, CcsdsTmtcBackend
from tmtccmd import CcsdsTmtcBackend, HookBase
from tmtccmd.com import ComInterface
from tmtccmd.config import CmdTreeNode
from eive_tmtc.config.retvals import get_retval_dict
from tmtccmd.util import ObjectIdDictT, RetvalDictT
from eive_tmtc.config.definitions import SPACE_PACKET_IDS
from eive_tmtc.config.retvals import get_retval_dict
from eive_tmtc.tmtc.time import create_time_node
from eive_tmtc.tmtc.acs.acs_ctrl import create_acs_ctrl_node
class EiveHookObject(HookBase):
def __init__(self, json_cfg_path: str):
@ -40,10 +41,6 @@ class EiveHookObject(HookBase):
gyro_devs = CmdTreeNode("gyro_devs", "Gyro Devices")
acs_brd_assy_node.add_child(mgm_devs)
acs_brd_assy_node.add_child(gyro_devs)
acs_ctrl = CmdTreeNode("acs_ctrl", "ACS Controller")
acs_ctrl.add_child(mode_node)
acs_ctrl.add_child(action_node)
acs_ctrl.add_child(param_node)
rws = CmdTreeNode("rws", "Reaction Wheel Devices")
rw_assy = CmdTreeNode("rw_assy", "Reaction Wheel Assembly")
rw_1 = CmdTreeNode("rw_1", "Reaction Wheel 1")
@ -66,7 +63,7 @@ class EiveHookObject(HookBase):
gnss_devs = CmdTreeNode("gnss", "GNSS Devices")
acs_node.add_child(acs_brd_assy_node)
acs_node.add_child(acs_ctrl)
acs_node.add_child(create_acs_ctrl_node())
acs_node.add_child(mode_node)
acs_node.add_child(rws)
acs_node.add_child(mgt)
@ -130,8 +127,8 @@ class EiveHookObject(HookBase):
def get_communication_interface(self, com_if_key: str) -> Optional[ComInterface]:
from tmtccmd.config.com import (
create_com_interface_default,
create_com_interface_cfg_default,
create_com_interface_default,
)
assert self.cfg_path is not None