ArduPilot MAGFit in flight compass calibration

This tool takes a .bin log and performs a "MAGFit inflight calibration". Calibration parameters are found that fit the measured magnetic field from the log to the expected field from the World Magnetic Model. For best results use a flight log that covers as many orientations as possible. Flying figure of eight patterns works well. If you need a motor calibration using either throttle or a current reading then you should also cover as wide a range of throttles and current draws as possible. You do not have to be in any particular flight mode.

Setup
Analysis time

Attitude source






Flight Data

Expected vs measured body frame magnetic field

Compass 1

Compass 2

Compass 3

Yaw change

Field length

Motor compensation sources

Calibration error

Compass 1 parameters

Compass 2 parameters

Compass 3 parameters