aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-11-30 21:24:03 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-11-30 21:24:03 -0500
commit35719e665cd9c77f8ef70c88c4300cf9feb76930 (patch)
tree07d52ac8ff51d67e2f6343d4cfbe5fbbd8adfed9 /klippy
parentbc80ed4e88656ec4dd599a11152d40ee7f18d40a (diff)
downloadkutter-35719e665cd9c77f8ef70c88c4300cf9feb76930.tar.gz
kutter-35719e665cd9c77f8ef70c88c4300cf9feb76930.tar.xz
kutter-35719e665cd9c77f8ef70c88c4300cf9feb76930.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/delta.py2
1 files changed, 1 insertions, 1 deletions
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)