10 years, 9 months ago.

Problem with the Pitch

Hello, First of all, thanks for making this code available, it's very useful and it is working pretty well. The Yaw and Roll measurements are working perfectly, however I am having some trouble with the Pitch measurement. I only get values roughly between +10 and -89 degrees. Anything below -89 appears as "nan" on the print, and when moving towards the positive axis, the measurements only go till +10 degrees and then start coming down again, even if I keep moving it in the same direction. Is this a common error? Do you have any idea what I might be doing wrong? Again, the Roll and Yaw are working fine, and I'm getting all the data from the gyro and the accelerometer in the exact same way for the three axis, and the acceleration and angular speed seem to be right, so I don't know what might be wrong.

Thanks!

Question relating to:

Be the first to answer this question.