Open mszczuj opened 10 years ago
I had a similar issue, and "solved" it by using version 1.4.4 of LSM303 library : https://github.com/pololu/lsm303-arduino/releases/tag/1.4.4
(Open IMU was not updated after release 2.0 of LSM303 library, and it seems to introduce some breaking changes)
Initial quaternion calculation has been fixed in the latest version.
Thank for sharing the sketch -- it's very usefull;
I'm randomly getting a NaN values on pitch,roll,yaw vector when computing initial values. Repeting the procedure till all the values are not NaN solves the problem somehow, but if its a bug? feature? how to solve it properly?