|
|
|
@ -86,13 +86,23 @@ void recalc_delta_settings() {
|
|
|
|
|
* Get a safe radius for calibration
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#if ENABLED(DELTA_AUTO_CALIBRATION)
|
|
|
|
|
float calibration_radius_factor = 1;
|
|
|
|
|
#endif
|
|
|
|
|
#if EITHER(DELTA_AUTO_CALIBRATION, DELTA_CALIBRATION_MENU)
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
#if ENABLED(DELTA_AUTO_CALIBRATION)
|
|
|
|
|
float calibration_radius_factor = 1;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|