From c4b1a79db26d2e6bcc43d39822f854256cc30a10 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 4 Apr 2017 12:31:03 -0400 Subject: 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 --- klippy/stepper.py | 1 + 1 file changed, 1 insertion(+) (limited to 'klippy/stepper.py') diff --git a/klippy/stepper.py b/klippy/stepper.py index eb8c2400..a5a10c7a 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -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) -- cgit v1.2.3-70-g09d2