scanning: check motor limits in motors AcquisitionMaster

parent 6bf63a7a
Pipeline #13828 failed with stages
in 40 minutes and 4 seconds
......@@ -80,6 +80,8 @@ class MotorMaster(AcquisitionMaster, UndershootMixin):
if self.time > 0
else self.movable.velocity
)
axis.controller.check_limits(axis, self._calculate_undershoot(start))
axis.controller.check_limits(axis, self._calculate_undershoot(end, end=True))
def prepare(self):
start = self._calculate_undershoot(self.start_pos)
......@@ -122,6 +124,7 @@ class MotorMasterIter(MotorMaster):
super().__init__(axis, start_list[-1], last_end_pos, **keys)
self.__start_list = start_list
self.__last_end_pos = last_end_pos
axis.controller.check_limits(axis, self._calculate_undershoot(start_list[0]))
def __iter__(self):
pos_list = self.__start_list + [self.__last_end_pos]
......@@ -457,6 +460,7 @@ class VariableStepTriggerMaster(AcquisitionMaster):
self._axes = list()
nb_points = None
for _axis, pos_list in grouped(args, 2):
_axis.controller.check_limits(_axis, pos_list)
self._axes.append(_axis)
if nb_points is None or nb_points == len(pos_list):
self._motor_pos.append(pos_list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment