aggiunta la flag per abilitare la comunicazione con la seriale ausiliaria

This commit is contained in:
VALLONGOL 2026-02-03 10:47:30 +01:00
parent 67a719aa6c
commit 811e189742

View File

@ -71,6 +71,10 @@ TELLBACK_VERIFY_STEP_SEC = 0.5 # Poll step for tellback verification
TELLBACK_POST_SET_DELAY_SEC = 2.0 # Delay after setting STBY/SILENCE to allow radar to update tellbacks TELLBACK_POST_SET_DELAY_SEC = 2.0 # Delay after setting STBY/SILENCE to allow radar to update tellbacks
STBY_POST_UNSET_DELAY_SEC = 2.0 # Delay after removing STBY to allow radar to exit standby STBY_POST_UNSET_DELAY_SEC = 2.0 # Delay after removing STBY to allow radar to exit standby
# Global flag: enable auxiliary serial helper by default (can be overridden by operator)
# Set to False to disable auxiliary serial communication from tests.
ENABLE_AUX_SERIAL = True
# ==================== # ====================
# B8 DRILL-DOWN CONFIGURATION # B8 DRILL-DOWN CONFIGURATION
# ==================== # ====================
@ -1595,8 +1599,8 @@ def test_proc():
# Prepare radar for operational target acquisition (best-effort) # Prepare radar for operational target acquisition (best-effort)
try: try:
logging.info("Setting radar to operational mode before target test (best-effort)") logging.info("Setting radar to operational mode before target test (best-effort)")
# Execute auxiliary serial sequence to prepare radar (if configured) # Execute auxiliary serial sequence to prepare radar (if configured and enabled)
if send_serial_sequence: if send_serial_sequence and ENABLE_AUX_SERIAL:
try: try:
logging.info('Executing auxiliary serial sequence to prepare radar') logging.info('Executing auxiliary serial sequence to prepare radar')
send_serial_sequence() send_serial_sequence()