Source

puma / MDC.py

Diff from to
 	chan.moveto(pos, vel)
 	return True
 
+def move_all(ms, dest):
+	counts = get_counts()
+	for i in range(0,6):
+		if counts[i] == 'X':
+			continue
+		new_pos = dest[i]
+		delta = int(counts[i]) - new_pos
+		if delta < 0:
+			delta = -delta
+		if ms != 0:
+			moveto(i+1, new_pos, delta * 1000 / ms)
+		else:
+			moveto(i+1, new_pos, 0)
 
 class MDC_channel:
 	def __init__(self, mdc, channel, axis):