From 97d976fc53f897ad57db963078bcbf5018d34968 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 4 Dec 2019 18:42:59 -0500 Subject: stepper: Track if using units of radians instead of millimeters The STEPPER_BUZZ command needs to know if the axis is using radians instead of millimeters so that it can move a more appropriate distance. Signed-off-by: Kevin O'Connor --- klippy/kinematics/polar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'klippy/kinematics') diff --git a/klippy/kinematics/polar.py b/klippy/kinematics/polar.py index 4201978d..6b86a8c8 100644 --- a/klippy/kinematics/polar.py +++ b/klippy/kinematics/polar.py @@ -9,7 +9,8 @@ import stepper, homing class PolarKinematics: def __init__(self, toolhead, config): # Setup axis steppers - stepper_bed = stepper.PrinterStepper(config.getsection('stepper_bed')) + stepper_bed = stepper.PrinterStepper(config.getsection('stepper_bed'), + units_in_radians=True) rail_arm = stepper.PrinterRail(config.getsection('stepper_arm')) rail_z = stepper.LookupMultiRail(config.getsection('stepper_z')) stepper_bed.setup_itersolve('polar_stepper_alloc', 'a') -- cgit v1.2.3-70-g09d2