Browse Source

Allow slop in position_is_reachable for delta (#16003)

Jason Smith 5 years ago
parent
commit
d0282e5ba8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/module/motion.h

+ 1
- 1
Marlin/src/module/motion.h View File

298
   // Return true if the given point is within the printable area
298
   // Return true if the given point is within the printable area
299
   inline bool position_is_reachable(const float &rx, const float &ry, const float inset=0) {
299
   inline bool position_is_reachable(const float &rx, const float &ry, const float inset=0) {
300
     #if ENABLED(DELTA)
300
     #if ENABLED(DELTA)
301
-      return HYPOT2(rx, ry) <= sq(DELTA_PRINTABLE_RADIUS - inset);
301
+      return HYPOT2(rx, ry) <= sq(DELTA_PRINTABLE_RADIUS - inset + slop);
302
     #elif IS_SCARA
302
     #elif IS_SCARA
303
       const float R2 = HYPOT2(rx - SCARA_OFFSET_X, ry - SCARA_OFFSET_Y);
303
       const float R2 = HYPOT2(rx - SCARA_OFFSET_X, ry - SCARA_OFFSET_Y);
304
       return (
304
       return (

Loading…
Cancel
Save