Crates.io | fusion-imu |
lib.rs | fusion-imu |
version | 0.1.2 |
source | src |
created_at | 2024-07-06 21:39:36.411953 |
updated_at | 2024-07-08 19:48:19.199443 |
description | Rust wrapper for the Fusion AHRS C library |
homepage | |
repository | https://github.com/avsaase/fusion-imu |
max_upload_size | |
id | 1294373 |
size | 1,461,987 |
This library provides idiomatic Rust bindings to the Fusion AHRS C library. See https://github.com/xioTechnologies/Fusion for algorithm details.
Bindings are generated from the C headers at build time using a build.rs
script. This script also compiles the C library for the correct target. Both require a C compiler to be installed.
When cross-compiling for other targets you may get an error like:
fatal error: 'math.h' file not found
To solve this, set the FUSION_IMU_INCLUDE_PATH
environment variable to the folder that contains the math.h
header for the target you're compiling for.
serde
- Enables serde support for the input and output types of this crate.defmt
- Derives defmt::Format
on the input and output types of this crate.This crate is licenced under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT). The C library is licensed under the same license.