Awesome
Project Title
Attitude and Heading Reference System using MATLAB as simple as possible
Getting Started
Few implementations of Attitude and Heading Reference System using Matlab in mind to keep it as simple as possible to understand for beginners. Basis of Matlab scripts was token from x-IO examples. Additionaly scripts from Phil Kim books also was used. Thank You for the Authors !
You can help to fix this examples and add new one with new method or new feature !
What is here implemented:
- Madwick AHRS algorithm - Quaternions - x-IO
- Mahony AHRS algorithm - Quaternions - x-IO
- Gyroscope data integration - Euler angles - Phil Kim - modifed rotation sequence to compare results
- Accelerometer data integration - Euler angles - Phil Kim - modifed g to 1, rotation sequence and added Yaw/Heading/psi calculation. Yaw data calculations is not used because it's needed corections.
- Linear Kalman filter (KF) - Quaternions - Phil Kim - with modifications. Learn to use Q and R matrices.
- Extended Kalman filter (EKF) - Euler angles - Phil Kim - Learn to make Jacobian and how infuenced Q and R matrices.
- Unscented Kalman filter (UKF) - Euler angles - Phil Kim
- Extended Kalman filter - Quternions - PX4 autopilot
- Unscented Kalman filter - Quaternion - Jose Gama - RAHRS library for R
- TRIAD - Euler angles - Jose Gama - RAHRS library for R
Prerequisites
Matlab
Installing
Copy AHRS folder anywhere You want
Running the tests
Start with ExampleScript.m
Acknowledgments
- x-IO - Madwick and Mahony algorithms impementation, GNU GPL licensing.
- Rigid Body Dynamics For Beginners: Euler angles & Quaternions by Phil Kim
- Kalman Filter for Beginners: with MATLAB Examples by Phil Kim
- RAHRS: Data Fusion Filters for Attitude Heading Reference System (AHRS) with Several Variants of the Kalman Filter and the Mahoney and Madgwick Filters