浏览代码

Allow slop in position_is_reachable for delta (#16003)

Jason Smith 5 年前
父节点
当前提交
d0282e5ba8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/module/motion.h

+ 1
- 1
Marlin/src/module/motion.h 查看文件

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

正在加载...
取消
保存