From c87c090264fb9fd91bc87fbc63a05c5e53e3c484 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 2 Jan 2017 18:58:45 -0500 Subject: extruder: Calculate sane defaults for extrude only velocity and accel Instead of requiring the user enter velocity and accel parameters for extrude only moves, calculate sane defaults from the printer's maximum velocity and accel. Signed-off-by: Kevin O'Connor --- klippy/cartesian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/cartesian.py') diff --git a/klippy/cartesian.py b/klippy/cartesian.py index b2bd9661..636e9284 100644 --- a/klippy/cartesian.py +++ b/klippy/cartesian.py @@ -17,7 +17,7 @@ class CartKinematics: self.max_z_accel = config.getfloat('max_z_accel', 9999999.9) self.need_motor_enable = True self.limits = [(1.0, -1.0)] * 3 - def set_max_jerk(self, max_xy_halt_velocity, max_accel): + def set_max_jerk(self, max_xy_halt_velocity, max_velocity, max_accel): self.steppers[0].set_max_jerk(max_xy_halt_velocity, max_accel) self.steppers[1].set_max_jerk(max_xy_halt_velocity, max_accel) self.steppers[2].set_max_jerk(0., self.max_z_accel) -- cgit v1.2.3-70-g09d2