rework motor tweak
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user