From f46bc0ef046f3848d64666778a304c85bb5439a3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 26 Dec 2016 13:15:37 -0500 Subject: stepper: Change default max_error from 50us to 25us Change the default compression error window (max_error) from 50us to 25us - it's common for stepper motor drivers to have 30us for their "pwm fixed off time" and it would be good for the steps to be scheduled within that time. Signed-off-by: Kevin O'Connor --- klippy/stepper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/stepper.py') diff --git a/klippy/stepper.py b/klippy/stepper.py index 1c40e6c7..43b541f3 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -51,7 +51,7 @@ class PrinterStepper: self.min_stop_interval = (math.sqrt(3.*inv_max_step_accel + jc**2) - math.sqrt(inv_max_step_accel + jc**2)) def build_config(self): - max_error = self.config.getfloat('max_error', 0.000050) + max_error = self.config.getfloat('max_error', 0.000025) step_pin = self.config.get('step_pin') dir_pin = self.config.get('dir_pin') min_stop_interval = max(0., self.min_stop_interval - max_error) -- cgit v1.2.3-70-g09d2