diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-01-02 18:58:45 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-01-03 18:18:30 -0500 |
commit | c87c090264fb9fd91bc87fbc63a05c5e53e3c484 (patch) | |
tree | 5f9a4dda5c129af06f436ff1e96b030103c16553 /klippy/cartesian.py | |
parent | b26922978a1b7d0994e90572dcec6af120987b82 (diff) | |
download | kutter-c87c090264fb9fd91bc87fbc63a05c5e53e3c484.tar.gz kutter-c87c090264fb9fd91bc87fbc63a05c5e53e3c484.tar.xz kutter-c87c090264fb9fd91bc87fbc63a05c5e53e3c484.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/cartesian.py')
-rw-r--r-- | klippy/cartesian.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |