9DOF_Razor_IMU icon indicating copy to clipboard operation
9DOF_Razor_IMU copied to clipboard

Fixes eular angle calculation from quaternions

Open blaksmith205 opened this issue 6 years ago • 0 comments

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

blaksmith205 avatar Mar 09 '20 18:03 blaksmith205