mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-01 10:56:18 +01:00
mcu: Pass constant velocity and acceleration directly to mcu_stepper
Rename step_sqrt/step_factor to step_accel/step_const and have them directly take the velocity and acceleration in millimeters and seconds. This simplifies the kinematic classes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -43,6 +43,7 @@ class PrinterStepper:
|
||||
dir_pin = config.get('dir_pin')
|
||||
mcu = printer.mcu
|
||||
self.mcu_stepper = mcu.create_stepper(step_pin, dir_pin)
|
||||
self.mcu_stepper.set_step_distance(self.step_dist)
|
||||
enable_pin = config.get('enable_pin', None)
|
||||
if enable_pin is not None:
|
||||
self.mcu_enable = mcu.create_digital_out(enable_pin, 0)
|
||||
|
||||
Reference in New Issue
Block a user