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/polar.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/polar.py')
-rw-r--r-- | klippy/kinematics/polar.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/kinematics/polar.py b/klippy/kinematics/polar.py index 790ce467..230e67f6 100644 --- a/klippy/kinematics/polar.py +++ b/klippy/kinematics/polar.py @@ -130,6 +130,9 @@ class PolarKinematics: stepper_bed.set_commanded_position(angle - 2. * math.pi) if axes_d[2]: self.rails[1].step_itersolve(cmove) + def get_status(self): + return {'homed_axes': (("XY" if self.limit_xy2 >= 0. else "") + + ("Z" if self.limit_z[0] <= self.limit_z[1] else ""))} def load_kinematics(toolhead, config): return PolarKinematics(toolhead, config) |