juliangaal / mpu6050

MPU6050 embedded-hal driver written in Rust
https://crates.io/crates/mpu6050
MIT License
50 stars 31 forks source link

Feature request: offsets for raw readings #46

Open HeikoRibberink opened 2 years ago

HeikoRibberink commented 2 years ago

Since every Mpu6050 sensor is different, it is necessary to add offsets to the raw readings to calibrate the sensor.

It would be very handy if this crate has a feature for specifying these offsets, and maybe even an example to calculate these offsets, as seen in the IMU_Zero example in the arduino library by ElectronicCats.

If you need help translating the arduino code or creating the feature, let me know!

HeikoRibberink commented 2 years ago

Currently working on a fork for this. I will create a pull request as soon as I have tested my example.

juliangaal commented 2 years ago

Thanks a lot. PR's are more than welcome.

HeikoRibberink commented 2 years ago

PR here