mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 13:04:05 -06:00
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 <kevin@koconnor.net>
This commit is contained in:
parent
800d53db6a
commit
f46bc0ef04
2 changed files with 6 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue