Basic program to obtain properly-scaled gyro, accelerometer, and magnetometer data from the MPU-9150 9-axis motion sensor. Nine-axis sensor fusion with Sebastian Madgwick's and Mahony's open-source sensor fusion filters running on an STM32F401RE Nucleo board at 84 MHz achieve sensor fusion filter update rates of ~5000 Hz. Additional info at https://github.com/kriswiner/STM32F401.

Dependencies:   ST_401_84MHZ mbed

Added Magnetic calibration code from Arduino code

Hi Kris,

Magnetic calibration loop ported to MBed as discussed on github issue - https://github.com/kriswiner/MPU-9250/issues/35

Fork to pull magnetic calibration code