TV test procedures #83
@ -15,11 +15,14 @@ import config.object_ids as oids
|
||||
from pus_tc.devs.bpx_batt import BpxSetIds
|
||||
from pus_tc.system.core import SetIds as CoreSetIds
|
||||
from gomspace.gomspace_common import SetIds as GsSetIds
|
||||
from pus_tc.devs.rad_sensor import CommandIds as RadSetIds
|
||||
from pus_tc.devs.rad_sensor import SetIds as RadSetIds
|
||||
from pus_tc.devs.mgms import MgmLis3SetIds as MgmSetIds_0_2
|
||||
from pus_tc.devs.mgms import MgmRm3100SetIds as MgmSetIds_1_3
|
||||
from pus_tc.devs.gyros import AdisGyroSetIds as GyroSetIds_0_2
|
||||
from pus_tc.devs.gyros import L3gGyroSetIds as GyroSetIds_1_3
|
||||
from pus_tc.devs.gps import Gnss0SetIds as GnssSetIds_0
|
||||
from pus_tc.devs.gps import Gnss1SetIds as GnssSetIds_1
|
||||
from pus_tc.devs.imtq import ImtqSetIds
|
||||
|
||||
|
||||
from pus_tc.system.tcs import pack_tcs_sys_commands
|
||||
@ -33,8 +36,11 @@ class OpCodes:
|
||||
CORE_FT = ["core-ft"]
|
||||
PCDU_FT = ["pcdu-ft"]
|
||||
RAD_SEN_FT = ["rad-sen-ft"]
|
||||
TCS_FT = ["tcs-ft-on"]
|
||||
TCS_FT_ON = ["tcs-ft-on"]
|
||||
TCS_FT_OFF = ["tcs-ft-off"]
|
||||
ACS_FT = ["acs-ft"]
|
||||
MGT_FT = ["mgt-ft"]
|
||||
MGT_FT_DP = ["mgt-ft-dp"]
|
||||
|
||||
|
||||
class KeyAndInfo:
|
||||
@ -43,8 +49,11 @@ class KeyAndInfo:
|
||||
CORE_FT = ["OBC", "OBC functional test"]
|
||||
PCDU_FT = ["PCDU", "PCDU functional test"]
|
||||
RAD_SEN_FT = ["Radiation Sensor", "Radiation Sensor functional test"]
|
||||
TCS_FT = ["TCS", "TCS functional test"]
|
||||
TCS_FT_ON = ["TCS Act.", "TCS functional test activation"]
|
||||
TCS_FT_OFF = ["TCS Deact.", "TCS functional test deactivation"]
|
||||
ACS_FT = ["ACS", "ACS functional test"]
|
||||
MGT_FT = ["MGT", "MGT functional test"]
|
||||
MGT_FT_DP = ["MGT dipole", "MGT functional test with dipole"]
|
||||
|
||||
|
||||
KAI = KeyAndInfo
|
||||
@ -54,8 +63,9 @@ PROC_INFO_DICT = {
|
||||
KAI.CORE_FT[0]: [OpCodes.CORE_FT, KAI.CORE_FT[1], 120.0, 10.0],
|
||||
KAI.PCDU_FT[0]: [OpCodes.PCDU_FT, KAI.PCDU_FT[1], 120.0, 10.0],
|
||||
KAI.RAD_SEN_FT[0]: [OpCodes.RAD_SEN_FT, KAI.RAD_SEN_FT[1], 120.0, 10.0],
|
||||
KAI.TCS_FT[0]: [OpCodes.TCS_FT, KAI.TCS_FT[1], 1800.0, 10.0],
|
||||
KAI.ACS_FT[0]: [OpCodes.ACS_FT, KAI.ACS_FT[1], 120.0, 10.0]
|
||||
KAI.TCS_FT_ON[0]: [OpCodes.TCS_FT_ON, KAI.TCS_FT_ON[1], 120.0, 10.0],
|
||||
KAI.TCS_FT_OFF[0]: [OpCodes.TCS_FT_OFF, KAI.TCS_FT_OFF[1], 120.0, 10.0],
|
||||
KAI.ACS_FT[0]: [OpCodes.ACS_FT, KAI.ACS_FT[1], 120.0, 10.0],
|
||||
|
||||
|
||||
}
|
||||
@ -97,8 +107,6 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
# PCDU
|
||||
|
||||
if op_code in OpCodes.PCDU_FT:
|
||||
key = KAI.PCDU_FT[0]
|
||||
|
||||
@ -118,8 +126,6 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
# AUX und 2er
|
||||
sid = make_sid(oids.P60_DOCK_HANDLER, GsSetIds.P60_AUX)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -135,24 +141,17 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
|
||||
if op_code in OpCodes.RAD_SEN_FT:
|
||||
key = KAI.RAD_SEN_FT[0]
|
||||
sid = make_sid(oids.RAD_SENSOR_ID, RadSetIds.READ_CONVERSIONS)
|
||||
sid = make_sid(oids.RAD_SENSOR_ID, RadSetIds.RAD_SEN_CORE)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
if op_code in OpCodes.TCS_FT:
|
||||
# does not work with .WAIT
|
||||
pack_tcs_sys_commands(tc_queue=tc_queue, op_code="tcs-normal")
|
||||
if op_code in OpCodes.TCS_FT_ON:
|
||||
# pack_tcs_sys_commands(tc_queue=tc_queue, op_code="tcs-normal")
|
||||
pack_controller_commands(tc_queue=tc_queue, op_code="thermal_controller")
|
||||
|
||||
key = KAI.TCS_FT[0]
|
||||
# Ids for TCS Board missing. No HK generation?
|
||||
sid = make_sid(oids.TCS_BOARD_ASS_ID, RadSetIds.READ_CONVERSIONS)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
pack_tcs_sys_commands(tc_queue=tc_queue, op_code="tcs-off")
|
||||
if op_code in OpCodes.TCS_FT_OFF:
|
||||
# pack_tcs_sys_commands(tc_queue=tc_queue, op_code="tcs-off")
|
||||
pack_controller_commands(tc_queue=tc_queue, op_code="thermal_controller")
|
||||
|
||||
if op_code in OpCodes.ACS_FT:
|
||||
@ -160,6 +159,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-a")
|
||||
|
||||
# MGMs
|
||||
sid = make_sid(oids.MGM_0_LIS3_HANDLER_ID, MgmSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -168,7 +168,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
# Gyros
|
||||
sid = make_sid(oids.GYRO_0_ADIS_HANDLER_ID, GyroSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -181,14 +181,17 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
# GNSS0 missing
|
||||
|
||||
# GNSS0
|
||||
sid = make_sid(oids.GPS_HANDLER_0_ID, GnssSetIds_0.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-off")
|
||||
tc_queue.appendleft((QueueCommands.WAIT, 5.0))
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-b")
|
||||
|
||||
# MGMs
|
||||
sid = make_sid(oids.MGM_2_LIS3_HANDLER_ID, MgmSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -197,7 +200,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
# Gyros
|
||||
sid = make_sid(oids.GYRO_2_ADIS_HANDLER_ID, GyroSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -210,13 +213,17 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
# GNSS1 missing
|
||||
#GNSS1
|
||||
sid = make_sid(oids.GPS_HANDLER_1_ID, GnssSetIds_1.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-off")
|
||||
tc_queue.appendleft((QueueCommands.WAIT, 5.0))
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-d")
|
||||
|
||||
# MGMs
|
||||
sid = make_sid(oids.MGM_0_LIS3_HANDLER_ID, MgmSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -233,7 +240,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
# Gyros
|
||||
sid = make_sid(oids.GYRO_0_ADIS_HANDLER_ID, GyroSetIds_0_2.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
@ -258,11 +265,39 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
# GNSS0+1 missing
|
||||
# GNSS0+1
|
||||
sid = make_sid(oids.GPS_HANDLER_0_ID, GnssSetIds_0.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
sid = make_sid(oids.GPS_HANDLER_1_ID, GnssSetIds_1.CORE_HK)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
pack_acs_command(tc_queue=tc_queue, op_code="acs-off")
|
||||
|
||||
if op_code in OpCodes.MGT_FT:
|
||||
key = KAI.MGT_FT[0]
|
||||
|
||||
sid = make_sid(oids.IMTQ_HANDLER_ID, ImtqSetIds.ENG_HK_SET)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
sid = make_sid(oids.IMTQ_HANDLER_ID, ImtqSetIds.CAL_MTM_SET)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
sid = make_sid(oids.IMTQ_HANDLER_ID, ImtqSetIds.RAW_MTM_SET)
|
||||
pack_generic_hk_listening_cmds(
|
||||
tc_queue=tc_queue, proc_key=key, sid=sid, diag=False
|
||||
)
|
||||
|
||||
|
||||
# mgt 1: imtq und hk
|
||||
# mgt 2.: imtq + dual side + dipole
|
||||
|
||||
|
||||
|
||||
def listen_to_hk_for_x_seconds(
|
||||
tc_queue: TcQueueT,
|
||||
|
Loading…
Reference in New Issue
Block a user