✨ AVOID_OBSTACLES for UBL (#25256)
This commit is contained in:
@@ -2053,6 +2053,25 @@
|
||||
|
||||
//#define UBL_MESH_WIZARD // Run several commands in a row to get a complete mesh
|
||||
|
||||
/**
|
||||
* Probing not allowed within the position of an obstacle.
|
||||
*/
|
||||
//#define AVOID_OBSTACLES
|
||||
#if ENABLED(AVOID_OBSTACLES)
|
||||
#define CLIP_W 23 // Bed clip width, should be padded a few mm over its physical size
|
||||
#define CLIP_H 14 // Bed clip height, should be padded a few mm over its physical size
|
||||
|
||||
// Obstacle Rectangles defined as { X1, Y1, X2, Y2 }
|
||||
#define OBSTACLE1 { (X_BED_SIZE) / 4 - (CLIP_W) / 2, 0, (X_BED_SIZE) / 4 + (CLIP_W) / 2, CLIP_H }
|
||||
#define OBSTACLE2 { (X_BED_SIZE) * 3 / 4 - (CLIP_W) / 2, 0, (X_BED_SIZE) * 3 / 4 + (CLIP_W) / 2, CLIP_H }
|
||||
#define OBSTACLE3 { (X_BED_SIZE) / 4 - (CLIP_W) / 2, (Y_BED_SIZE) - (CLIP_H), (X_BED_SIZE) / 4 + (CLIP_W) / 2, Y_BED_SIZE }
|
||||
#define OBSTACLE4 { (X_BED_SIZE) * 3 / 4 - (CLIP_W) / 2, (Y_BED_SIZE) - (CLIP_H), (X_BED_SIZE) * 3 / 4 + (CLIP_W) / 2, Y_BED_SIZE }
|
||||
|
||||
// The probed grid must be inset for G29 J. This is okay, since it is
|
||||
// only used to compute a linear transformation for the mesh itself.
|
||||
#define G29J_MESH_TILT_MARGIN ((CLIP_H) + 1)
|
||||
#endif
|
||||
|
||||
#elif ENABLED(MESH_BED_LEVELING)
|
||||
|
||||
//===========================================================================
|
||||
|
Reference in New Issue
Block a user