Compass calibration - v1.3.2, 2000+ points collected, need more data
Trying to compass calibrate with v1.3.2 on a Pixhawk with 3DR compass/GPS module, we have collected more than 2000+ points for about 5 minutes and the ball is full, yet we still can't get enough points? How many points do we need?
We're in an area of the world where the magnetic field is lower than other areas, would this make a difference?
do you have the tlog?
I came across a log the other day where the mag had some very wild offsets. +700.
I managed to do it with 1.3.1 on another computer, but not with v1.3.2.
I'll try get a log as I can't find the log from the calibration from earlier.
I found calibration would not work if the board was rotated on its axes alone. It would calibrate if it was "tumbled" until 600+ data points were collected. Visually, then rotating axes became a sphere. MP 1.3.1 and AC 3.1.4.
3 of us tumbled the quad for a solid 5 minutes and collected well over 2000 points, the ball was completely filled but still it stated more data points required. On 23/05/2014 7:24 pm, "KeyDiver" [email protected] wrote:
I found calibration would not work if the board was rotated on its axes alone. It would calibrate if it was "tumbled" until 600+ data points were collected. Visually, then rotating axes became a sphere. MP 1.3.1 and AC 3.1.4.
— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/MissionPlanner/issues/475#issuecomment-44038079 .
Well, that must be a different sort of bug. Just my 2 pence.
The strictness of the compass calibration is incredibly annoying.
it's far too strict. I'm sure there is no need for as many points as it forces the user to collect. the algorithm it uses is the same as we use for accelerometer calibration I believe and you don't need full coverage.

the mp check is not realy that strict it checks these points
magcalib check - 22.5000002626381 0 dist 190.8478 magcalib check - 22.5000002626381 90.0000010505524 dist 190.8478 magcalib check - 22.5000002626381 180.000002101105 dist 190.8478 magcalib check - 22.5000002626381 270.000003151657 dist 190.8478 magcalib check - 67.5000007879143 0 dist 190.8478 magcalib check - 67.5000007879143 90.0000010505524 dist 190.8478 magcalib check - 67.5000007879143 180.000002101105 dist 190.8478 magcalib check - 67.5000007879143 270.000003151657 dist 190.8478 magcalib check - 112.500001313191 0 dist 190.8478 magcalib check - 112.500001313191 90.0000010505524 dist 190.8478 magcalib check - 112.500001313191 180.000002101105 dist 190.8478 magcalib check - 112.500001313191 270.000003151657 dist 190.8478 magcalib check - 157.500001838467 0 dist 190.8478 magcalib check - 157.500001838467 90.0000010505524 dist 190.8478 magcalib check - 157.500001838467 180.000002101105 dist 190.8478 magcalib check - 157.500001838467 270.000003151657 dist 190.8478
ie it check for 16 points around the sphere, with a distance to that point based on 1/3rd of the radius. in my example that's 190.
ive pushed a new beta copy out, please try that. and report back if it worked, and what the calced mag bias's are.
Here's a log from the latest attempt with v1.3.2 (not a beta) in a plane not a quad. Bottom half of the sphere is blank for some odd reason, 1055 points collected, still needs more: https://dl.dropboxusercontent.com/u/21460892/2014-05-24%2010-34-13.tlog
Here's a tlog taken today where over 2,000 points collected and still wanted more. This is in MP 1.3.3
https://dl.dropboxusercontent.com/u/30820287/2014-05-24%2010-21-23.zip
ok please see here http://diydrones.com/forum/topics/mag-calibration-does-not-complete-in-mp-1-3-2-1-3-3?xg_source=msg_com_forum&id=705844%3ATopic%3A1668514&page=2#comments it should now be fixed in the beta. just need someone to test.
Fixed in 1.3.4 - I'd like to offer a huge thank you to the developers for fixing this so very quickly. An awesome demonstration of open source benefits at work.
Yes, I've justed on my troublesome machine and it's a-ok. thanks!