mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-13 08:46:03 +01:00
kinematics: Add get_status() method to kinematics
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
This commit is contained in:
committed by
KevinOConnor
parent
09f323a038
commit
f958542ebb
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user