mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-01-01 03:21:19 +01:00
refactor: using motor.readback.read() to access motor coordinates
This commit is contained in:
@@ -1181,8 +1181,8 @@ class MotorControl(QThread):
|
||||
|
||||
def get_coordinates(self) -> tuple:
|
||||
"""Get current motor position"""
|
||||
x = self.motor_x.read()[self.motor_x_name]["value"]
|
||||
y = self.motor_y.read()[self.motor_y_name]["value"]
|
||||
x = self.motor_x.readback.read()[self.motor_x_name]["value"]
|
||||
y = self.motor_y.readback.read()[self.motor_y_name]["value"]
|
||||
return x, y
|
||||
|
||||
def retrieve_coordinates(self) -> tuple:
|
||||
|
||||
Reference in New Issue
Block a user