[Math] Rotating Angular Velocity Vector By A Quaternion

rotations

I'm working on an AHRS system and I have 3 axis gyros and they are not in alignment with the frame of the vehicle. This means that integrating the raw output from the gyros produces an orientation that does not reflect the true orientation of the vehicle. Changing heading for example will result in movement around the pitch and roll axes.

The difference in orientation between gyros and frame of the vehicle is known and is in the form of a unit quaternion.

How can I rotate the angular velocity from the gyros so it is aligned with the vehicle?

Best Answer