Add LEVEL_CORNERS_HEIGHT to LEVEL_BED_CORNERS (#13439)

This commit is contained in:
drzejkopf
2019-03-21 00:26:12 +01:00
committed by Scott Lahteine
parent f3cf95a937
commit 70e6a3db8a
95 changed files with 99 additions and 1 deletions

View File

@ -1237,6 +1237,7 @@
#if ENABLED(LEVEL_BED_CORNERS)
#define LEVEL_CORNERS_INSET 30 // (mm) An inset for corner leveling
#define LEVEL_CORNERS_Z_HOP 4.0 // (mm) Move nozzle up before moving between corners
#define LEVEL_CORNERS_HEIGHT 0.0 // (mm) Z height of nozzle at leveling points
//#define LEVEL_CENTER_TOO // Move to the center after the last corner
#endif

View File

@ -36,6 +36,10 @@
#define LEVEL_CORNERS_Z_HOP 4.0
#endif
#ifndef LEVEL_CORNERS_HEIGHT
#define LEVEL_CORNERS_HEIGHT 0.0
#endif
static_assert(LEVEL_CORNERS_Z_HOP >= 0, "LEVEL_CORNERS_Z_HOP must be >= 0. Please update your configuration.");
/**
@ -66,7 +70,7 @@ void _lcd_goto_next_corner() {
#endif
}
planner.buffer_line(current_position, MMM_TO_MMS(manual_feedrate_mm_m[X_AXIS]), active_extruder);
line_to_z(0.0);
line_to_z(LEVEL_CORNERS_HEIGHT);
if (++bed_corner > 3
#if ENABLED(LEVEL_CENTER_TOO)
+ 1