fixes in procedures and hk handling

This commit is contained in:
2022-06-03 18:04:59 +02:00
parent ae0217066b
commit 58ed46e110
4 changed files with 35 additions and 28 deletions

View File

@ -210,7 +210,7 @@ def pack_generic_hk_listening_cmds(
)
if not cfg.use_tc_sched:
tc_queue.appendleft((QueueCommands.WAIT, 120))
tc_queue.appendleft((QueueCommands.WAIT, 60))
sid_list.clear()
diag_list.clear()
@ -332,7 +332,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
False,
True,
False,
False
True
]
pack_acs_command(tc_queue=tc_queue, op_code="acs-a")
@ -358,7 +358,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
False,
True,
False,
False
True
]
for b_side_dev in b_side_pairs:
@ -393,7 +393,7 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
False,
True,
False,
False,
True,
]
pack_generic_hk_listening_cmds(
tc_queue=tc_queue,
@ -413,12 +413,15 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
(oids.IMTQ_HANDLER_ID, ImtqSetIds.RAW_MTM_SET),
]
diag_list = [
False,
False,
False,
True,
True,
True,
]
# mgt 1: imtq und hk
# Command MGT to mode on
pack_imtq_test_into(oids.IMTQ_HANDLER_ID, tc_queue=tc_queue, op_code="1")
tc_queue.appendleft((QueueCommands.WAIT, 5))
# Command MGT to normal mode
pack_imtq_test_into(oids.IMTQ_HANDLER_ID, tc_queue=tc_queue, op_code="2")
for imtq_dev in imtq_pairs:
@ -456,23 +459,24 @@ def pack_proc_commands(tc_queue: TcQueueT, op_code: str):
diag_list = [
False,
False,
True,
False,
True,
False,
False,
Truehk,
False,
False,
False,
False,
False,
False,
False,
False,
False,
True,
True,
True,
True,
]
pack_acs_command(tc_queue=tc_queue, op_code="acs-d")
# mgt 2.: imtq + dual side + dipole
pack_imtq_test_into(
object_id=oids.IMTQ_HANDLER_ID, tc_queue=tc_queue, op_code="2"
)
# Command MGT to mode on
pack_imtq_test_into(oids.IMTQ_HANDLER_ID, tc_queue=tc_queue, op_code="1")
tc_queue.appendleft((QueueCommands.WAIT, 20))
# Command MGT to normal mode
pack_imtq_test_into(oids.IMTQ_HANDLER_ID, tc_queue=tc_queue, op_code="2")
for d_side_and_imtq_dev in d_side_and_imtq_pairs:
oid = d_side_and_imtq_dev[0]