Quellcode durchsuchen

Allow slop in position_is_reachable for delta (#16003)

Jason Smith vor 5 Jahren
Ursprung
Commit
d0282e5ba8
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      Marlin/src/module/motion.h

+ 1
- 1
Marlin/src/module/motion.h Datei anzeigen

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

Laden…
Abbrechen
Speichern