This commit is contained in:
@ -5,7 +5,7 @@ import struct
|
||||
from eive_tmtc.config.definitions import CustomServiceList
|
||||
from eive_tmtc.pus_tm.defs import PrintWrapper
|
||||
from spacepackets.ecss import PusTelecommand
|
||||
from tmtccmd.config import TmtcDefinitionWrapper, OpCodeEntry
|
||||
from tmtccmd.config import CmdTreeNode, TmtcDefinitionWrapper, OpCodeEntry
|
||||
from tmtccmd.config.tmtc import tmtc_definitions_provider
|
||||
|
||||
from tmtccmd.tmtc import DefaultPusQueueHelper
|
||||
@ -95,6 +95,15 @@ class CmdInfo:
|
||||
WRITE_CONFIG = "Write config"
|
||||
|
||||
|
||||
def create_rtd_node() -> CmdTreeNode:
|
||||
node = CmdTreeNode("rtd", "RTD commands", hide_children_which_are_leaves=True)
|
||||
node.add_child(CmdTreeNode(CmdStr.ON, CmdInfo.ON))
|
||||
node.add_child(CmdTreeNode(CmdStr.NORMAL, CmdInfo.NORMAL))
|
||||
node.add_child(CmdTreeNode(CmdStr.OFF, CmdInfo.OFF))
|
||||
node.add_child(CmdTreeNode(CmdStr.WRITE_CONFIG, CmdInfo.WRITE_CONFIG))
|
||||
return node
|
||||
|
||||
|
||||
@tmtc_definitions_provider
|
||||
def specify_rtd_cmds(defs: TmtcDefinitionWrapper):
|
||||
oce = OpCodeEntry()
|
||||
|
Reference in New Issue
Block a user