diff --git a/Cargo.toml b/Cargo.toml index 6d2d91e..b3357c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ license = "MIT" [dependencies] embedded-hal = "0.2.2" -libm = "0.1.2" +libm = "0.1.3" [dependencies.nalgebra] default-features = false diff --git a/Makefile b/Makefile index 8531891..880b951 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,10 @@ build: cargo build ext: - cd $(home)/example && cargo build --$(mode) --target $(target) + cd $(home)/example && cargo build --$(mode) --target=$(target) viz: - cd $(home)/viz/viz && cargo build --$(mode) --target $(target) + cd $(home)/viz/viz && cargo build --$(mode) --target=$(target) deploy: ext scp $(home)/example/target/$(target)/$(mode)/example pi@192.168.1.136: diff --git a/README.md b/README.md index af2f02b..98e760b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,8 @@ -# MPU 6050 Rust Driver - -Platform agnostic driver for [MPU 6050 6-axis IMU](https://www.invensense.com/products/motion-tracking/6-axis/mpu-6500/) using [`embedded_hal`](https://github.com/rust-embedded/embedded-hal). +# `mpu6050` ![crates.io](https://img.shields.io/crates/v/mpu6050.svg) +> no_std driver for the MPU6050 6-axis IMU [Datasheet](https://www.invensense.com/wp-content/uploads/2015/02/MPU-6500-Datasheet2.pdf) | [Register Map Sheet](https://www.invensense.com/wp-content/uploads/2015/02/MPU-6000-Register-Map1.pdf) -[Docs](https://docs.rs/mpu6050/0.1.2/mpu6050/) | [Crate](https://crates.io/crates/mpu6050) - Visualization options for testing and development in [viz branch](https://github.com/juliangaal/mpu6050/tree/viz/viz) ### Basic usage @@ -88,8 +85,10 @@ $ cargo build --target=armv7-unknown-linux-gnueabihf ## TODO - [x] init with default settings - [ ] init with custom settings + - [x] custom sensitivity + - [ ] custom device initialization - [x] device verification -- [ ] basic feature support as described [here](https://github.com/Tijndagamer/mpu6050/blob/master/mpu6050/mpu6050.py) +- [x] basic feature support as described [here](https://github.com/Tijndagamer/mpu6050/blob/master/mpu6050/mpu6050.py) - [x] read gyro data - [x] read acc data - [x] software calibration