sparkfun / SparkFun_MPU-9250-DMP_Arduino_Library

Arduino library for the MPU-9250 enabling its digital motion process (DMP) features.
Other
229 stars 151 forks source link

Quaternions are out of range -1 to 1 #15

Open Jaarson opened 6 years ago

Jaarson commented 6 years ago

Output quaternions q1, q2, q3 in MPU9250_DMP_Quaternion.ino are in range from -1 to 2. Should be from -1 to 1. Also I noticed pitch angle is not calculated properly - rotating device by 45 deg shows 90 deg pitch angle rotation.