Mag calibration by samples instead of time?

Post Reply
Arakon
Posts: 196
Joined: Thu Jul 17, 2014 2:22 pm

Mag calibration by samples instead of time?

Post by Arakon »

I'm no coder at all, so take this as just a theory and I have no idea how difficult this would be.
Wouldn't it make more sense to change the compass calibration to run until a certain amount of samples of all directions is collected? Rather than 30 seconds and praying that you got all directions properly.
Similar to APM.. beep when you got a good "picture" of the magnetic field.
Just thinking, since I had a few times when I did the calibration procedure same as always, yet it was way off.. i.e. the compass display drifting back to a certain direction after rotating.

User avatar
haydent
Posts: 583
Joined: Sun Jun 17, 2012 1:35 am
Location: NSW, AU

Re: Mag calibration by samples instead of time?

Post by haydent »

i had thought of this myself, and i think its a good idea if possible

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Mag calibration by samples instead of time?

Post by copterrichie »

I have watched guys with DJI products calibrate mag before flight, Interesting to say the least and have wondered the same myself.

brewski
Posts: 483
Joined: Tue Apr 29, 2014 12:04 am
Location: Cleveland Qld Australia

Re: Mag calibration by samples instead of time?

Post by brewski »

copterrichie wrote:I have watched guys with DJI products calibrate mag before flight, Interesting to say the least and have wondered the same myself.


This is exactly how APM 2.5 8 bit & Pixhawk 32bit Mag cal works. You can examine the code using arduino IDE. Check out How to Build Ardupilot with Arduino in APM WiKi.

Post Reply