mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 23:30:16 +00:00
[1.1.x] Add Z_PROBE_HYSTERESIS to mitigate Z jerking while probing (#9375)
This commit is contained in:
parent
6445859270
commit
f4076fe99d
@ -2244,13 +2244,12 @@ static void clean_up_after_endstop_or_probe_move() {
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// If the nozzle is above the travel height then
|
// If the nozzle is well over the travel height then
|
||||||
// move down quickly before doing the slow probe
|
// move down quickly before doing the slow probe
|
||||||
float z = Z_CLEARANCE_DEPLOY_PROBE;
|
float z = Z_CLEARANCE_DEPLOY_PROBE + 5.0;
|
||||||
if (zprobe_zoffset < 0) z -= zprobe_zoffset;
|
if (zprobe_zoffset < 0) z -= zprobe_zoffset;
|
||||||
|
|
||||||
if (z < current_position[Z_AXIS]) {
|
if (current_position[Z_AXIS] > z) {
|
||||||
|
|
||||||
// If we don't make it to the z position (i.e. the probe triggered), move up to make clearance for the probe
|
// If we don't make it to the z position (i.e. the probe triggered), move up to make clearance for the probe
|
||||||
if (!do_probe_move(z, Z_PROBE_SPEED_FAST))
|
if (!do_probe_move(z, Z_PROBE_SPEED_FAST))
|
||||||
do_blocking_move_to_z(current_position[Z_AXIS] + Z_CLEARANCE_BETWEEN_PROBES, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
|
do_blocking_move_to_z(current_position[Z_AXIS] + Z_CLEARANCE_BETWEEN_PROBES, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
|
||||||
|
Loading…
Reference in New Issue
Block a user