diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-24 19:16:21 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-24 20:21:13 -0500 |
commit | 36832739369ab2f66beb1bad732523b5c3687ff7 (patch) | |
tree | f98e7c34c8da7c55590e451fff95c83f540c4123 /klippy/kinematics/polar.py | |
parent | 282af0220e2622fbba304f66f001f442b9f3ca8d (diff) | |
download | kutter-36832739369ab2f66beb1bad732523b5c3687ff7.tar.gz kutter-36832739369ab2f66beb1bad732523b5c3687ff7.tar.xz kutter-36832739369ab2f66beb1bad732523b5c3687ff7.zip |
toolhead: Report which axes are homed via get_status()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/kinematics/polar.py')
-rw-r--r-- | klippy/kinematics/polar.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/klippy/kinematics/polar.py b/klippy/kinematics/polar.py index 3a043ab3..4201978d 100644 --- a/klippy/kinematics/polar.py +++ b/klippy/kinematics/polar.py @@ -104,9 +104,10 @@ class PolarKinematics: z_ratio = move.move_d / abs(move.axes_d[2]) move.limit_speed( self.max_z_velocity * z_ratio, self.max_z_accel * z_ratio) - 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 get_status(self, eventtime): + xy_home = "xy" if self.limit_xy2 >= 0. else "" + z_home = "z" if self.limit_z[0] <= self.limit_z[1] else "" + return {'homed_axes': xy_home + z_home} def load_kinematics(toolhead, config): return PolarKinematics(toolhead, config) |