allow setting health for payload components
All checks were successful
EIVE/-/pipeline/head This commit looks good
All checks were successful
EIVE/-/pipeline/head This commit looks good
This commit is contained in:
parent
33cf7b1613
commit
c72a04b262
@ -6,6 +6,7 @@ from eive_tmtc.config.object_ids import (
|
|||||||
GYRO_1_L3G_HANDLER_ID,
|
GYRO_1_L3G_HANDLER_ID,
|
||||||
GYRO_2_ADIS_HANDLER_ID,
|
GYRO_2_ADIS_HANDLER_ID,
|
||||||
ACS_BOARD_ASS_ID,
|
ACS_BOARD_ASS_ID,
|
||||||
|
PLOC_MPSOC_ID,
|
||||||
RW_ASSEMBLY,
|
RW_ASSEMBLY,
|
||||||
SUS_BOARD_ASS_ID,
|
SUS_BOARD_ASS_ID,
|
||||||
MGM_0_LIS3_HANDLER_ID,
|
MGM_0_LIS3_HANDLER_ID,
|
||||||
@ -28,6 +29,7 @@ SUBSYSTEM_DICT = {
|
|||||||
0: "acs",
|
0: "acs",
|
||||||
1: "tcs",
|
1: "tcs",
|
||||||
2: "com",
|
2: "com",
|
||||||
|
3: "payload",
|
||||||
}
|
}
|
||||||
|
|
||||||
ACS_OBJ_DICT = {
|
ACS_OBJ_DICT = {
|
||||||
@ -59,6 +61,10 @@ TCS_OBJ_DICT = {
|
|||||||
5: ("TMP1075 IF BOARD", TMP1075_HANDLER_IF_BRD_ID),
|
5: ("TMP1075 IF BOARD", TMP1075_HANDLER_IF_BRD_ID),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PAYLOAD_OBJ_DICT = {
|
||||||
|
0: ("Payload MPSoC", PLOC_MPSOC_ID),
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def get_obj_if_from_dict(lut: dict) -> bytes:
|
def get_obj_if_from_dict(lut: dict) -> bytes:
|
||||||
for k, v in lut.items():
|
for k, v in lut.items():
|
||||||
@ -81,6 +87,8 @@ def prompt_object() -> bytes:
|
|||||||
return get_obj_if_from_dict(ACS_OBJ_DICT)
|
return get_obj_if_from_dict(ACS_OBJ_DICT)
|
||||||
elif subsystem == "tcs":
|
elif subsystem == "tcs":
|
||||||
return get_obj_if_from_dict(TCS_OBJ_DICT)
|
return get_obj_if_from_dict(TCS_OBJ_DICT)
|
||||||
|
elif subsystem == "payload":
|
||||||
|
return get_obj_if_from_dict(PAYLOAD_OBJ_DICT)
|
||||||
else:
|
else:
|
||||||
print(f"No object for subsystem {subsystem}")
|
print(f"No object for subsystem {subsystem}")
|
||||||
return bytes()
|
return bytes()
|
||||||
|
Loading…
Reference in New Issue
Block a user