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:
2024-01-18 16:23:26 +01:00
parent 681d42dc2e
commit 21811abd92
4 changed files with 66 additions and 60 deletions

View File

@@ -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