mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 07:04:01 -06:00
stepper: Replace PrinterHomingStepper with PrinterRail
Update the code to use the term "rail" when dealing with a motor controlled "axis". A rail has a series of steppers and endstops that control that motor controlled "axis". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
93d0526a77
commit
0791c69499
7 changed files with 200 additions and 194 deletions
|
@ -118,13 +118,13 @@ class Homing:
|
|||
|
||||
def query_endstops(toolhead):
|
||||
print_time = toolhead.get_last_move_time()
|
||||
steppers = toolhead.get_kinematics().get_steppers()
|
||||
rails = toolhead.get_kinematics().get_rails()
|
||||
out = []
|
||||
for s in steppers:
|
||||
for mcu_endstop, name in s.get_endstops():
|
||||
for rail in rails:
|
||||
for mcu_endstop, name in rail.get_endstops():
|
||||
mcu_endstop.query_endstop(print_time)
|
||||
for s in steppers:
|
||||
for mcu_endstop, name in s.get_endstops():
|
||||
for rail in rails:
|
||||
for mcu_endstop, name in rail.get_endstops():
|
||||
out.append((name, mcu_endstop.query_endstop_wait()))
|
||||
return out
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue