⚡️ Add PROBE_PT_LAST_STOW
This commit is contained in:
parent
1f5eacac09
commit
eccd82b7c1
|
@ -1479,7 +1479,7 @@ void unified_bed_leveling::smart_fill_mesh() {
|
||||||
SERIAL_ECHOLNPGM("Tilting mesh (3/3)");
|
SERIAL_ECHOLNPGM("Tilting mesh (3/3)");
|
||||||
TERN_(HAS_STATUS_MESSAGE, ui.status_printf_P(0, PSTR(S_FMT " 3/3"), GET_TEXT(MSG_LCD_TILTING_MESH)));
|
TERN_(HAS_STATUS_MESSAGE, ui.status_printf_P(0, PSTR(S_FMT " 3/3"), GET_TEXT(MSG_LCD_TILTING_MESH)));
|
||||||
|
|
||||||
measured_z = probe.probe_at_point(points[2], PROBE_PT_STOW, param.V_verbosity);
|
measured_z = probe.probe_at_point(points[2], PROBE_PT_LAST_STOW, param.V_verbosity);
|
||||||
#ifdef VALIDATE_MESH_TILT
|
#ifdef VALIDATE_MESH_TILT
|
||||||
z3 = measured_z;
|
z3 = measured_z;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -751,7 +751,7 @@ float Probe::probe_at_point(const_float_t rx, const_float_t ry, const ProbePtRai
|
||||||
if (DEBUGGING(LEVELING)) {
|
if (DEBUGGING(LEVELING)) {
|
||||||
DEBUG_ECHOLNPAIR(
|
DEBUG_ECHOLNPAIR(
|
||||||
"...(", LOGICAL_X_POSITION(rx), ", ", LOGICAL_Y_POSITION(ry),
|
"...(", LOGICAL_X_POSITION(rx), ", ", LOGICAL_Y_POSITION(ry),
|
||||||
", ", raise_after == PROBE_PT_RAISE ? "raise" : raise_after == PROBE_PT_STOW ? "stow" : "none",
|
", ", raise_after == PROBE_PT_RAISE ? "raise" : raise_after == PROBE_PT_LAST_STOW ? "stow (last)" : raise_after == PROBE_PT_STOW ? "stow" : "none",
|
||||||
", ", verbose_level,
|
", ", verbose_level,
|
||||||
", ", probe_relative ? "probe" : "nozzle", "_relative)"
|
", ", probe_relative ? "probe" : "nozzle", "_relative)"
|
||||||
);
|
);
|
||||||
|
@ -782,7 +782,7 @@ float Probe::probe_at_point(const_float_t rx, const_float_t ry, const ProbePtRai
|
||||||
const bool big_raise = raise_after == PROBE_PT_BIG_RAISE;
|
const bool big_raise = raise_after == PROBE_PT_BIG_RAISE;
|
||||||
if (big_raise || raise_after == PROBE_PT_RAISE)
|
if (big_raise || raise_after == PROBE_PT_RAISE)
|
||||||
do_blocking_move_to_z(current_position.z + (big_raise ? 25 : Z_CLEARANCE_BETWEEN_PROBES), z_probe_fast_mm_s);
|
do_blocking_move_to_z(current_position.z + (big_raise ? 25 : Z_CLEARANCE_BETWEEN_PROBES), z_probe_fast_mm_s);
|
||||||
else if (raise_after == PROBE_PT_STOW)
|
else if (raise_after == PROBE_PT_STOW || raise_after == PROBE_PT_LAST_STOW)
|
||||||
if (stow()) measured_z = NAN; // Error on stow?
|
if (stow()) measured_z = NAN; // Error on stow?
|
||||||
|
|
||||||
if (verbose_level > 2)
|
if (verbose_level > 2)
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
enum ProbePtRaise : uint8_t {
|
enum ProbePtRaise : uint8_t {
|
||||||
PROBE_PT_NONE, // No raise or stow after run_z_probe
|
PROBE_PT_NONE, // No raise or stow after run_z_probe
|
||||||
PROBE_PT_STOW, // Do a complete stow after run_z_probe
|
PROBE_PT_STOW, // Do a complete stow after run_z_probe
|
||||||
|
PROBE_PT_LAST_STOW, // Stow for sure, even in BLTouch HS mode
|
||||||
PROBE_PT_RAISE, // Raise to "between" clearance after run_z_probe
|
PROBE_PT_RAISE, // Raise to "between" clearance after run_z_probe
|
||||||
PROBE_PT_BIG_RAISE // Raise to big clearance after run_z_probe
|
PROBE_PT_BIG_RAISE // Raise to big clearance after run_z_probe
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue