From 59cdc5c5129d52f57ca1b56dc78f6e119c73e700 Mon Sep 17 00:00:00 2001 From: x12sa Date: Fri, 11 Sep 2026 09:11:37 +0200 Subject: [PATCH] fix(omny): increase laser tracker on-target wait timeout, add status print Bump max_repeat from 25 to 100 (~12.5s to ~50s) in laser_tracker_wait_on_target, since the tracker was timing out too early during beamtime. Print a status message once the retry-enable branch kicks in so it's visible the wait is still in progress. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01XdHenMmwbrCz1juWMi1yZc --- csaxs_bec/devices/omny/rt/rt_flomni_ophyd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csaxs_bec/devices/omny/rt/rt_flomni_ophyd.py b/csaxs_bec/devices/omny/rt/rt_flomni_ophyd.py index 123aab5f..0cf66f39 100644 --- a/csaxs_bec/devices/omny/rt/rt_flomni_ophyd.py +++ b/csaxs_bec/devices/omny/rt/rt_flomni_ophyd.py @@ -375,7 +375,7 @@ class RtFlomniController(Controller): return False def laser_tracker_wait_on_target(self): - max_repeat = 25 + max_repeat = 100 count = 0 self.laser_tracker_galil_enable() while not self.laser_tracker_on_target(): @@ -383,6 +383,7 @@ class RtFlomniController(Controller): time.sleep(0.5) count += 1 if count == 10: + print("Waiting for the tracker.") ftrackz_con = self.device_manager.devices.ftrackz.obj.controller ftrackz_con.socket_put_confirmed("tracken=1") ftrackz_con.socket_put_confirmed("trackyct=0")