APM 2.6 compass calibration issue

makattack

Winter is coming
Moderator
Mentor
If it's a real APM 2.6, it doesn't have the onboard compass... If it's an APM 2.5 masquerading as a 2.6 board, there's a trace / solder pad that's cut to disable the I2C connection on the onboard compass. At any rate, if you have a 2.6, and that GPS antenna as the built in external compass, and you have two sets of cables going from that to the APM (the GPS serial lines, and the Compass I2C lines), and the software is setup with the "External Compass" as documented here:

http://copter.ardupilot.com/wiki/ac_compasssetupupadvanced/

Do you see that XYZ/3D graph with the colors dots as you rotate the aircraft around all it's axis?

You might try to see what the compass graph or the magnetometer values are. This is for mission planner, but I think it's pretty similar to what you'll find in APM Planner:
http://plane.ardupilot.com/wiki/common-diagnosing-problems-using-logs/#compass_interference

Lastly, you might need to go to the CLI interface, in APM Planner -- using the "Advanced Mode" you select from the "File" menu, and I believe the command is "test compass" if the above doesn't show anything.

Note that when trouble shooting a compass problem, the APM flight data display will make it "appear" as if the compass is working, but that's only because it's using the accelerometers to detect orientation change... it probably won't match real world compass headings.
 

speedbird

Junior Member
Thanks for the advice, I've downloaded mission planner, loaded the compass calibration with the 3 axis graph, and nothing happens when I move it around with the compass plugged in.
 

makattack

Winter is coming
Moderator
Mentor
I've had problems with some of the made in China APM 2.6 boards with bad I2C busses -- or so it seems to me. Different compass modules just don't work on them -- even ones that work on other arduino boards. Sorry to break the bad news. It could be a bad cable or just a bad compass, but unless you have a logic probe to test with, it's hard to say.
 

makattack

Winter is coming
Moderator
Mentor
Oh great! Could it have been a loose connection? Those micro JST connectors/molex or whatever they're called are a PITA...