Commit d4a04301 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

motor group: fixed a bug.

wait motion in parallel, because if an exception occurred in one of
the axis re-raise the exception immediately (don't wait other axis)
parent d30bdbda
......@@ -100,8 +100,8 @@ class _Group(object):
gevent.joinall(controller_tasks, raise_error=True)
if wait:
for motion in all_motions:
motion.axis.wait_move()
motions_wait = [gevent.spawn(motion.axis.wait_move) for motion in all_motions]
gevent.joinall(motions_wait, raise_error=True)
def position(self):
positions_dict = dict()
......
Supports Markdown
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