aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.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/mcu.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/mcu.py')
-rw-r--r--klippy/mcu.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 98d516fb..e2bd222d 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -61,6 +61,8 @@ class MCU_stepper:
self._mcu.register_stepqueue(self._stepqueue)
def get_oid(self):
return self._oid
+ def get_step_dist(self):
+ return self._step_dist
def set_position(self, pos):
if pos >= 0.:
steppos = int(pos * self._inv_step_dist + 0.5)