rework motor tweak

This commit is contained in:
2022-08-19 09:51:21 +02:00
parent 9e72b681a4
commit 3ef576f690
5 changed files with 108 additions and 73 deletions

View File

@@ -46,6 +46,7 @@ class SmaractMotorTweak(QWidget, Ui_MotorTweak):
def connect_motor(self, motor_base, short_name=None, *args, **kwargs):
# TODO: DO NOT USE so many PVs, but reduce to the only really needed PV: s.a. class QopticZoom(object)
self._pvname = motor_base+':DRIVE'
self._pv_name = PV(motor_base+':NAME')
self._pv_drive = PV(motor_base+':DRIVE')
@@ -126,7 +127,7 @@ class SmaractMotorTweak(QWidget, Ui_MotorTweak):
sleep(delay)
self._pv_drive.put(target)
def get_position(self):
def get_rbv(self):
return self._pv_readback.get(use_monitor=False)
def is_homed(self):