diff options
author | Florian Heilmann <Florian.Heilmann@gmx.net> | 2019-08-06 18:19:29 +0000 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-08-09 20:49:17 -0400 |
commit | f958542ebb70ec1138aac2e9acf3b80f2e32aa19 (patch) | |
tree | 4de9f0015e7b8f5d18714e2b8ab3818867bd0242 /klippy/kinematics/corexy.py | |
parent | 09f323a038e2d99a40c0291f3cc5d4ac85473321 (diff) | |
download | kutter-f958542ebb70ec1138aac2e9acf3b80f2e32aa19.tar.gz kutter-f958542ebb70ec1138aac2e9acf3b80f2e32aa19.tar.xz kutter-f958542ebb70ec1138aac2e9acf3b80f2e32aa19.zip |
kinematics: Add get_status() method to kinematics
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
Diffstat (limited to 'klippy/kinematics/corexy.py')
-rw-r--r-- | klippy/kinematics/corexy.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/kinematics/corexy.py b/klippy/kinematics/corexy.py index 03580e3e..2470787e 100644 --- a/klippy/kinematics/corexy.py +++ b/klippy/kinematics/corexy.py @@ -111,6 +111,10 @@ class CoreXYKinematics: rail_y.step_itersolve(cmove) if axes_d[2]: rail_z.step_itersolve(cmove) + def get_status(self): + return {'homed_axes': "".join([a + for a, (l, h) in zip("XYZ", self.limits) if l <= h]) + } def load_kinematics(toolhead, config): return CoreXYKinematics(toolhead, config) |