Scott Lahteine 4 years ago
parent
commit
1595fdb54b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/module/scara.cpp

+ 1
- 1
Marlin/src/module/scara.cpp View File

204
                 y = r  * sin(RADIANS(a)),
204
                 y = r  * sin(RADIANS(a)),
205
                 rho2 = L1_2 + L2_2 - 2.0f * L1 * L2 * cos(RADIANS(w));
205
                 rho2 = L1_2 + L2_2 - 2.0f * L1 * L2 * cos(RADIANS(w));
206
 
206
 
207
-    cartes = robot_offset + xyz_pos_t({ x, y, SQRT(rho2 - x * x - y * y) });
207
+    cartes = robot_offset + xyz_pos_t({ x, y, SQRT(rho2 - sq(x) - sq(y)) });
208
   }
208
   }
209
 
209
 
210
   // Home YZ together, then X (or all at once). Based on quick_home_xy & home_delta
210
   // Home YZ together, then X (or all at once). Based on quick_home_xy & home_delta

Loading…
Cancel
Save