Port of Adafruit NXP sensor fusion algorithms based on Kalman filters for rust.
This library is no_std
, and e.g. on ARM you need to provide implementations
for sinf(..)
and the likes. The easiest way to do that is to just extern link
to e.g.: cmsis_dsp
(see this link for more explanation) and selecting one of the implementations to
provide the math functions.
To use micromath
:
sh
$ cargo add cmsis_dsp --features micromath
if you are not using the cmsis_dsp library, also add the following to your crate:
rust
extern crate cmsis_dsp;