|
@@ -86,13 +86,23 @@ void recalc_delta_settings() {
|
86
|
86
|
* Get a safe radius for calibration
|
87
|
87
|
*/
|
88
|
88
|
|
89
|
|
-#if ENABLED(DELTA_AUTO_CALIBRATION)
|
90
|
|
- float calibration_radius_factor = 1;
|
91
|
|
-#endif
|
|
89
|
+#if EITHER(DELTA_AUTO_CALIBRATION, DELTA_CALIBRATION_MENU)
|
92
|
90
|
|
93
|
|
-float delta_calibration_radius() {
|
94
|
|
- return FLOOR((DELTA_PRINTABLE_RADIUS - _MAX(HYPOT(probe_offset_xy.x, probe_offset_xy.y), MIN_PROBE_EDGE)) * calibration_radius_factor);
|
95
|
|
-}
|
|
91
|
+ #if ENABLED(DELTA_AUTO_CALIBRATION)
|
|
92
|
+ float calibration_radius_factor = 1;
|
|
93
|
+ #endif
|
|
94
|
+
|
|
95
|
+ float delta_calibration_radius() {
|
|
96
|
+ return calibration_radius_factor * (
|
|
97
|
+ #if HAS_BED_PROBE
|
|
98
|
+ FLOOR((DELTA_PRINTABLE_RADIUS) - _MAX(HYPOT(probe_offset_xy.x, probe_offset_xy.y), MIN_PROBE_EDGE))
|
|
99
|
+ #else
|
|
100
|
+ DELTA_PRINTABLE_RADIUS
|
|
101
|
+ #endif
|
|
102
|
+ );
|
|
103
|
+ }
|
|
104
|
+
|
|
105
|
+#endif
|
96
|
106
|
|
97
|
107
|
/**
|
98
|
108
|
* Delta Inverse Kinematics
|