3 releases

Uses new Rust 2024

new 0.1.2 May 15, 2025
0.1.1 May 8, 2025
0.1.0 May 8, 2025

#80 in No standard library

Download history 257/week @ 2025-05-07

257 downloads per month

MIT license

110KB
1.5K SLoC

Rust 1K SLoC // 0.4% comments Python 160 SLoC // 0.2% comments

AHRS: Attitude heading and reference system

For rust embedded systems. For example, UAS, robotics etc.


lib.rs:

This module contains code for determing attitude and heading, as well a sensor fusion with locaiton.

To determine attitude, it fuses acceleeration, gyro, and mag data, 3D each.

Conventions We define +X to be right, +Y to be forward and +Z to be u. We use the right hand rule for rotations along these axes.

Magnetic inclination chart: https://upload.wikimedia.org/wikipedia/commons/d/de/World_Magnetic_Inclination_2015.pdf https://www.magnetic-declination.com/

Dependencies

~6MB
~116K SLoC