aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/kinematics/delta.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-07-16 10:16:16 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-07-16 10:16:16 -0400
commitca505bf4ac380bbc2430493ec33779777e82d3da (patch)
tree46f78c89d1d763e109006ef8629e567f109547b0 /klippy/kinematics/delta.py
parent89835940f70ff4b9f19a77d14fdaeefa86d777db (diff)
downloadkutter-ca505bf4ac380bbc2430493ec33779777e82d3da.tar.gz
kutter-ca505bf4ac380bbc2430493ec33779777e82d3da.tar.xz
kutter-ca505bf4ac380bbc2430493ec33779777e82d3da.zip
kinematics: Convert get_rails() method to get_steppers()
All callers of get_rails() actually just want the steppers, so return them directly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/kinematics/delta.py')
-rw-r--r--klippy/kinematics/delta.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/kinematics/delta.py b/klippy/kinematics/delta.py
index 4cf2408d..e51f5c94 100644
--- a/klippy/kinematics/delta.py
+++ b/klippy/kinematics/delta.py
@@ -80,8 +80,8 @@ class DeltaKinematics:
% (math.sqrt(self.max_xy2), math.sqrt(self.slow_xy2),
math.sqrt(self.very_slow_xy2)))
self.set_position([0., 0., 0.], ())
- def get_rails(self, flags=""):
- return list(self.rails)
+ def get_steppers(self, flags=""):
+ return [s for rail in self.rails for s in rail.get_steppers()]
def _actuator_to_cartesian(self, spos):
sphere_coords = [(t[0], t[1], sp) for t, sp in zip(self.towers, spos)]
return mathutil.trilateration(sphere_coords, self.arm2)