aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/kinematics/polar.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-01-10 11:58:26 -0500
committerKevin O'Connor <kevin@koconnor.net>2025-01-21 18:58:23 -0500
commit6ab253366cca1b5d2d8e9dec6ea243c0853612f7 (patch)
tree6d2cd4c584ac426cf4fcf3b2ed3c0e6625db15a9 /klippy/kinematics/polar.py
parent4aa550837fc170d0b77a0d461ca4f970b7bee7ae (diff)
downloadkutter-6ab253366cca1b5d2d8e9dec6ea243c0853612f7.tar.gz
kutter-6ab253366cca1b5d2d8e9dec6ea243c0853612f7.tar.xz
kutter-6ab253366cca1b5d2d8e9dec6ea243c0853612f7.zip
force_move: Use strings for axes to clear in clear_homing_state()
Pass a string such as "xyz" to kin.clear_homing_state(). This makes the parameter a little less cryptic. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/kinematics/polar.py')
-rw-r--r--klippy/kinematics/polar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/kinematics/polar.py b/klippy/kinematics/polar.py
index 548b4bac..73967c29 100644
--- a/klippy/kinematics/polar.py
+++ b/klippy/kinematics/polar.py
@@ -49,11 +49,11 @@ class PolarKinematics:
self.limit_z = self.rails[1].get_range()
if "x" in homing_axes and "y" in homing_axes:
self.limit_xy2 = self.rails[0].get_range()[1]**2
- def clear_homing_state(self, axes):
- if 0 in axes or 1 in axes:
+ def clear_homing_state(self, clear_axes):
+ if "x" in clear_axes or "y" in clear_axes:
# X and Y cannot be cleared separately
self.limit_xy2 = -1.
- if 2 in axes:
+ if "z" in clear_axes:
self.limit_z = (1.0, -1.0)
def _home_axis(self, homing_state, axis, rail):
# Determine movement