From 35719e665cd9c77f8ef70c88c4300cf9feb76930 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 30 Nov 2016 21:24:03 -0500 Subject: [PATCH] delta: Fix delta kinematics startup Commit 1e1364c3 moved the storage of the stepper position to the mcu_stepper class. The initializing of that position needs to be pushed back until after the mcu_stepper class is instantiated. Signed-off-by: Kevin O'Connor --- klippy/delta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/delta.py b/klippy/delta.py index ccf61206..27290aac 100644 --- a/klippy/delta.py +++ b/klippy/delta.py @@ -28,12 +28,12 @@ class DeltaKinematics: (cos(210.)*radius, sin(210.)*radius), (cos(330.)*radius, sin(330.)*radius), (cos(90.)*radius, sin(90.)*radius)] - self.set_position([0., 0., 0.]) def build_config(self): for stepper in self.steppers: stepper.set_max_jerk(0.005 * stepper.max_accel) # XXX for stepper in self.steppers: stepper.build_config() + self.set_position([0., 0., 0.]) def get_max_speed(self): # XXX - this returns conservative values max_xy_speed = min(s.max_velocity for s in self.steppers)