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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user