Additional cleanup of UBL code
This commit is contained in:
@ -747,41 +747,48 @@
|
||||
// @section bedlevel
|
||||
|
||||
/**
|
||||
* Select one form of Auto Bed Leveling below.
|
||||
* Choose one of the options below to enable G29 Bed Leveling. The parameters
|
||||
* and behavior of G29 will change depending on your selection.
|
||||
*
|
||||
* If you're also using the Probe for Z Homing, it's
|
||||
* highly recommended to enable Z_SAFE_HOMING also!
|
||||
* If using a Probe for Z Homing, enable Z_SAFE_HOMING also!
|
||||
*
|
||||
* - 3POINT
|
||||
* - AUTO_BED_LEVELING_3POINT
|
||||
* Probe 3 arbitrary points on the bed (that aren't collinear)
|
||||
* You specify the XY coordinates of all 3 points.
|
||||
* The result is a single tilted plane. Best for a flat bed.
|
||||
*
|
||||
* - LINEAR
|
||||
* - AUTO_BED_LEVELING_LINEAR
|
||||
* Probe several points in a grid.
|
||||
* You specify the rectangle and the density of sample points.
|
||||
* The result is a single tilted plane. Best for a flat bed.
|
||||
*
|
||||
* - BILINEAR
|
||||
* - AUTO_BED_LEVELING_BILINEAR
|
||||
* Probe several points in a grid.
|
||||
* You specify the rectangle and the density of sample points.
|
||||
* The result is a mesh, best for large or uneven beds.
|
||||
*
|
||||
* - UBL Unified Bed Leveling
|
||||
* A comprehensive bed leveling system that combines features and benefits from previous
|
||||
* bed leveling system. The UBL Bed Leveling System also includes an integrated and easy to use
|
||||
* Mesh Generation, Mesh Validation and Mesh Editing system.
|
||||
* - Currently, the UBL Bed Leveling System is only checked out for Cartesian Printers. But with
|
||||
* that said, it was primarily designed to handle poor quality Delta Printers. If you feel
|
||||
* adventurous and have a Delta, please post an issue if something doesn't work correctly.
|
||||
* Initially, you will need to reduce your declared bed size so you have a rectangular area to
|
||||
* test on.
|
||||
* - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
|
||||
* A comprehensive bed leveling system combining the features and benefits
|
||||
* of other systems. UBL also includes integrated Mesh Generation, Mesh
|
||||
* Validation and Mesh Editing systems. Currently, UBL is only checked out
|
||||
* for Cartesian Printers. That said, it was primarily designed to correct
|
||||
* poor quality Delta Printers. If you feel adventurous and have a Delta,
|
||||
* please post an issue if something doesn't work correctly. Initially,
|
||||
* you will need to set a reduced bed size so you have a rectangular area
|
||||
* to test on.
|
||||
*
|
||||
* - MESH_BED_LEVELING
|
||||
* Probe a grid manually
|
||||
* The result is a mesh, suitable for large or uneven beds. (See BILINEAR.)
|
||||
* For machines without a probe, Mesh Bed Leveling provides a method to perform
|
||||
* leveling in steps so you can manually adjust the Z height at each grid-point.
|
||||
* With an LCD controller the process is guided step-by-step.
|
||||
*/
|
||||
//#define AUTO_BED_LEVELING_3POINT
|
||||
//#define AUTO_BED_LEVELING_LINEAR
|
||||
//#define AUTO_BED_LEVELING_BILINEAR
|
||||
//#define MESH_BED_LEVELING
|
||||
//#define AUTO_BED_LEVELING_UBL
|
||||
//#define MESH_BED_LEVELING
|
||||
|
||||
/**
|
||||
* Enable detailed logging of G28, G29, M48, etc.
|
||||
@ -840,25 +847,6 @@
|
||||
#define ABL_PROBE_PT_3_X 170
|
||||
#define ABL_PROBE_PT_3_Y 20
|
||||
|
||||
#elif ENABLED(MESH_BED_LEVELING)
|
||||
|
||||
//===========================================================================
|
||||
//=================================== Mesh ==================================
|
||||
//===========================================================================
|
||||
|
||||
#define MANUAL_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
|
||||
#define MESH_INSET 10 // Mesh inset margin on print area
|
||||
#define MESH_NUM_X_POINTS 3 // Don't use more than 7 points per axis, implementation limited.
|
||||
#define MESH_NUM_Y_POINTS 3
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest Z at Z_MIN_POS
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
#define MBL_Z_STEP 0.025 // Step size while manually probing Z axis.
|
||||
#endif
|
||||
|
||||
#elif ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
|
||||
//===========================================================================
|
||||
@ -875,7 +863,26 @@
|
||||
#define UBL_PROBE_PT_3_X 180
|
||||
#define UBL_PROBE_PT_3_Y 20
|
||||
|
||||
#endif // BED_LEVELING
|
||||
#elif ENABLED(MESH_BED_LEVELING)
|
||||
|
||||
//===========================================================================
|
||||
//=================================== Mesh ==================================
|
||||
//===========================================================================
|
||||
|
||||
#define MESH_INSET 10 // Mesh inset margin on print area
|
||||
#define MESH_NUM_X_POINTS 3 // Don't use more than 7 points per axis, implementation limited.
|
||||
#define MESH_NUM_Y_POINTS 3
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest Z at Z_MIN_POS
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
#define MANUAL_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
#define MBL_Z_STEP 0.025 // Step size while manually probing Z axis.
|
||||
#endif
|
||||
|
||||
#endif // BED_LEVELING
|
||||
|
||||
/**
|
||||
* Commands to execute at the end of G29 probing.
|
||||
|
Reference in New Issue
Block a user