From 1c3d67aa15ce641f6f9ec80aabb9714c320c24c4 Mon Sep 17 00:00:00 2001 From: Markus Kranz Date: Tue, 24 May 2022 18:34:25 +0200 Subject: [PATCH] updated mgt proc --- pus_tc/system/proc.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pus_tc/system/proc.py b/pus_tc/system/proc.py index 7ade2e0..8e9a88b 100644 --- a/pus_tc/system/proc.py +++ b/pus_tc/system/proc.py @@ -40,7 +40,8 @@ from pus_tc.devs.sus import Sus11SetIds from pus_tc.system.tcs import pack_tcs_sys_commands from pus_tc.system.controllers import pack_controller_commands from pus_tc.system.acs import pack_acs_command, pack_sus_cmds -from pus_tc.devs.imtq import pack_dipole_command +from pus_tc.devs.imtq import pack_imtq_test_into, pack_dipole_command + class OpCodes: @@ -245,10 +246,8 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str): if op_code in OpCodes.MGT_FT: key = KAI.MGT_FT[0] - # missing imtq to ON - # mgt 1: imtq und hk - - # MISSING: imtq board activation to ON (implementation pending by Jakob) +# mgt 1: imtq und hk + pack_imtq_test_into(tc_queue=tc_queue, op_code="2") sid_list.append(make_sid(oids.IMTQ_HANDLER_ID, ImtqSetIds.ENG_HK_SET)) sid_list.append(make_sid(oids.IMTQ_HANDLER_ID, ImtqSetIds.CAL_MTM_SET)) @@ -257,16 +256,14 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str): tc_queue=tc_queue, proc_key=key, sid_list=sid_list, diag=False, mgt=False ) - # MISSING: imtq board deactivation to OFF (implementation pending by Jakob) - - # missing imtq to ON - # mgt 2.: imtq + dual side + dipole + pack_imtq_test_into(tc_queue=tc_queue, op_code="0") if op_code in OpCodes.MGT_FT_DP: key = KAI.MGT_FT_DP[0] - pack_acs_command(tc_queue=tc_queue, op_code="acs-d") - # MISSING: imtq board activation to ON (implementation pending by Jakob) + pack_acs_command(tc_queue=tc_queue, op_code="acs-d") +# mgt 2.: imtq + dual side + dipole + pack_imtq_test_into(tc_queue=tc_queue, op_code="2") sid_list.append(make_sid(oids.IMTQ_HANDLER_ID, ImtqSetIds.ENG_HK_SET)) sid_list.append(make_sid(oids.IMTQ_HANDLER_ID, ImtqSetIds.CAL_MTM_SET)) @@ -275,7 +272,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str): tc_queue=tc_queue, proc_key=key, sid_list=sid_list, diag=False, mgt=True ) - # MISSING: imtq board deactivation to OFF (implementation pending by Jakob) + pack_imtq_test_into(tc_queue=tc_queue, op_code="0") pack_acs_command(tc_queue=tc_queue, op_code="acs-off") if op_code in OpCodes.SUS_FT: