Browse Source

"nozzle_to_probe_offset" is obsolete

Scott Lahteine 5 years ago
parent
commit
3f4636e916

+ 10
- 11
Marlin/src/inc/Conditionals_post.h View File

1367
       #define XY_PROBE_SPEED 4000
1367
       #define XY_PROBE_SPEED 4000
1368
     #endif
1368
     #endif
1369
   #endif
1369
   #endif
1370
+  #ifndef NOZZLE_TO_PROBE_OFFSET
1371
+    #define NOZZLE_TO_PROBE_OFFSET { 0, 0, 0 }
1372
+  #endif
1370
 #else
1373
 #else
1371
   #undef NOZZLE_TO_PROBE_OFFSET
1374
   #undef NOZZLE_TO_PROBE_OFFSET
1372
 #endif
1375
 #endif
1477
   #define MIN_PROBE_EDGE_BACK MIN_PROBE_EDGE
1480
   #define MIN_PROBE_EDGE_BACK MIN_PROBE_EDGE
1478
 #endif
1481
 #endif
1479
 
1482
 
1480
-#ifndef NOZZLE_TO_PROBE_OFFSET
1481
-  #define NOZZLE_TO_PROBE_OFFSET { 0, 0, 0 }
1482
-#endif
1483
-
1484
 #if ENABLED(DELTA)
1483
 #if ENABLED(DELTA)
1485
   /**
1484
   /**
1486
    * Delta radius/rod trimmers/angle trimmers
1485
    * Delta radius/rod trimmers/angle trimmers
1487
    */
1486
    */
1488
   #define _PROBE_RADIUS (DELTA_PRINTABLE_RADIUS - (MIN_PROBE_EDGE))
1487
   #define _PROBE_RADIUS (DELTA_PRINTABLE_RADIUS - (MIN_PROBE_EDGE))
1489
   #ifndef DELTA_CALIBRATION_RADIUS
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
     #else
1491
     #else
1493
       #define DELTA_CALIBRATION_RADIUS _PROBE_RADIUS
1492
       #define DELTA_CALIBRATION_RADIUS _PROBE_RADIUS
1494
     #endif
1493
     #endif
1543
     #define _MESH_MAX_Y (Y_MAX_BED - (MESH_INSET))
1542
     #define _MESH_MAX_Y (Y_MAX_BED - (MESH_INSET))
1544
   #else
1543
   #else
1545
     // Boundaries for Cartesian probing based on set limits
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
       #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
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
       #define _MESH_MIN_Y (_MAX(Y_MIN_BED + MESH_INSET, Y_MIN_POS))  // need NOZZLE_TO_PROBE_OFFSET in the mesh dimensions
1547
       #define _MESH_MIN_Y (_MAX(Y_MIN_BED + MESH_INSET, Y_MIN_POS))  // need NOZZLE_TO_PROBE_OFFSET in the mesh dimensions
1549
       #define _MESH_MAX_X (_MIN(X_MAX_BED - (MESH_INSET), X_MAX_POS))
1548
       #define _MESH_MAX_X (_MIN(X_MAX_BED - (MESH_INSET), X_MAX_POS))
1550
       #define _MESH_MAX_Y (_MIN(Y_MAX_BED - (MESH_INSET), Y_MAX_POS))
1549
       #define _MESH_MAX_Y (_MIN(Y_MAX_BED - (MESH_INSET), Y_MAX_POS))
1551
     #else
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
     #endif
1555
     #endif
1557
   #endif
1556
   #endif
1558
 
1557
 

+ 0
- 3
Marlin/src/module/configuration_store.cpp View File

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

+ 0
- 2
Marlin/src/module/probe.h View File

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

Loading…
Cancel
Save