Task #510
closedfields DESTINATION_ID on TM_LFR_PARAMETER_DUMP and TM_LFR_KCOEFFICIENTS_DUMP compliant // R3
0%
Description
Suite aux bugs #507 et #508, il faut adapter les codes de validation pour vérifier le champ DESTINATION_ID
des TM_LFR_PARAMETER_DUMP et TM_LFR_KCOEFFICIENTS_DUMP qui doit etre égale au champ SOURCE_ID de la TC_LFR associée
soit TC_LFR_DUMP_PAR et TC_LFR_DUMP_KCOEFFICIENTS.
Cas de TM_LFR_PARAMETER_DUMP
modifier lfrverif/common/icd/tm_lfr_parameter_dump_analyze.py pour accepter l'ensemble de source_id valides.
ici la section à ajouter
item = "DESTINATION_ID: "
destination_id = tm_ccsds9
if destination_id == 0:
tmp += item + "GROUND = 0, "
elif destination_id == 110:
tmp += item + "MISSION_TIMELINE = 110, "
elif destination_id == 111:
tmp += item + "TC_SEQUENCES = 111, "
elif destination_id == 112:
tmp += item + "RECOVERY_ACTION_CMD = 112, "
elif destination_id == 113:
tmp += item + "BACKUP_MISSION_TIMELINE = 113, "
elif destination_id == 120:
tmp += item + "DIRECT_CMD = 120, "
elif destination_id == 121:
tmp += item + "SPARE_GRD_SRC1 = 121, "
elif destination_id == 122:
tmp += item + "SPARE_GRD_SRC2 = 122, "
elif destination_id == 15:
tmp += item + "OBCP = 15, "
elif destination_id == 14:
tmp += item + "SYSTEM_CONTROL = 14, "
elif destination_id == 11:
tmp += item + "AOCS = 11, "
elif destination_id == 254:
tmp += item + "RPW_INTERNAL = 254, "
else:
tmp += "/!\\" + item + str(destination_id) + ', '
ensuite il faut egalement ajouter la sequence qui permet d'associer le source_id de la tc_lfr_dump_par avec la reponse.
--> creation d'un mécanisme identique à celui de tm_acknowledgment.py (lfrverifcommon/RulesClasses).
Cas de TM_LFR_KCOEFFICIENTS_DUMP
modifier lfrverif/common/icd/tm_lfr_parameter_dump_analyze.py pour accepter l'ensemble de source_id valides.
ici la section à ajouter
item = "DESTINATION_ID: "
destination_id = tm_ccsds9
if destination_id == 0:
tmp += item + "GROUND = 0, "
elif destination_id == 110:
tmp += item + "MISSION_TIMELINE = 110, "
elif destination_id == 111:
tmp += item + "TC_SEQUENCES = 111, "
elif destination_id == 112:
tmp += item + "RECOVERY_ACTION_CMD = 112, "
elif destination_id == 113:
tmp += item + "BACKUP_MISSION_TIMELINE = 113, "
elif destination_id == 120:
tmp += item + "DIRECT_CMD = 120, "
elif destination_id == 121:
tmp += item + "SPARE_GRD_SRC1 = 121, "
elif destination_id == 122:
tmp += item + "SPARE_GRD_SRC2 = 122, "
elif destination_id == 15:
tmp += item + "OBCP = 15, "
elif destination_id == 14:
tmp += item + "SYSTEM_CONTROL = 14, "
elif destination_id == 11:
tmp += item + "AOCS = 11, "
elif destination_id == 254:
tmp += item + "RPW_INTERNAL = 254, "
else:
tmp += "/!\\" + item + str(destination_id) + ', '
ensuite il faut egalement ajouter la sequence qui permet d'associer le source_id de la tc_lfr_dump_par avec la reponse.
--> creation d'un mécanisme identique à celui de tm_acknowledgment.py (lfrverifcommon/RulesClasses).
Related issues