api update done
This commit is contained in:
@ -7,6 +7,7 @@ from typing import List
|
||||
from config.definitions import CustomServiceList
|
||||
from config.object_ids import get_object_ids
|
||||
from pus_tc.system.tcs import pack_tcs_sys_commands
|
||||
from tmtccmd.config import TmTcDefWrapper, OpCodeEntry
|
||||
|
||||
from tmtccmd.tc import QueueHelper
|
||||
from tmtccmd.tc.pus_11_tc_sched import (
|
||||
@ -125,17 +126,14 @@ def generic_print(q: QueueHelper, info: dict):
|
||||
q.add_log_cmd(f"Executing {info[1]} Procedure (OpCodes: {info[0]})")
|
||||
|
||||
|
||||
def add_proc_cmds(cmd_dict: ServiceOpCodeDictT):
|
||||
op_code_dict = dict()
|
||||
def add_proc_cmds(defs: TmTcDefWrapper):
|
||||
oce = OpCodeEntry()
|
||||
for proc_entry in PROC_INFO_DICT.values():
|
||||
add_op_code_entry(
|
||||
op_code_dict=op_code_dict, keys=proc_entry[0], info=proc_entry[1]
|
||||
)
|
||||
add_service_op_code_entry(
|
||||
srv_op_code_dict=cmd_dict,
|
||||
oce.add(keys=proc_entry[0], info=proc_entry[1])
|
||||
defs.add_service(
|
||||
name=CustomServiceList.PROCEDURE.value,
|
||||
info="TV Test Procedures",
|
||||
op_code_entry=op_code_dict,
|
||||
op_code_entry=oce,
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user