mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 04:54:11 -06:00
homing: Pass list of endstops (not steppers) to the homing code
The homing code wants the list of endstops to enable during a homing operation - it's confusing to pass the steppers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
31db4cc772
commit
7785d3a87d
6 changed files with 40 additions and 39 deletions
|
@ -51,14 +51,14 @@ class CartKinematics:
|
|||
homepos[axis] = s.position_endstop
|
||||
coord = [None, None, None, None]
|
||||
coord[axis] = pos
|
||||
homing_state.home(list(coord), homepos, [s], homing_speed)
|
||||
homing_state.home(coord, homepos, s.get_endstops(), homing_speed)
|
||||
# Retract
|
||||
coord[axis] = rpos
|
||||
homing_state.retract(list(coord), homing_speed)
|
||||
homing_state.retract(coord, homing_speed)
|
||||
# Home again
|
||||
coord[axis] = r2pos
|
||||
homing_state.home(
|
||||
list(coord), homepos, [s], homing_speed/2.0, second_home=True)
|
||||
homing_state.home(coord, homepos, s.get_endstops(),
|
||||
homing_speed/2.0, second_home=True)
|
||||
# Set final homed position
|
||||
coord[axis] = s.position_endstop + s.get_homed_offset()
|
||||
homing_state.set_homed_position(coord)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue