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