fixes for pyclient APID

This commit is contained in:
Robin Müller 2024-04-10 15:39:53 +02:00
parent 5d87cab9cc
commit ec9a042f09
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 5 additions and 9 deletions

View File

@ -5,11 +5,8 @@ import enum
import struct import struct
class Apid(enum.IntEnum): EXPERIMENT_ID = 278
SCHED = 1 EXPERIMENT_APID = 1024 + EXPERIMENT_ID
GENERIC_PUS = 2
ACS = 3
CFDP = 4
class EventSeverity(enum.IntEnum): class EventSeverity(enum.IntEnum):

View File

@ -47,7 +47,7 @@ from tmtccmd.util.obj_id import ObjectIdDictT
import pus_tc import pus_tc
from common import Apid, EventU32 from common import EXPERIMENT_APID, EventU32
_LOGGER = logging.getLogger() _LOGGER = logging.getLogger()
@ -64,8 +64,7 @@ class SatRsConfigHook(HookBase):
assert self.cfg_path is not None assert self.cfg_path is not None
packet_id_list = [] packet_id_list = []
for apid in Apid: packet_id_list.append(PacketId(PacketType.TM, True, EXPERIMENT_APID))
packet_id_list.append(PacketId(PacketType.TM, True, apid))
cfg = create_com_interface_cfg_default( cfg = create_com_interface_cfg_default(
com_if_key=com_if_key, com_if_key=com_if_key,
json_cfg_path=self.cfg_path, json_cfg_path=self.cfg_path,
@ -181,7 +180,7 @@ class TcHandler(TcHandlerBase):
tc_sched_timestamp_len=CdsShortTimestamp.TIMESTAMP_SIZE, tc_sched_timestamp_len=CdsShortTimestamp.TIMESTAMP_SIZE,
seq_cnt_provider=seq_count_provider, seq_cnt_provider=seq_count_provider,
pus_verificator=self.verif_wrapper.pus_verificator, pus_verificator=self.verif_wrapper.pus_verificator,
default_pus_apid=None, default_pus_apid=EXPERIMENT_APID,
) )
def send_cb(self, send_params: SendCbParams): def send_cb(self, send_params: SendCbParams):