ebelski / rust-copter

A quadcopter build using a Teensy running Rust and some other cool stuff that's yet to be determined.
MIT License
6 stars 1 forks source link

Motion sensor interface, and MPU9250 driver #27

Closed mciantyre closed 4 years ago

mciantyre commented 4 years ago

The PR adds an interface for different motion sensors, and an implementation based on the MPU9250. The MPU9250 driver supports both SPI and I2C interfaces. The MPU9250 interface depends on a separate register crate, which defines all register addresses and fields.

The PR renames the mpu9250 demo to mpu9250-i2c, and it adds a similar *-spi demo.