aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/delta.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-01-02 18:58:45 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-01-03 18:18:30 -0500
commitc87c090264fb9fd91bc87fbc63a05c5e53e3c484 (patch)
tree5f9a4dda5c129af06f436ff1e96b030103c16553 /klippy/delta.py
parentb26922978a1b7d0994e90572dcec6af120987b82 (diff)
downloadkutter-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/delta.py')
-rw-r--r--klippy/delta.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/klippy/delta.py b/klippy/delta.py
index f8f85c02..041b6ce7 100644
--- a/klippy/delta.py
+++ b/klippy/delta.py
@@ -29,8 +29,7 @@ class DeltaKinematics:
(cos(210.)*radius, sin(210.)*radius),
(cos(330.)*radius, sin(330.)*radius),
(cos(90.)*radius, sin(90.)*radius)]
- def set_max_jerk(self, max_xy_halt_velocity, max_accel):
- # XXX - this sets conservative values
+ def set_max_jerk(self, max_xy_halt_velocity, max_velocity, max_accel):
for stepper in self.steppers:
stepper.set_max_jerk(max_xy_halt_velocity, max_accel)
def build_config(self):