now it works

This commit is contained in:
Robin Müller 2022-11-02 19:52:55 +01:00
parent 331b67622a
commit 622b2e4f21
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
3 changed files with 6 additions and 10 deletions

View File

@ -21,13 +21,6 @@ def get_eive_service_op_code_dict() -> TmtcDefinitionWrapper:
info="PUS Service 5 Event", info="PUS Service 5 Event",
op_code_entry=srv_5, op_code_entry=srv_5,
) )
srv_17 = OpCodeEntry()
srv_17.add("0", "Ping Test")
def_wrapper.add_service(
name=CoreServiceList.SERVICE_17_ALT,
info="PUS Service 17 Test",
op_code_entry=srv_17,
)
call_all_definitions_providers(def_wrapper) call_all_definitions_providers(def_wrapper)
return def_wrapper return def_wrapper

View File

@ -1 +1,2 @@
from .acs_subsystem import add_acs_subsystem_cmds from .acs_subsystem import add_acs_subsystem_cmds
from .test import add_test_defs

View File

@ -23,18 +23,20 @@ class Info:
@tmtc_definitions_provider @tmtc_definitions_provider
def pack_test_cmds(defs: TmtcDefinitionWrapper): def add_test_defs(defs: TmtcDefinitionWrapper):
oce = OpCodeEntry() oce = OpCodeEntry()
oce.add(keys=OpCodes.PING, info=Info.PING) oce.add(keys=OpCodes.PING, info=Info.PING)
oce.add(keys=OpCodes.TRIGGER_EVENT, info=Info.TRIGGER_EVENT) oce.add(keys=OpCodes.TRIGGER_EVENT, info=Info.TRIGGER_EVENT)
oce.add(keys=OpCodes.PING_WITH_DATA, info=Info.PING_WITH_DATA) oce.add(keys=OpCodes.PING_WITH_DATA, info=Info.PING_WITH_DATA)
defs.add_service( defs.add_service(
name=CoreServiceList.SERVICE_17, info="PUS 17 Test Service", op_code_entry=oce name=CoreServiceList.SERVICE_17_ALT,
info="PUS 17 Test Service",
op_code_entry=oce,
) )
@service_provider(CoreServiceList.SERVICE_17) @service_provider(CoreServiceList.SERVICE_17_ALT)
def pack_test_command(p: ServiceProviderParams): def pack_test_command(p: ServiceProviderParams):
info = p.info info = p.info
q = p.queue_helper q = p.queue_helper