Pitch Problems BNO080

Have questions about a SparkFun product or board? This is the place to be.

Moderators: phalanx, TS-Tim

Post Reply
mlportersr
Posts: 1
Joined: Fri May 25, 2018 10:32 pm

Pitch Problems BNO080

Post by mlportersr » Fri May 25, 2018 10:43 pm

OK, I have one of your BNO080 boards and it is working great except that when I convert the quaternions to Euler angles, the Y axis always shows a pitch between 90 and -90 degrees. For Yaw and Roll (Z and X) I see a full 180 to -180 degrees, why is the Y axis limited? Is this intended?

Michael...

jremington
Support Volunteer
Posts: 2250
Joined: Fri Jun 15, 2007 9:41 pm
Location: Eugene, Or

Re: Pitch Problems BNO080

Post by jremington » Sat May 26, 2018 7:36 pm

That is not a problem, it is a solution to a different problem. If you allow pitch angles >= 90 or <= -90, you can't even calculate the other angles using simple equations.

Angular systems are degenerate, meaning that if you allow a full 360 degrees rotation around each axis, there is always more than one way to represent the same absolute orientation.

And it gets worse. Look up "gimbal lock". Then there is the fact that the order of rotations matters. There are something like six different definitions for "Euler angles".

Post Reply