9DOF_Razor_IMU
9DOF_Razor_IMU copied to clipboard
Fixes eular angle calculation from quaternions
Noticed there was some minor problems with how the angle was calculated. When the sensor was rotated about the Z-axis, the roll and pitch changed which didn't make any sense.
Code is updated to reflect the following calculation from: https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles