winch: Improve python3 compatibility

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-01-17 22:54:16 -05:00
parent 0e9cb2abac
commit 611b76369f
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class WinchKinematics:
for s in self.steppers: for s in self.steppers:
s.set_max_jerk(max_halt_velocity, max_accel) s.set_max_jerk(max_halt_velocity, max_accel)
# Setup boundary checks # Setup boundary checks
acoords = zip(*self.anchors) acoords = list(zip(*self.anchors))
self.axes_min = toolhead.Coord(*[min(a) for a in acoords], e=0.) self.axes_min = toolhead.Coord(*[min(a) for a in acoords], e=0.)
self.axes_max = toolhead.Coord(*[max(a) for a in acoords], e=0.) self.axes_max = toolhead.Coord(*[max(a) for a in acoords], e=0.)
self.set_position([0., 0., 0.], ()) self.set_position([0., 0., 0.], ())