diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-12-04 18:42:59 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-01-06 11:49:41 -0500 |
commit | 97d976fc53f897ad57db963078bcbf5018d34968 (patch) | |
tree | 9482958a4ed8bbab214e7d1eb74011bbd063b788 /klippy/kinematics/polar.py | |
parent | bcf10aa99037843dfccd83ab44b38b61d5747720 (diff) | |
download | kutter-97d976fc53f897ad57db963078bcbf5018d34968.tar.gz kutter-97d976fc53f897ad57db963078bcbf5018d34968.tar.xz kutter-97d976fc53f897ad57db963078bcbf5018d34968.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/kinematics/polar.py')
-rw-r--r-- | klippy/kinematics/polar.py | 3 |
1 files changed, 2 insertions, 1 deletions
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') |