Hi everyone,
I'm pretty new to Arduino, I bought a MPU-9250 to track an instrument. I am trying to calibrate it, I modified the code for MPU-6050 that I found here: Calibrating & Optimising the MPU6050 – chillibasket
I am using the library MPU9250-master : GitHub - bolderflight/invensense-imu: Arduino and CMake library for communicating with the InvenSense MPU-6500, MPU-9250 and MPU-9255 nine-axis IMUs.
I am attaching here my code.
Do someone knows what is wrong? There is no error in writing when I compile, It just never reaches convergence. I think maybe the problem is that the library I am using reads the values and corrects them automatically.
If anyone could help, I'd be glad!!!
calibration.ino (4.77 KB)