ahrs-rs
A Rust port of Sebastian Madgwick's AHRS algorithm.
Usage
Add ahrs-rs to your Cargo.toml
:
[]
= "0.3"
Here's a simple example that updates the filter state with arbitrary sensor data:
use ;
use ;
use f64;
Crate nalgebra is also needed as a dependency for its algebraic types Vector3
and Quaternion
.
Feature flags
field_access
Gives [im]mutable access to inner algorithm struct fields that aren't normally exposed. The exposed API is considered unstable for the time-being, but is nevertheless a useful feature. For example:
use Madgwick;
let mut ahrs = default;
License
GPLv3