mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-16 03:07:56 -06:00
kinematics: Add get_status() method to kinematics
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
This commit is contained in:
parent
09f323a038
commit
f958542ebb
6 changed files with 19 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue