From f958542ebb70ec1138aac2e9acf3b80f2e32aa19 Mon Sep 17 00:00:00 2001 From: Florian Heilmann Date: Tue, 6 Aug 2019 18:19:29 +0000 Subject: kinematics: Add get_status() method to kinematics Signed-off-by: Florian Heilmann --- klippy/kinematics/corexy.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'klippy/kinematics/corexy.py') 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) -- cgit v1.2.3-70-g09d2