Allow positive Z nozzle to probe offset (#20344)
* Allow a positive value for z offset from nozzle to probe without sanity checks * Simplify menu_probe_offset.cpp (HOMING_Z_WITH_PROBE) * Add some more explanation to Configuration Files * Raise after probe_at_point as if homed Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> Co-authored-by: Jason Smith <jason.inet@gmail.com>
This commit is contained in:
@ -1357,12 +1357,6 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||
static_assert(sanity_nozzle_to_probe_offset.x == 0 && sanity_nozzle_to_probe_offset.y == 0,
|
||||
"NOZZLE_AS_PROBE requires the XY offsets in NOZZLE_TO_PROBE_OFFSET to both be 0.");
|
||||
#else
|
||||
static_assert(sanity_nozzle_to_probe_offset.z <= 0.25,
|
||||
"Are you sure your Probe triggers above the nozzle? Set a negative Z value in the NOZZLE_TO_PROBE_OFFSET.");
|
||||
#ifdef PROBE_OFFSET_WIZARD_START_Z
|
||||
static_assert(PROBE_OFFSET_WIZARD_START_Z <= 0.25,
|
||||
"Are you sure your Probe triggers above the nozzle? Set a negative value for PROBE_OFFSET_WIZARD_START_Z.");
|
||||
#endif
|
||||
static_assert(PROBING_MARGIN >= 0, "PROBING_MARGIN must be >= 0.");
|
||||
static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
|
||||
static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
|
||||
|
@ -107,8 +107,8 @@ void probe_offset_wizard_menu() {
|
||||
|
||||
ACTION_ITEM(MSG_BUTTON_CANCEL, []{
|
||||
set_offset_and_go_back(z_offset_backup);
|
||||
// If wizard-homing was done by probe with with PROBE_OFFSET_WIZARD_START_Z
|
||||
#if EITHER(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN, USE_PROBE_FOR_Z_HOMING) && defined(PROBE_OFFSET_WIZARD_START_Z)
|
||||
// If wizard-homing was done by probe with PROBE_OFFSET_WIZARD_START_Z
|
||||
#if HOMING_Z_WITH_PROBE && defined(PROBE_OFFSET_WIZARD_START_Z)
|
||||
set_axis_never_homed(Z_AXIS); // On cancel the Z position needs correction
|
||||
queue.inject_P(PSTR("G28Z"));
|
||||
#else // Otherwise do a Z clearance move like after Homing
|
||||
@ -122,7 +122,7 @@ void probe_offset_wizard_menu() {
|
||||
void prepare_for_probe_offset_wizard() {
|
||||
if (ui.wait_for_move) return;
|
||||
|
||||
#if defined(PROBE_OFFSET_WIZARD_XY_POS) || NONE(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN, USE_PROBE_FOR_Z_HOMING)
|
||||
#if defined(PROBE_OFFSET_WIZARD_XY_POS) || !HOMING_Z_WITH_PROBE
|
||||
if (ui.should_draw()) MenuItem_static::draw(1, GET_TEXT(MSG_PROBE_WIZARD_PROBING));
|
||||
|
||||
#ifndef PROBE_OFFSET_WIZARD_XY_POS
|
||||
@ -133,7 +133,7 @@ void prepare_for_probe_offset_wizard() {
|
||||
|
||||
// Probe for Z reference
|
||||
ui.wait_for_move = true;
|
||||
z_offset_ref = probe.probe_at_point(wizard_pos, PROBE_PT_STOW, 0, true);
|
||||
z_offset_ref = probe.probe_at_point(wizard_pos, PROBE_PT_RAISE, 0, true);
|
||||
ui.wait_for_move = false;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user