Pitch angle should be -180 to +180 Degrees instead of -90 to +90 Degrees

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pitch angle should be -180 to +180 Degrees instead of -90 to +90 Degrees

3,206 Views
venkidravid
Contributor II

Hi,

 I am using NXP sensor fusion library. In My application Orientation to be shown in  Yaw, Pitch, Roll in Euler angles in front end display unit.

The NXP fusion source code outputs Yaw in 0 to 360 Degrees, Pitch in -90 to +90 Degrees, Roll in -180 to +180 Degrees.

But as per my application, the Pitch angle should be -180 to +180 Degrees instead of -90 to +90 Degrees.

That means when i rotate the pitch axis from 0 to 360 degrees my display should show  

                        0 ---> 45 ---> 90 (89+) ---> 135 ---> +180/-180 -->  - 135 ---> -90 (89) --->   -45 ---> 0.

instead of        0 ---> 45 ---> 90(89+) ---->  45 --->       0          --->   -45  --->  -90(89)  --->  -45  ---> 0.

Is it possible with any additional mathematics / logic that can be applied while calculating pitch from rotation matrix..?

Please suggest me..

Thank you in advance...

Labels (2)
0 Kudos
1 Reply

3,170 Views
venkidravid
Contributor II

Hi,

I think my question itself is wrong.. Since representing pitch beyond +-90 (that means +-180) will give two Euler angle solutions for every Orientation in 3D frame... So in NED frame of reference Pitch is limited to +-90 only.

This is clearly explained in application note AN5017 in section 1.8.  Thanks to NXP without which things might have been difficult for me.

Thanks a lot, NXP.

0 Kudos