Fix Morgan SCARA S2 calculation

2.0.x
Scott Lahteine 8 years ago
parent 46752588b9
commit 6411d65c48

@ -12003,7 +12003,7 @@ void prepare_move_to_destination() {
else else
C2 = (HYPOT2(sx, sy) - (L1_2 + L2_2)) / (2.0 * L1 * L2); C2 = (HYPOT2(sx, sy) - (L1_2 + L2_2)) / (2.0 * L1 * L2);
S2 = sqrt(sq(C2) - 1); S2 = sqrt(1 - sq(C2));
// Unrotated Arm1 plus rotated Arm2 gives the distance from Center to End // Unrotated Arm1 plus rotated Arm2 gives the distance from Center to End
SK1 = L1 + L2 * C2; SK1 = L1 + L2 * C2;

Loading…
Cancel
Save