MissionPlanner icon indicating copy to clipboard operation
MissionPlanner copied to clipboard

Compass calibration - v1.3.2, 2000+ points collected, need more data

Open GrahamDyer opened this issue 12 years ago • 14 comments

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?

GrahamDyer avatar May 23 '14 09:05 GrahamDyer

do you have the tlog?

I came across a log the other day where the mag had some very wild offsets. +700.

meee1 avatar May 23 '14 09:05 meee1

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.

GrahamDyer avatar May 23 '14 16:05 GrahamDyer

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.

KeyDiver avatar May 23 '14 17:05 KeyDiver

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 .

GrahamDyer avatar May 23 '14 19:05 GrahamDyer

Well, that must be a different sort of bug. Just my 2 pence.

KeyDiver avatar May 23 '14 19:05 KeyDiver

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. compass-calib-woespng

rmackay9 avatar May 24 '14 02:05 rmackay9

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

meee1 avatar May 24 '14 03:05 meee1

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.

meee1 avatar May 24 '14 03:05 meee1

ive pushed a new beta copy out, please try that. and report back if it worked, and what the calced mag bias's are.

meee1 avatar May 24 '14 03:05 meee1

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

GrahamDyer avatar May 24 '14 08:05 GrahamDyer

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

Hands0n avatar May 24 '14 13:05 Hands0n

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.

meee1 avatar May 25 '14 12:05 meee1

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.

Hands0n avatar May 25 '14 17:05 Hands0n

Yes, I've justed on my troublesome machine and it's a-ok. thanks!

rmackay9 avatar May 26 '14 01:05 rmackay9