1
0
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:
wyzula-jan
2024-01-12 14:45:28 +01:00
parent f9c5c82381
commit 6f26e5cc3d

View File

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