0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02: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: def get_coordinates(self) -> tuple:
"""Get current motor position""" """Get current motor position"""
x = self.motor_x.read()[self.motor_x_name]["value"] x = self.motor_x.readback.read()[self.motor_x_name]["value"]
y = self.motor_y.read()[self.motor_y_name]["value"] y = self.motor_y.readback.read()[self.motor_y_name]["value"]
return x, y return x, y
def retrieve_coordinates(self) -> tuple: def retrieve_coordinates(self) -> tuple: