corrected epics limits to be correctly passed to gui

This commit is contained in:
John Henry Beale committed 2026-08-24 13:17:31 +02:00
1 parent 8dfd022d73
commit bc4e2b6001
1 file changed
+3 -3
+3 -3
View File
@@ -132,7 +132,7 @@ class MotorTweak(QWidget, Ui_MotorTweak):
self._val=rbv+dist
except AttributeError:
pass
m.move(self._val, ignore_limits=True, relative=False)
m.move(self._val, ignore_limits=self._ignore_limits, relative=False)
#old code move relative to VAL not relative to RBV
#try:
# self._val+=dist
@@ -170,7 +170,7 @@ class MotorTweak(QWidget, Ui_MotorTweak):
except AttributeError:
pass
m=self._motor
m.move(drive, wait=wait, ignore_limits=True, relative=False)
m.move(drive, wait=wait, ignore_limits=self._ignore_limits, relative=False)
if assert_position:
assert_tweaker_positions([(self, drive, 0.1)], timeout=1)
@@ -338,7 +338,7 @@ class MotorTweak(QWidget, Ui_MotorTweak):
m.put('TWV', tv, wait=True)
elif action == tozeroAction:
m.move(0.0, ignore_limits=True)
m.move(0.0, ignore_limits=self._ignore_limits)
elif action == stopmotorAction:
m.stop_go = SPMG_STOP if m.stop_go == SPMG_GO else SPMG_GO