Allow slop in position_is_reachable for delta (#16003)

This commit is contained in:
Jason Smith 2019-11-26 00:53:28 -08:00 committed by Scott Lahteine
parent 1d150e41b6
commit d0282e5ba8

View File

@ -298,7 +298,7 @@ void homeaxis(const AxisEnum axis);
// Return true if the given point is within the printable area
inline bool position_is_reachable(const float &rx, const float &ry, const float inset=0) {
#if ENABLED(DELTA)
return HYPOT2(rx, ry) <= sq(DELTA_PRINTABLE_RADIUS - inset);
return HYPOT2(rx, ry) <= sq(DELTA_PRINTABLE_RADIUS - inset + slop);
#elif IS_SCARA
const float R2 = HYPOT2(rx - SCARA_OFFSET_X, ry - SCARA_OFFSET_Y);
return (