This commit is contained in:
@@ -53,8 +53,8 @@ class SlitControlWidget(BECWidget, QWidget):
|
||||
updated live via Redis subscription
|
||||
|
||||
Movement reads the current position via ``device.read()`` then dispatches
|
||||
Movement calls ``device.set(target)`` on the device proxy, which routes
|
||||
through to the device server — the same pattern used by XRayEye2DControl.
|
||||
Movement calls ``device.move(target)`` — the documented BECWidget API for
|
||||
moving a positioner (``self.dev['motor'].move(position)``).
|
||||
"""
|
||||
|
||||
PLUGIN = True
|
||||
@@ -342,7 +342,7 @@ class SlitControlWidget(BECWidget, QWidget):
|
||||
reading = device.read()
|
||||
current = float(reading[dev_name]["value"])
|
||||
target = current + delta
|
||||
device.set(target)
|
||||
device.move(target)
|
||||
except Exception as exc:
|
||||
logger.warning(f"SlitControlWidget: failed to move {dev_name}: {exc}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user