Basic program to get the properly-scaled gyro and accelerometer data from a MPU-6050 6-axis motion sensor. Perform sensor fusion using Sebastian Madgwick's open-source IMU fusion filter. Running on the STM32F401 at 84 MHz achieved sensor fusion filter update rates of 5500 Hz. Additional info at https://github.com/kriswiner/MPU-6050.
Kris Winer / MPU6050IMU