Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 3 months ago.
Pitch and Roll never exceed 90 degree
hello sir. I have just tested your example code (freeIMU_Demo) and played with my gy-86 when i suddenly realized that the value of pitch and roll never exceed 90 degree. When i tilted my gy, the pitch would rise to 90 and if i continue to tilt it, the value would start decreasing. Can you help me with that? Thank you
Question relating to:
1 Answer
10 years, 3 months ago.
Hi thanks for your question. There was minimal modification made to the FreeIMU ARHS algorithm after it was ported to mbed, so the cause of the problem probably lies somewhere else. You can try updating the FreeIMU library in the demo program, since it does not automatically fetch the newest version. Calibrating the magnetometer may also fix the issue. I will take a deeper look at the problem as soon as possible.
Hi sir. Thanks for your respond I have just tried to update the library but the problem still there. I have also tried DMP but the problem still persist. The only algorithm that work is DCM. so i guess the problem lies in conversion from quaternion to YPR. I don't really understand quaternion yet so that is just my guess. Thank you sir.
posted by 24 Aug 2014