Ver código fonte

"nozzle_to_probe_offset" is obsolete

Scott Lahteine 5 anos atrás
pai
commit
3f4636e916

+ 10
- 11
Marlin/src/inc/Conditionals_post.h Ver arquivo

@@ -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
 

+ 0
- 3
Marlin/src/module/configuration_store.cpp Ver arquivo

@@ -2344,9 +2344,6 @@ void MarlinSettings::reset() {
2344 2344
   #endif
2345 2345
 
2346 2346
   #if HAS_BED_PROBE
2347
-    #ifndef NOZZLE_TO_PROBE_OFFSET
2348
-      #define NOZZLE_TO_PROBE_OFFSET { 0, 0, 0 }
2349
-    #endif
2350 2347
     constexpr float dpo[XYZ] = NOZZLE_TO_PROBE_OFFSET;
2351 2348
     static_assert(COUNT(dpo) == 3, "NOZZLE_TO_PROBE_OFFSET must contain offsets for X, Y, and Z.");
2352 2349
     LOOP_XYZ(a) probe_offset[a] = dpo[a];

+ 0
- 2
Marlin/src/module/probe.h Ver arquivo

@@ -29,8 +29,6 @@
29 29
 
30 30
 #if HAS_BED_PROBE
31 31
 
32
-  constexpr xyz_pos_t nozzle_to_probe_offset = NOZZLE_TO_PROBE_OFFSET;
33
-
34 32
   extern xyz_pos_t probe_offset;
35 33
 
36 34
   bool set_probe_deployed(const bool deploy);

Carregando…
Cancelar
Salvar