Browse Source

Allow slop in position_is_reachable for delta (#16003)

pull/1/head
Jason Smith 5 years ago
committed by Scott Lahteine
parent
commit
d0282e5ba8
  1. 2
      Marlin/src/module/motion.h

2
Marlin/src/module/motion.h

@ -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 (

Loading…
Cancel
Save