Merge pull request #2038 from Eriobis/MK3
Add a threshold distance to Z calibration
This commit is contained in:
commit
898e85e69f
@ -291,6 +291,8 @@ your extruder heater takes 2 minutes to hit the target on heating.
|
|||||||
|
|
||||||
#define Z_HEIGHT_HIDE_LIVE_ADJUST_MENU 2.0f
|
#define Z_HEIGHT_HIDE_LIVE_ADJUST_MENU 2.0f
|
||||||
|
|
||||||
|
#define HOME_Z_SEARCH_THRESHOLD 0.15f // Threshold of the Z height in calibration
|
||||||
|
|
||||||
//============================= Bed Auto Leveling ===========================
|
//============================= Bed Auto Leveling ===========================
|
||||||
|
|
||||||
//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
|
//#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
|
||||||
|
@ -2860,7 +2860,8 @@ bool gcode_M45(bool onlyZ, int8_t verbosity_level)
|
|||||||
#endif //TMC2130
|
#endif //TMC2130
|
||||||
enable_endstops(endstops_enabled);
|
enable_endstops(endstops_enabled);
|
||||||
|
|
||||||
if (st_get_position_mm(Z_AXIS) == MESH_HOME_Z_SEARCH)
|
if ((st_get_position_mm(Z_AXIS) <= (MESH_HOME_Z_SEARCH + HOME_Z_SEARCH_THRESHOLD)) &&
|
||||||
|
(st_get_position_mm(Z_AXIS) >= (MESH_HOME_Z_SEARCH - HOME_Z_SEARCH_THRESHOLD)))
|
||||||
{
|
{
|
||||||
if (onlyZ)
|
if (onlyZ)
|
||||||
{
|
{
|
||||||
|
@ -257,7 +257,7 @@ BED SETTINGS
|
|||||||
#define BED_ADJUSTMENT_UM_MAX 100
|
#define BED_ADJUSTMENT_UM_MAX 100
|
||||||
|
|
||||||
#define MESH_HOME_Z_CALIB 0.2
|
#define MESH_HOME_Z_CALIB 0.2
|
||||||
#define MESH_HOME_Z_SEARCH 5 //Z lift for homing, mesh bed leveling etc.
|
#define MESH_HOME_Z_SEARCH 5.0f // Z lift for homing, mesh bed leveling etc.
|
||||||
|
|
||||||
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
||||||
#define Y_PROBE_OFFSET_FROM_EXTRUDER 9 // Z probe to nozzle Y offset: -front +behind
|
#define Y_PROBE_OFFSET_FROM_EXTRUDER 9 // Z probe to nozzle Y offset: -front +behind
|
||||||
|
@ -256,7 +256,7 @@ BED SETTINGS
|
|||||||
#define BED_ADJUSTMENT_UM_MAX 100
|
#define BED_ADJUSTMENT_UM_MAX 100
|
||||||
|
|
||||||
#define MESH_HOME_Z_CALIB 0.2
|
#define MESH_HOME_Z_CALIB 0.2
|
||||||
#define MESH_HOME_Z_SEARCH 5 //Z lift for homing, mesh bed leveling etc.
|
#define MESH_HOME_Z_SEARCH 5.0f // Z lift for homing, mesh bed leveling etc.
|
||||||
|
|
||||||
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
||||||
#define Y_PROBE_OFFSET_FROM_EXTRUDER 9 // Z probe to nozzle Y offset: -front +behind
|
#define Y_PROBE_OFFSET_FROM_EXTRUDER 9 // Z probe to nozzle Y offset: -front +behind
|
||||||
|
@ -314,7 +314,7 @@
|
|||||||
#define BED_ADJUSTMENT_UM_MAX 100
|
#define BED_ADJUSTMENT_UM_MAX 100
|
||||||
|
|
||||||
#define MESH_HOME_Z_CALIB 0.2
|
#define MESH_HOME_Z_CALIB 0.2
|
||||||
#define MESH_HOME_Z_SEARCH 5 //Z lift for homing, mesh bed leveling etc.
|
#define MESH_HOME_Z_SEARCH 5.0f // Z lift for homing, mesh bed leveling etc.
|
||||||
|
|
||||||
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
||||||
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
||||||
|
@ -315,7 +315,7 @@
|
|||||||
#define BED_ADJUSTMENT_UM_MAX 100
|
#define BED_ADJUSTMENT_UM_MAX 100
|
||||||
|
|
||||||
#define MESH_HOME_Z_CALIB 0.2
|
#define MESH_HOME_Z_CALIB 0.2
|
||||||
#define MESH_HOME_Z_SEARCH 5 //Z lift for homing, mesh bed leveling etc.
|
#define MESH_HOME_Z_SEARCH 5.0f // Z lift for homing, mesh bed leveling etc.
|
||||||
|
|
||||||
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
||||||
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
||||||
|
@ -314,7 +314,7 @@
|
|||||||
#define BED_ADJUSTMENT_UM_MAX 100
|
#define BED_ADJUSTMENT_UM_MAX 100
|
||||||
|
|
||||||
#define MESH_HOME_Z_CALIB 0.2
|
#define MESH_HOME_Z_CALIB 0.2
|
||||||
#define MESH_HOME_Z_SEARCH 5 //Z lift for homing, mesh bed leveling etc.
|
#define MESH_HOME_Z_SEARCH 5.0f // Z lift for homing, mesh bed leveling etc.
|
||||||
|
|
||||||
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
||||||
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
||||||
|
@ -315,7 +315,7 @@
|
|||||||
#define BED_ADJUSTMENT_UM_MAX 100
|
#define BED_ADJUSTMENT_UM_MAX 100
|
||||||
|
|
||||||
#define MESH_HOME_Z_CALIB 0.2
|
#define MESH_HOME_Z_CALIB 0.2
|
||||||
#define MESH_HOME_Z_SEARCH 5 //Z lift for homing, mesh bed leveling etc.
|
#define MESH_HOME_Z_SEARCH 5.0f // Z lift for homing, mesh bed leveling etc.
|
||||||
|
|
||||||
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
||||||
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
||||||
|
@ -422,7 +422,7 @@
|
|||||||
#define BED_ADJUSTMENT_UM_MAX 100
|
#define BED_ADJUSTMENT_UM_MAX 100
|
||||||
|
|
||||||
#define MESH_HOME_Z_CALIB 0.2
|
#define MESH_HOME_Z_CALIB 0.2
|
||||||
#define MESH_HOME_Z_SEARCH 5 //Z lift for homing, mesh bed leveling etc.
|
#define MESH_HOME_Z_SEARCH 5.0f // Z lift for homing, mesh bed leveling etc.
|
||||||
|
|
||||||
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
||||||
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
||||||
|
@ -424,7 +424,7 @@
|
|||||||
#define BED_ADJUSTMENT_UM_MAX 100
|
#define BED_ADJUSTMENT_UM_MAX 100
|
||||||
|
|
||||||
#define MESH_HOME_Z_CALIB 0.2
|
#define MESH_HOME_Z_CALIB 0.2
|
||||||
#define MESH_HOME_Z_SEARCH 5 //Z lift for homing, mesh bed leveling etc.
|
#define MESH_HOME_Z_SEARCH 5.0f // Z lift for homing, mesh bed leveling etc.
|
||||||
|
|
||||||
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
#define X_PROBE_OFFSET_FROM_EXTRUDER 23 // Z probe to nozzle X offset: -left +right
|
||||||
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
#define Y_PROBE_OFFSET_FROM_EXTRUDER 5 // Z probe to nozzle Y offset: -front +behind
|
||||||
|
Loading…
Reference in New Issue
Block a user