Cardan Angle Calculation

More
16 Nov 2021 16:57 #226663 by petrasvestartas
Cardan Angle Calculation was created by petrasvestartas
Hi,

I am searching for a method how to calculate 5-axis CNC machine 4th and 5th axis rotations when a direction vector (xyz) is given.

I have following two axis, so called cardan angles, where the 5th axis is rotated by 50 degrees.
Is there any code I could look at how to compute the two rotations?

For orthogonal axes I use this formula, but this does not work for such a rotated case:
    double a = Math.Atan2(n0.X, n0.Y);
    double b = Math.Atan2(Math.Sqrt(n0.X * n0.X + n0.Y * n0.Y), n0.Z);

 
Attachments:

Please Log in or Create an account to join the conversation.

More
18 Nov 2021 18:50 #226909 by andypugh
Replied by andypugh on topic Cardan Angle Calculation
Is this for your own kinematics, or do you not plan to use kinematics?

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum