Keeping a Good Attitude: A Quaternion-Based Orientation Filter for IMUs and MARGs
Quaternion-based extended Kalman filter for determining orientation by inertial and magnetic sensing