aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-04 12:31:03 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-07 13:43:56 -0400
commitc4b1a79db26d2e6bcc43d39822f854256cc30a10 (patch)
tree4fd3715415874d9c6cfa1e5d6e509ec4f96e8c50 /klippy/stepper.py
parent47f12f107d613ce0ccd11b69aee126df24fcb8e7 (diff)
downloadkutter-c4b1a79db26d2e6bcc43d39822f854256cc30a10.tar.gz
kutter-c4b1a79db26d2e6bcc43d39822f854256cc30a10.tar.xz
kutter-c4b1a79db26d2e6bcc43d39822f854256cc30a10.zip
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>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py1
1 files changed, 1 insertions, 0 deletions
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)