diff options
author | Dennis Marttinen <38858901+twelho@users.noreply.github.com> | 2025-01-10 15:41:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-10 10:41:09 -0500 |
commit | 7083879700800710c624c0bf08220215ba5f4a83 (patch) | |
tree | 03595e28aca8238f9f8e727ba6e1d43aed52b2e6 /klippy/kinematics/deltesian.py | |
parent | 9ca71d8608f4a6013c3453ffa9e75c3739078712 (diff) | |
download | kutter-7083879700800710c624c0bf08220215ba5f4a83.tar.gz kutter-7083879700800710c624c0bf08220215ba5f4a83.tar.xz kutter-7083879700800710c624c0bf08220215ba5f4a83.zip |
force_move: Implement CLEAR for SET_KINEMATIC_POSITION (#6262)
`CLEAR` clears the homing status (resets the axis limits) without turning off
the motors. This is particularly useful when implementing safe Z homing in
`[homing_override]` on printers with multiple independent Z steppers (where
`FORCE_MOVE` can't be used).
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
Diffstat (limited to 'klippy/kinematics/deltesian.py')
-rw-r--r-- | klippy/kinematics/deltesian.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/kinematics/deltesian.py b/klippy/kinematics/deltesian.py index bb231370..e48949af 100644 --- a/klippy/kinematics/deltesian.py +++ b/klippy/kinematics/deltesian.py @@ -117,6 +117,10 @@ class DeltesianKinematics: rail.set_position(newpos) for n in homing_axes: self.homed_axis[n] = True + def clear_homing_state(self, axes): + for i, _ in enumerate(self.limits): + if i in axes: + self.homed_axis[i] = False def home(self, homing_state): homing_axes = homing_state.get_axes() home_xz = 0 in homing_axes or 2 in homing_axes |