MPU9250_MS5637_ESP32 Basic Example Code by: Kris Winer date: December 14, 2016
Embedded MotionDriver 6.12 is our first ever 9-axis solution not locked to a specific MCU.Version 6.1.2 is an update to 6.1 that includes bug fixes and new libraries. This release is supported across all ARM Mx core architectures and supports the InvenSense MPU-6000, 6050, 6500, 9150, and 9250. The release includes optimized libraries and example projects for M3 and M4 cores as well the generic ARM library for any Mx core and an additional library and project for the TI MSP430. eMD 6.1 also includes a Python client for both visualizing the sensor performance and commands for printing data. This solution will allow you to easily leverage and configure numerous features of the DMP and also benefit from dynamic features in the MPL software library. Libraries specific to IAR, Keil, and GCC are included.
In your File I can just see a Gyro and Accelero Calibration but no Magnetometer Calibration ...For now I stay with the 8-Calibration (Magnetometer) and just increase the time by 10 seconds, that gives me almost good working data.
The MPLThe Motion Driver 6.12 contains a binary library which contains InvenSense proprietary algorithms for sensor fusion and dynamic calibration. The MD 6.12 driver pushes the sensor data into the MPL and the MPL will handle the 9-axis sensor fusion including the compass integration.MPL features are configured before enabling the MPL library. They can be dynamically turned off and on through API calls into the MPL.Compass Calibration:Run-time hard iron compass calibration for MPU9150 and MPU9250. MPL reads and builds the magnetic field environment around the device. Once enough data is present the compass offset can be applied and 9-axis quaternions can be generated. If you are in an environment with an unstable magnetic field the compass will not get calibrated. If the compass is not calibrated the quaternions will only use 6-axis. Figure 8 motions on the device will quicken the calibration.Mag Disturbance Rejection:After calibration, the MPL library will keep track of the magnetic field and if there is an anomy detected, the MPL library will reject the compass data and switch back to 6-axis fusion. After a magnetic disturbance is detected, the MPL library will continue to check the compass data every 5 seconds. At each check, if the disturbance is no longer there, it will switch back to 9-axis fusion…otherwise, it will continue to reject the data.