123456789101112131415161718192021222324252627 |
- //=============================================================================================
- // MahonyAHRS.h
- //=============================================================================================
- //
- // Madgwick's implementation of Mayhony's AHRS algorithm.
- // See: http://www.x-io.co.uk/open-source-imu-and-ahrs-algorithms/
- //
- // Date Author Notes
- // 29/09/2011 SOH Madgwick Initial release
- // 02/10/2011 SOH Madgwick Optimised for reduced CPU load
- //
- //=============================================================================================
- #ifndef MahonyAHRS_h
- #define MahonyAHRS_h
- void Mahony_update(float gx, float gy, float gz, float ax, float ay, float az, float mx, float my, float mz);
- void updateIMU(float gx, float gy, float gz, float ax, float ay, float az);
- void Mahony_Init(float sampleFrequency);
- void Mahony_computeAngles(void);
- float getRoll(void);
- float getPitch(void);
- float getYaw(void);
- float getRollRadians(void);
- float getPitchRadians(void);
- float getYawRadians(void);
- void accel_BConvertToN(float accel_s[3], float accel_d[3], float q[4]);
- #endif
|