|
|
|
@ -86,13 +86,23 @@ void recalc_delta_settings() {
|
|
|
|
|
* Get a safe radius for calibration
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#if ENABLED(DELTA_AUTO_CALIBRATION)
|
|
|
|
|
#if EITHER(DELTA_AUTO_CALIBRATION, DELTA_CALIBRATION_MENU)
|
|
|
|
|
|
|
|
|
|
#if ENABLED(DELTA_AUTO_CALIBRATION)
|
|
|
|
|
float calibration_radius_factor = 1;
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
float delta_calibration_radius() {
|
|
|
|
|
return FLOOR((DELTA_PRINTABLE_RADIUS - _MAX(HYPOT(probe_offset_xy.x, probe_offset_xy.y), MIN_PROBE_EDGE)) * calibration_radius_factor);
|
|
|
|
|
}
|
|
|
|
|
float delta_calibration_radius() {
|
|
|
|
|
return calibration_radius_factor * (
|
|
|
|
|
#if HAS_BED_PROBE
|
|
|
|
|
FLOOR((DELTA_PRINTABLE_RADIUS) - _MAX(HYPOT(probe_offset_xy.x, probe_offset_xy.y), MIN_PROBE_EDGE))
|
|
|
|
|
#else
|
|
|
|
|
DELTA_PRINTABLE_RADIUS
|
|
|
|
|
#endif
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delta Inverse Kinematics
|
|
|
|
|