mirror of
git://soft.sys114.com/klipper
synced 2026-02-12 19:20:27 +09:00
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:
@@ -40,8 +40,7 @@ class SafeZHoming:
|
||||
toolhead.set_position(pos, homing_axes=[2])
|
||||
toolhead.manual_move([None, None, self.z_hop],
|
||||
self.z_hop_speed)
|
||||
if hasattr(toolhead.get_kinematics(), "note_z_not_homed"):
|
||||
toolhead.get_kinematics().note_z_not_homed()
|
||||
toolhead.get_kinematics().clear_homing_state((2,))
|
||||
elif pos[2] < self.z_hop:
|
||||
# If the Z axis is homed, and below z_hop, lift it to z_hop
|
||||
toolhead.manual_move([None, None, self.z_hop],
|
||||
|
||||
Reference in New Issue
Block a user