mikeshub / Pololu_Open_IMU

25 stars 19 forks source link

nan values when computining initial quaternion #2

Open mszczuj opened 10 years ago

mszczuj commented 10 years ago

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?

tadam777 commented 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)

mikeshub commented 8 years ago

Initial quaternion calculation has been fixed in the latest version.