aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/homing.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-06-22 11:44:25 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-06-22 14:09:01 -0400
commit0791c694995ef2d8f559e2e0c072e34b46aaeaaa (patch)
treebd89d69067596bd3fc1052cf030616486e90043b /klippy/homing.py
parent93d0526a775c09606779bd237c6e21b1680eeed8 (diff)
downloadkutter-0791c694995ef2d8f559e2e0c072e34b46aaeaaa.tar.gz
kutter-0791c694995ef2d8f559e2e0c072e34b46aaeaaa.tar.xz
kutter-0791c694995ef2d8f559e2e0c072e34b46aaeaaa.zip
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>
Diffstat (limited to 'klippy/homing.py')
-rw-r--r--klippy/homing.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/klippy/homing.py b/klippy/homing.py
index b3427854..77a8e379 100644
--- a/klippy/homing.py
+++ b/klippy/homing.py
@@ -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