Post · 1 min read· pp. 7–8

AHRS: Attitude and Heading Reference Systems

Welcome! ahrs is an open source Python toolbox for attitude estimation using the most known algorithms, methods and resources.

It is designed to be flexible and simple to use, making it a great option for fast prototyping, testing and integration with your own Python projects.

This package collects functions and utilities to help you understand and use the most common techniques for attitude estimation, and in no way it is recommended to be used commercially.

All algorithms and implementations have their proper documentation and references, in case you need further clarification of their usage.

New in version 0.4

  • New attitude estimation algorithms: FKF and UKF.
  • New submodules: sensors and geodesy.
  • More methods for Quaternion and Direction Cosine Matrix representations.
  • Improved documentation and examples.
  • All functions and objects are type hinted.

For a complete list of changes, please refer to the changelog.

Attitude Estimation

The available algorithms to compute attitude from inertial / magnetic sensors are:

AlgorithmGyroscopeAccelerometerMagnetometer
AQUAOptionalYESOptional
ComplementaryYESYESOptional
Davenport’sNOYESYES
EKFYESYESYES
FAMCNOYESYES
FLAENOYESYES
FKFYESYESYES
FouratiYESYESYES
FQANOYESOptional
IntegrationYESNONO
MadgwickYESYESOptional
MahonyYESYESOptional
OLEQNOYESYES
QUESTNOYESYES
ROLEQNOYESYES
SAAMNOYESYES
TiltNOYESOptional
TRIADNOYESYES
UKFYESYESOptional

Deprecations

Submodules io and plot are removed. Loading and visualizing the data is left to the preference of the user.

Indices