kriswiner / MPU6050

Basic MPU6050 Arduino sketch of sensor function
716 stars 190 forks source link

About automatic calibrations of magnetometer #17

Open ijunglee opened 7 years ago

ijunglee commented 7 years ago

Hello, I have read your article "Simple and Effective Magnetometer Calibration". Do you have any further information about how to do the automatic calibration and let the users know if the magnetometer is well-calibrated and how well they can trust the result after calibration? I can only show the plot figure of mag data to myself; however, I can not know if the magnetometer is well-calibrated and can be used. Thanks in advance!

kriswiner commented 7 years ago

Once you do the calibration, store the offset biases in your code or EEPROM and you don;t have to calibrate again.

On Thu, Aug 3, 2017 at 8:43 AM, ijunglee notifications@github.com wrote:

Hello, I have read your article "Simple and Effective Magnetometer Calibration". Do you have any further information about how to do the automatic calibration and let the users know if the magnetometer is well-calibrated and how well they can trust the result after calibration? I can only show the plot figure of mag data to myself; however, I can not know if the magnetometer is well-calibrated and can be used. Thanks in advance!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU6050/issues/17, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qn_0QrfCvuMm3NnyEDU0Q7aBFfpuks5sUeqfgaJpZM4OsoNQ .

rogeriojoao commented 7 years ago

Well defenetly have to buy you a beer since it is going to save me some time for coding for pic32... there is just one thing that i don't undertand in the for loop shont the FIFO_R_W be updated as ii increments becose if it is not uptadeted we will keep reding the same 12 values over the loop...;)

kriswiner commented 7 years ago

Not sure what you mean, but in the calbration, the data sampling continues until the FIFO if full, then the FIFO is read.

On Mon, Aug 21, 2017 at 1:39 PM, rogeriojoao notifications@github.com wrote:

Well defenetly have to buy you a beer since it is going to save me some time for coding for pic32... there is just one thing that i don't undertand in the for loop shont the FIFO_R_W be updated as ii increments becose if it is not uptadeted we will keep reding the same 12 values over the loop...;)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU6050/issues/17#issuecomment-323847049, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qviCgU6DxtLbi3kmnEa9__OAgta3ks5saesWgaJpZM4OsoNQ .

rogeriojoao commented 7 years ago

i forgot tha was a FIFO .... so it puuls up information up as it is read... thanks.