|
@@ -1367,6 +1367,9 @@
|
1367
|
1367
|
#define XY_PROBE_SPEED 4000
|
1368
|
1368
|
#endif
|
1369
|
1369
|
#endif
|
|
1370
|
+ #ifndef NOZZLE_TO_PROBE_OFFSET
|
|
1371
|
+ #define NOZZLE_TO_PROBE_OFFSET { 0, 0, 0 }
|
|
1372
|
+ #endif
|
1370
|
1373
|
#else
|
1371
|
1374
|
#undef NOZZLE_TO_PROBE_OFFSET
|
1372
|
1375
|
#endif
|
|
@@ -1477,18 +1480,14 @@
|
1477
|
1480
|
#define MIN_PROBE_EDGE_BACK MIN_PROBE_EDGE
|
1478
|
1481
|
#endif
|
1479
|
1482
|
|
1480
|
|
-#ifndef NOZZLE_TO_PROBE_OFFSET
|
1481
|
|
- #define NOZZLE_TO_PROBE_OFFSET { 0, 0, 0 }
|
1482
|
|
-#endif
|
1483
|
|
-
|
1484
|
1483
|
#if ENABLED(DELTA)
|
1485
|
1484
|
/**
|
1486
|
1485
|
* Delta radius/rod trimmers/angle trimmers
|
1487
|
1486
|
*/
|
1488
|
1487
|
#define _PROBE_RADIUS (DELTA_PRINTABLE_RADIUS - (MIN_PROBE_EDGE))
|
1489
|
1488
|
#ifndef DELTA_CALIBRATION_RADIUS
|
1490
|
|
- #ifdef NOZZLE_TO_PROBE_OFFSET
|
1491
|
|
- #define DELTA_CALIBRATION_RADIUS (DELTA_PRINTABLE_RADIUS - _MAX(ABS(nozzle_to_probe_offset.x), ABS(nozzle_to_probe_offset.y), ABS(MIN_PROBE_EDGE)))
|
|
1489
|
+ #if HAS_BED_PROBE
|
|
1490
|
+ #define DELTA_CALIBRATION_RADIUS (DELTA_PRINTABLE_RADIUS - _MAX(ABS(probe_offset.x), ABS(probe_offset.y), ABS(MIN_PROBE_EDGE)))
|
1492
|
1491
|
#else
|
1493
|
1492
|
#define DELTA_CALIBRATION_RADIUS _PROBE_RADIUS
|
1494
|
1493
|
#endif
|
|
@@ -1543,16 +1542,16 @@
|
1543
|
1542
|
#define _MESH_MAX_Y (Y_MAX_BED - (MESH_INSET))
|
1544
|
1543
|
#else
|
1545
|
1544
|
// Boundaries for Cartesian probing based on set limits
|
1546
|
|
- #if EITHER(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL)
|
|
1545
|
+ #if ANY(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL, PROBE_MANUALLY)
|
1547
|
1546
|
#define _MESH_MIN_X (_MAX(X_MIN_BED + MESH_INSET, X_MIN_POS)) // UBL is careful not to probe off the bed. It does not
|
1548
|
1547
|
#define _MESH_MIN_Y (_MAX(Y_MIN_BED + MESH_INSET, Y_MIN_POS)) // need NOZZLE_TO_PROBE_OFFSET in the mesh dimensions
|
1549
|
1548
|
#define _MESH_MAX_X (_MIN(X_MAX_BED - (MESH_INSET), X_MAX_POS))
|
1550
|
1549
|
#define _MESH_MAX_Y (_MIN(Y_MAX_BED - (MESH_INSET), Y_MAX_POS))
|
1551
|
1550
|
#else
|
1552
|
|
- #define _MESH_MIN_X (_MAX(X_MIN_BED + MESH_INSET, X_MIN_POS + nozzle_to_probe_offset.x))
|
1553
|
|
- #define _MESH_MIN_Y (_MAX(Y_MIN_BED + MESH_INSET, Y_MIN_POS + nozzle_to_probe_offset.y))
|
1554
|
|
- #define _MESH_MAX_X (_MIN(X_MAX_BED - (MESH_INSET), X_MAX_POS + nozzle_to_probe_offset.x))
|
1555
|
|
- #define _MESH_MAX_Y (_MIN(Y_MAX_BED - (MESH_INSET), Y_MAX_POS + nozzle_to_probe_offset.y))
|
|
1551
|
+ #define _MESH_MIN_X (_MAX(X_MIN_BED + MESH_INSET, X_MIN_POS + probe_offset.x))
|
|
1552
|
+ #define _MESH_MIN_Y (_MAX(Y_MIN_BED + MESH_INSET, Y_MIN_POS + probe_offset.y))
|
|
1553
|
+ #define _MESH_MAX_X (_MIN(X_MAX_BED - (MESH_INSET), X_MAX_POS + probe_offset.x))
|
|
1554
|
+ #define _MESH_MAX_Y (_MIN(Y_MAX_BED - (MESH_INSET), Y_MAX_POS + probe_offset.y))
|
1556
|
1555
|
#endif
|
1557
|
1556
|
#endif
|
1558
|
1557
|
|