Page 1 of 1

Magnetometer

Posted: Mon Jul 23, 2012 5:01 pm
by LuFa
Hi ,

What is the best way to calibrate the magnetometer ?
In the gui we have the button "calib. mag." but cant find any info how it works .
My last info is , Klick on the calibrate button and move the Mwii in all directions , thats all .

I hope anywhere can tell me exactly how is the best way for calibrate the magnetometer.


Thanks

Re: Magnetometer

Posted: Sun Mar 10, 2013 8:25 pm
by RCvertt
I would also like to know the answer to this.

My understanding is the same as you. Click the "calibrate" button then rotate the aircraft around each of its axis a couple times. But I'm not sure how many times to rotate the aircraft and if it has to then sit on the ground motionless for a while before flying?

Any help? I'm using HMC5843 with 1.7 code.

Re: Magnetometer

Posted: Mon Mar 11, 2013 10:30 am
by scrat
RCvertt wrote:I would also like to know the answer to this.

My understanding is the same as you. Click the "calibrate" button then rotate the aircraft around each of its axis a couple times. But I'm not sure how many times to rotate the aircraft and if it has to then sit on the ground motionless for a while before flying?

Any help? I'm using HMC5843 with 1.7 code.


Time frame for calibrating MAG is 30sec.

Re: Magnetometer

Posted: Mon Mar 11, 2013 8:31 pm
by RCvertt
scrat wrote:Time frame for calibrating MAG is 30sec.


Great. Thanks.

Scrat also told me we only have to calibrate it once like an accelerometer. You don't have to do it before ever flight.

Re: Magnetometer

Posted: Wed Mar 13, 2013 1:07 pm
by tovrin
RCvertt, please update to newest code, 1.7 is really old and so many advances have been made up to 2.2

Re: Magnetometer

Posted: Wed Mar 13, 2013 6:44 pm
by RCvertt
Thanks. Your right. All the advances and the movement away from standard arduino sintax make the code a little more difficult for this non-coder to read but I'll keep trying :oops:

Re: Magnetometer

Posted: Fri Mar 15, 2013 10:53 pm
by miniquad
I was looking for this information sometime ago and found on the forum that, you need to rotate your quad 360 degree on all three axes to calibrate the magnetometer.