fixing coordTrf stuff and screen updating
- fix sign error in transformation for z - MotorTweak.py rel_move relative to RBV not VAL - SimMotorTweak.py move emits also RBV to update objects in SwissMX - update Readme.md
This commit is contained in:
@@ -115,11 +115,20 @@ class MotorTweak(QWidget, Ui_MotorTweak):
|
||||
|
||||
|
||||
def move_rel(self, dist):
|
||||
m=self._motor
|
||||
rbv=m.get_position(readback=True)
|
||||
try:
|
||||
self._val+=dist
|
||||
self._val=rbv+dist
|
||||
except AttributeError:
|
||||
pass
|
||||
self._motor.move(dist, ignore_limits=True, relative=True)
|
||||
m.move(self._val, ignore_limits=True, relative=False)
|
||||
#old code move relative to VAL not relative to RBV
|
||||
#try:
|
||||
# self._val+=dist
|
||||
#except AttributeError:
|
||||
# pass
|
||||
#self._motor.move(dist, ignore_limits=True, relative=True)
|
||||
|
||||
|
||||
def is_done(self):
|
||||
m=self._motor
|
||||
|
||||
Reference in New Issue
Block a user