mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 22:54:10 -06:00
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>
This commit is contained in:
parent
bcf10aa990
commit
97d976fc53
3 changed files with 23 additions and 9 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue