From 589017a3d6de81a52c5a496a4b82ae202a4f990c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 22 Jul 2016 15:38:13 -0400 Subject: stepper: Have caller calculate max jerk velocity Allow the owner of the stepper object to cacluate the maximum step jerk velocity. This is used to ensure there is no communication error between mcu and host. Disable checking of jerk velocity for extruder stepper motors. Signed-off-by: Kevin O'Connor --- klippy/cartesian.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'klippy/cartesian.py') diff --git a/klippy/cartesian.py b/klippy/cartesian.py index b2bc1b43..67c68be5 100644 --- a/klippy/cartesian.py +++ b/klippy/cartesian.py @@ -15,6 +15,8 @@ class CartKinematics: for n in steppers] self.stepper_pos = [0, 0, 0] def build_config(self): + for stepper in self.steppers[:2]: + stepper.set_max_jerk(0.005 * stepper.max_accel) # XXX for stepper in self.steppers: stepper.build_config() def set_position(self, newpos): -- cgit v1.2.3-70-g09d2