Pārlūkot izejas kodu

Allow slop in position_is_reachable for delta (#16003)

Jason Smith 5 gadus atpakaļ
vecāks
revīzija
d0282e5ba8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/src/module/motion.h

+ 1
- 1
Marlin/src/module/motion.h Parādīt failu

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 (

Notiek ielāde…
Atcelt
Saglabāt