🐛 LCD Bed Tramming fixes (#26962)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
08fe8a3076
commit
f5f6c37c17
@@ -714,6 +714,14 @@ void do_blocking_move_to(const xyze_pos_t &raw, const_feedRate_t fr_mm_s/*=0.0f*
|
||||
fr_mm_s
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Move Z to a particular height so the nozzle or deployed probe clears the bed.
|
||||
* (Use do_z_clearance_by for clearance over the current position.)
|
||||
* - For a probe, add clearance for the probe distance
|
||||
* - Constrain to the Z max physical position
|
||||
* - If lowering is not allowed then skip a downward move
|
||||
* - Execute the move at the probing (or homing) feedrate
|
||||
*/
|
||||
void do_z_clearance(const_float_t zclear, const bool with_probe/*=true*/, const bool lower_allowed/*=false*/) {
|
||||
UNUSED(with_probe);
|
||||
float zdest = zclear;
|
||||
@@ -727,9 +735,13 @@ void do_blocking_move_to(const xyze_pos_t &raw, const_feedRate_t fr_mm_s/*=0.0f*
|
||||
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("do_z_clearance_by(", zclear, ")");
|
||||
do_z_clearance(current_position.z + zclear, false);
|
||||
}
|
||||
/**
|
||||
* Move Z to Z_POST_CLEARANCE,
|
||||
* The axis is allowed to move down.
|
||||
*/
|
||||
void do_move_after_z_homing() {
|
||||
DEBUG_SECTION(mzah, "do_move_after_z_homing", DEBUGGING(LEVELING));
|
||||
#if defined(Z_AFTER_HOMING) || ALL(DWIN_LCD_PROUI, INDIVIDUAL_AXIS_HOMING_SUBMENU, MESH_BED_LEVELING)
|
||||
#ifdef Z_POST_CLEARANCE
|
||||
do_z_clearance(Z_POST_CLEARANCE, true, true);
|
||||
#elif ENABLED(USE_PROBE_FOR_Z_HOMING)
|
||||
probe.move_z_after_probing();
|
||||
|
Reference in New Issue
Block a user