update generates files

This commit is contained in:
2023-02-01 19:43:25 +01:00
parent fa23e05971
commit e4ec0689b5
8 changed files with 366 additions and 341 deletions

View File

@ -33,7 +33,7 @@ class Info:
def pack_set_current_time_ascii_command(p: ServiceProviderParams):
q = p.queue_helper
o = p.op_code
if o == OpCode.SET_CURRENT_TIME:
if o in OpCode.SET_CURRENT_TIME:
current_time = datetime.utcnow().isoformat() + "Z" + "\0"
current_time_ascii = current_time.encode("ascii")
logging.getLogger(__name__).info(
@ -47,7 +47,7 @@ def pack_set_current_time_ascii_command(p: ServiceProviderParams):
app_data=current_time_ascii,
)
)
elif o == OpCode.DUMP_TIME:
elif o in OpCode.DUMP_TIME:
q.add_log_cmd(Info.DUMP_TIME)
q.add_pus_tc(
PusTelecommand(
@ -63,6 +63,7 @@ def add_time_cmds(defs: TmtcDefinitionWrapper):
keys=OpCode.SET_CURRENT_TIME,
info=Info.SET_CURRENT_TIME,
)
oce.add(keys=OpCode.DUMP_TIME, info=Info.DUMP_TIME)
defs.add_service(
name=CustomServiceList.TIME.value,
info="Time Service",