set_position is not reset properly in some cases
Bug introduced by those lines:
if sync_hard:
with capture():
for motions in motions_dict.itervalues():
for motion in motions:
if motion.last_state is not None: <<<< BUG
continue <<<< BUG
motion.axis._set_position(motion.axis.position())
event.send(motion.axis, "sync_hard")
For the moment I removed those 2 on ID31. We need:
-
to reproduce the problem with a test -
to decide what to do when an error occurs, do we sync the whole motions like the code did originally or do we do something more clever ?