mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 23:46:25 -06:00
stepper: Separate out homing code to its own PrinterHomingStepper class
Keep the homing code separate from the main stepper class. This makes it easier to verify the correct config parameters are provided. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8ce042bf04
commit
143b7cccf4
4 changed files with 45 additions and 42 deletions
|
@ -10,7 +10,7 @@ StepList = (0, 1, 2)
|
|||
|
||||
class CartKinematics:
|
||||
def __init__(self, printer, config):
|
||||
self.steppers = [stepper.PrinterStepper(
|
||||
self.steppers = [stepper.PrinterHomingStepper(
|
||||
printer, config.getsection('stepper_' + n), n)
|
||||
for n in ['x', 'y', 'z']]
|
||||
self.max_z_velocity = config.getfloat(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue