Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1.  
  2. function [t1, t2, d3, t4] = Scara_Geoinv(x, y, z, psi)
  3. t2 = [acosd((x^2+y^2 - 2)/2), -acosd((x^2+y^2 - 2)/2)];
  4. t1 = [atan2d(y,x) - atan2d(sind(t2(1)), 1 + cosd(t2(1))), atan2d(y,x) - atan2d(sind(t2(2)), 1 + cosd(t2(2)))];
  5. d3 = 0.9 - z;
  6. t4 = [psi + t2(1) + t1(1), psi + t2(2) + t1(2)];
  7. t1 = t1(1);
  8. t2 = t2(1);
  9. t4 = t4(1);
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement