FaBoPlatform / FaBo9AXIS-MPU9250-Python

Apache License 2.0
49 stars 39 forks source link

MPU-9250 - How to Calibrate #4

Open cherbin opened 4 years ago

cherbin commented 4 years ago

Hello, I am running the python program for the MPU-9250.. Below is the output, but how do I calibrate the MPU ? Please provide exact code for this. I do not have the FaBo9Axis-MPU9250, but just the MPU-9250.

Here is the current output ax = 0.0 ay = 0.002 az = 0.297 gx = 35.172 gy = 95.734 gz = 3.929 mx = -30.296 my = 20.909 mz = -59.413

ax = 0.0 ay = 0.0 az = 0.282 gx = 35.294 gy = 95.734 gz = 3.922 mx = -32.398 my = 18.801 mz = -63.814

ax = 0.0 ay = 0.0 az = 0.314 gx = 39.2 gy = 95.734 gz = 3.906 mx = -31.697 my = 19.152 mz = -62.798

ax = 0.0 ay = 0.002 az = 0.313 gx = 39.063 gy = 95.734 gz = 3.922 mx = -30.647 my = 19.152 mz = -62.46

prem111as commented 4 years ago

Have you solved the calibration problem? I am looking for the same ...

rohit-kumar-j commented 2 years ago

@prem111as, @cherbin calibration, needs to be done by some filter, it is not here. This is only a class for communication with the sensor.

For calibration, perhaps see: 9DoF_MARG_Madgwick_Filter