mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-14 18:28:00 -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
|
@ -124,6 +124,10 @@ class CartKinematics:
|
|||
for i, rail in enumerate(self.rails):
|
||||
if move.axes_d[i]:
|
||||
rail.step_itersolve(move.cmove)
|
||||
def get_status(self):
|
||||
return {'homed_axes': "".join([a
|
||||
for a, (l, h) in zip("XYZ", self.limits) if l <= h])
|
||||
}
|
||||
# Dual carriage support
|
||||
def _activate_carriage(self, carriage):
|
||||
toolhead = self.printer.lookup_object('toolhead')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue