feat(LamNI): notify BEC client before long lsamrot reset-moves

feedback_enable_with_reset() silently rotates lsamrot back to 0 as part
of the interferometer reset; when the stage is far from 0 this can take
a while with no feedback in the client session. A plain print() there
only reaches the device-server console, not the client, so use
connector.send_client_info() instead.
This commit is contained in:
x01dc
2026-07-27 16:11:04 +02:00
parent 2f07c3e251
commit f736900a52
@@ -328,6 +328,15 @@ class RtLamniController(Controller):
) # we set all three outputs of the traj. gen. although in LamNI case only 0,1 are used
self.clear_trajectory_generator()
lsamrot_current = self.device_manager.devices.lsamrot.obj.readback.get()
if abs(lsamrot_current) > 10:
self.device_manager.connector.send_client_info(
f"lsamrot is at {lsamrot_current:.1f} deg -- rotating back to 0 deg as part "
"of the interferometer feedback reset. This is a long move and may take a "
"while...",
scope="feedback_enable_with_reset",
show_asap=True,
)
self.device_manager.devices.lsamrot.obj.move(0, wait=True)
galil_controller_rt_status = (