GithubHelp home page GithubHelp logo

Calibration values question about mpu6050 HOT 9 OPEN

jc508 avatar jc508 commented on August 17, 2024
Calibration values question

from mpu6050.

Comments (9)

kriswiner avatar kriswiner commented on August 17, 2024

from mpu6050.

maopal avatar maopal commented on August 17, 2024

Hi there Kris, first off your Github page is a gold mine. Secondly, in this code
`// Get hard iron correction
mag_bias[0] = (mag_max[0] + mag_min[0])/2; // get average x mag bias in counts
mag_bias[1] = (mag_max[1] + mag_min[1])/2; // get average y mag bias in counts
mag_bias[2] = (mag_max[2] + mag_min[2])/2; // get average z mag bias in counts

dest1[0] = (float) mag_bias[0]MPU9250mResMPU9250magCalibration[0]; // save mag biases in G for main program
dest1[1] = (float) mag_bias[1]MPU9250mResMPU9250magCalibration[1];
dest1[2] = (float) mag_bias[2]MPU9250mResMPU9250magCalibration[2]; `

You also use MPU9250magCalibration. What is this term for?

Thanks in advance

from mpu6050.

kriswiner avatar kriswiner commented on August 17, 2024

from mpu6050.

maopal avatar maopal commented on August 17, 2024

Is that the same as the Sensitivity adjust values as shown in this picture?

If not how could I calculate/find this value? What value did you use?

Many thanks

IMG_20210215_221113115.jpg

from mpu6050.

kriswiner avatar kriswiner commented on August 17, 2024

from mpu6050.

maopal avatar maopal commented on August 17, 2024

Hi Kris, other than accounting for soft-iron and hard-iron biases, is there any other calculation I need to do before inputting mag data into madwickquaternionupdate() function. Correcting for magnetic declination perhaps?

Thanks again

from mpu6050.

kriswiner avatar kriswiner commented on August 17, 2024

from mpu6050.

maopal avatar maopal commented on August 17, 2024

I just came across this post where you mention accounting for declination in your response. "you have taken into account the
local magnetic declination". kriswiner/MPU9250#345

Just a bit confused now... thanks again

from mpu6050.

kriswiner avatar kriswiner commented on August 17, 2024

from mpu6050.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.