aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/cartesian.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-07-22 15:38:13 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-07-22 15:42:18 -0400
commit589017a3d6de81a52c5a496a4b82ae202a4f990c (patch)
treec89f1a375a3d2285c235ee544ded0a06fdf6d2bb /klippy/cartesian.py
parentd3c27c514f763ce65a5fea7f6c17ecff49130721 (diff)
downloadkutter-589017a3d6de81a52c5a496a4b82ae202a4f990c.tar.gz
kutter-589017a3d6de81a52c5a496a4b82ae202a4f990c.tar.xz
kutter-589017a3d6de81a52c5a496a4b82ae202a4f990c.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/cartesian.py')
-rw-r--r--klippy/cartesian.py2
1 files changed, 2 insertions, 0 deletions
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):