From 54acca37ba642e8af4aeb9bdc6b538a639eb0320 Mon Sep 17 00:00:00 2001 From: Nitram <33714214+Hywelmartin@users.noreply.github.com> Date: Mon, 29 Nov 2021 19:21:26 +0100 Subject: delta: max z-accel and speed ratio calculation for deltas (#4689) Adding a possibility to use a lower z- acceleration. Signed-off-by: Martin Malmqvist --- klippy/kinematics/delta.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'klippy/kinematics/delta.py') diff --git a/klippy/kinematics/delta.py b/klippy/kinematics/delta.py index 57d3db1f..4c5076f7 100644 --- a/klippy/kinematics/delta.py +++ b/klippy/kinematics/delta.py @@ -30,6 +30,8 @@ class DeltaKinematics: self.max_z_velocity = config.getfloat( 'max_z_velocity', self.max_velocity, above=0., maxval=self.max_velocity) + self.max_z_accel = config.getfloat('max_z_accel', self.max_accel, + above=0., maxval=self.max_accel) # Read radius and arm lengths self.radius = radius = config.getfloat('delta_radius', above=0.) print_radius = config.getfloat('print_radius', radius, above=0.) @@ -130,7 +132,8 @@ class DeltaKinematics: limit_xy2 = -1. if move.axes_d[2]: z_ratio = move.move_d / abs(move.axes_d[2]) - move.limit_speed(self.max_z_velocity * z_ratio, move.accel) + move.limit_speed(self.max_z_velocity * z_ratio, + self.max_z_accel * z_ratio) limit_xy2 = -1. # Limit the speed/accel of this move if is is at the extreme # end of the build envelope -- cgit v1.2.3-70-g09d2