.cargo | ||
src | ||
test | ||
.gitignore | ||
Cargo.toml | ||
README.md |
mpu6050
Platform agnostic driver for MPU6050 sensor.
Linux example
Requirements: apt-get install -qq gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross
cross-compile with cargo build --bin main --target=arm-unknown-linux-gnueabihf
TODO
- init with default settings
- init with custom settings
- device verification
- basic feature support as described here
- read gyro data
- read acc data
- software calibration
- roll, pitch estimation accelerometer only
- complementary filter for roll, pitch estimate
- read temp data
- timer/clock control with PWR_MGMT_2
- internal clock, register 108
POWER_MGMT_2
, will cycle between sleep mode and waking up to take a single sample of data from active sensors at a rate determined by LP_WAKE_CTRL (page 41-43)
- internal clock, register 108
- plotting csv data?
- complementary filter
- time step