Tags:
Permalink Reply by Navigator on January 24, 2012 at 3:07pm Hi Greg,
I am working on DCM code for getting orientation of smartphone, if you still remember, You have mentioned in your comments that to use DCM elements directly rather than conversion to Euler Angles using the atan function, Cn you plz explain a little bit that how I can get these angles(roll pitch yaw) from DCM.
regards
navigator
Hi navigator,
I don't think the way I did it actually worked, so I used the Euler angle conversion.
Greg
Permalink Reply by Navigator on January 24, 2012 at 5:00pm Hi Greg,
then how you managed to get rid of gimbal locks, because in my case the orientation works as long as pitch angle is less than 90, over 90 it distorts the roll value,
regard s
navigator
Navigator,
Here is a work around to gimbal lock.
Another approach to solving gimbal lock is simply redefining the meaning of the angles for 90 degree pitch. For example, for 90 degree pitch, you could define new angles (not Euler angles) that relate the orientation to a defined orientation that has a 90 degree pitch. There are probably some discussions on the web about solving gimbal lock, and still use angle.
The third approach is to not use Euler angles, but use axis and angle, or quaternions, to describe the orientation. Quaternions for example do not suffer gimbal lock.
Here is a method to convert a rotation matrix to a quaternion.
A very good book on the subject is 3D Math Primer for Graphics and Game Development.
Best regards,
Bill Premerlani
Permalink Reply by Darryl Uchitil on September 14, 2009 at 10:17am
Permalink Reply by Sean McDonald on September 15, 2009 at 7:42am
Permalink Reply by Darryl Uchitil on September 15, 2009 at 2:20pm
Permalink Reply by Sean McDonald on September 15, 2009 at 4:39pm
Permalink Reply by Darryl Uchitil on September 16, 2009 at 4:02pm
Permalink Reply by Sean McDonald on May 10, 2009 at 8:21am
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.106 members
1279 members
671 members
183 members
182 members
© 2013 Created by Chris Anderson.
Powered by
