aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/corexy.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-11-07 12:29:51 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-11-18 17:36:45 -0500
commit38643f52c97dc85bcc2bf020927852f9cfe9fff6 (patch)
tree19927ddb16399b78fb3f4e481f2da9b01a9b2f61 /klippy/corexy.py
parenteecf3b6ea87e7d9d67e26e965ebf2fe58339484d (diff)
downloadkutter-38643f52c97dc85bcc2bf020927852f9cfe9fff6.tar.gz
kutter-38643f52c97dc85bcc2bf020927852f9cfe9fff6.tar.xz
kutter-38643f52c97dc85bcc2bf020927852f9cfe9fff6.zip
stepper: Add get_endstops() / set_position wrappers
Add wrappers around mcu_endstop and mcu_stepper so that the kinematic classes do not need to directly access these low-level classes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/corexy.py')
-rw-r--r--klippy/corexy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/corexy.py b/klippy/corexy.py
index d459682a..8b92d118 100644
--- a/klippy/corexy.py
+++ b/klippy/corexy.py
@@ -32,7 +32,7 @@ class CoreXYKinematics:
def set_position(self, newpos):
pos = (newpos[0] + newpos[1], newpos[0] - newpos[1], newpos[2])
for i in StepList:
- self.steppers[i].mcu_stepper.set_position(pos[i])
+ self.steppers[i].set_position(pos[i])
def home(self, homing_state):
# Each axis is homed independently and in order
for axis in homing_state.get_axes():