mirror of
git://soft.sys114.com/klipper
synced 2026-02-11 22:10:26 +09:00
stepper: Do not set min_stop_interval in micro-controller
The min_stop_interval safety check is fragile and leads to a notable amount of complexity. Avoid these issues by not programming this safety check. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -25,15 +25,11 @@ class DeltaKinematics:
|
||||
self.rails = [rail_a, rail_b, rail_c]
|
||||
config.get_printer().register_event_handler("stepper_enable:motor_off",
|
||||
self._motor_off)
|
||||
# Setup stepper max halt velocity
|
||||
# Setup max velocity
|
||||
self.max_velocity, self.max_accel = toolhead.get_max_velocity()
|
||||
self.max_z_velocity = config.getfloat(
|
||||
'max_z_velocity', self.max_velocity,
|
||||
above=0., maxval=self.max_velocity)
|
||||
max_halt_velocity = toolhead.get_max_axis_halt() * SLOW_RATIO
|
||||
max_halt_accel = self.max_accel * SLOW_RATIO
|
||||
for rail in self.rails:
|
||||
rail.set_max_jerk(max_halt_velocity, max_halt_accel)
|
||||
# Read radius and arm lengths
|
||||
self.radius = radius = config.getfloat('delta_radius', above=0.)
|
||||
print_radius = config.getfloat('print_radius', radius, above=0.)
|
||||
|
||||
Reference in New Issue
Block a user