Easy magnetometer calibration
Posted: Fri Jan 03, 2014 4:25 pm
Hello,
having read the readme of the magnetometer of calibration (as proposed by Anton Krasovsky) the first thing I thought was that I don't want to go through the pain of installing Java and Processing. So I did a little search and sailboat people come to the help:
https://sites.google.com/site/sailboati ... ementation
I already have tested it, and it works great. Usage is actually pretty simple. Just put the raw values (as they come from the magnetometer) into a file called mag.txt, call Magneto (it's pretty simple to compile the c source) and it will display the necessary values needed for calibration. To use them one just need a vector addition and a simple matrix x vector multiplication (Magneto will display a ready to use matrix, no need to calc the inverse).
Works pretty good and is really easy to use (at least compared with the stuff which uses Processing).
What's left is to add some calibration in regard to the motor power (I've seen the heading changes a few degree when the motors are powered).
Have fun,
Alexander Holler
PS: Using Magneto to calibrate the accelerometer values can be done too, but I have to read a bit more about that.
having read the readme of the magnetometer of calibration (as proposed by Anton Krasovsky) the first thing I thought was that I don't want to go through the pain of installing Java and Processing. So I did a little search and sailboat people come to the help:
https://sites.google.com/site/sailboati ... ementation
I already have tested it, and it works great. Usage is actually pretty simple. Just put the raw values (as they come from the magnetometer) into a file called mag.txt, call Magneto (it's pretty simple to compile the c source) and it will display the necessary values needed for calibration. To use them one just need a vector addition and a simple matrix x vector multiplication (Magneto will display a ready to use matrix, no need to calc the inverse).
Works pretty good and is really easy to use (at least compared with the stuff which uses Processing).
What's left is to add some calibration in regard to the motor power (I've seen the heading changes a few degree when the motors are powered).
Have fun,
Alexander Holler
PS: Using Magneto to calibrate the accelerometer values can be done too, but I have to read a bit more about that.