diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-01-10 11:27:30 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-01-21 18:58:23 -0500 |
commit | 4aa550837fc170d0b77a0d461ca4f970b7bee7ae (patch) | |
tree | 7a185d949b9179c5f9b3977539e9cfda5ca7756e /klippy/kinematics/rotary_delta.py | |
parent | c72d73ec450119b5fbe13d98409037a21ae97101 (diff) | |
download | kutter-4aa550837fc170d0b77a0d461ca4f970b7bee7ae.tar.gz kutter-4aa550837fc170d0b77a0d461ca4f970b7bee7ae.tar.xz kutter-4aa550837fc170d0b77a0d461ca4f970b7bee7ae.zip |
toolhead: Pass set_position() homing_axes parameter as a string
Use strings such as "xyz" to specify which axes are to be considered
homing during a set_position() call. This makes the parameter a
little less cryptic.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/kinematics/rotary_delta.py')
-rw-r--r-- | klippy/kinematics/rotary_delta.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/kinematics/rotary_delta.py b/klippy/kinematics/rotary_delta.py index 89f963d2..6b457ccb 100644 --- a/klippy/kinematics/rotary_delta.py +++ b/klippy/kinematics/rotary_delta.py @@ -74,7 +74,7 @@ class RotaryDeltaKinematics: max_xy = math.sqrt(self.max_xy2) self.axes_min = toolhead.Coord(-max_xy, -max_xy, self.min_z, 0.) self.axes_max = toolhead.Coord(max_xy, max_xy, self.max_z, 0.) - self.set_position([0., 0., 0.], ()) + self.set_position([0., 0., 0.], "") def get_steppers(self): return [s for rail in self.rails for s in rail.get_steppers()] def calc_position(self, stepper_positions): @@ -84,7 +84,7 @@ class RotaryDeltaKinematics: for rail in self.rails: rail.set_position(newpos) self.limit_xy2 = -1. - if tuple(homing_axes) == (0, 1, 2): + if homing_axes == "xyz": self.need_home = False def clear_homing_state(self, axes): # Clearing homing state for each axis individually is not implemented |