Skip to content

DamarXCV/AHRS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AHRS

This Library implements the following AHRS algorithms:

  • Madgwick
  • Mahony

The algorithms are modified implementations from Madgwicks Ph.D, which can be found here: https://x-io.co.uk/open-source-imu-and-ahrs-algorithms/

Usage

#include "Mahony.h"

int main()
{
    AHRS::Mahony filter(1.0f, 0.0f, 0.0f, 0.0f, twoKpDef, twoKiDef);
    // AHRS::Madgwick filter(1.0f, 0.0f, 0.0f, 0.0f, betaDef);

    filter.update(gx, gy, gz, ax, ay, az, mx, my, mz);

    float roll = filter.getRoll();
    float pitch = filter.getPitch();
    float yaw = filter.getYaw();

    return 1;
}

About

Implements the AHRS algorithms Mahony and Madgwick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages