Skip to content

Commit 16eac30

Browse files
authored
docs: Add a magnetometer recalibration section (#26081)
1 parent aadb83a commit 16eac30

File tree

1 file changed

+42
-10
lines changed

1 file changed

+42
-10
lines changed

docs/en/config/compass.md

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you have [mounted the compass](../assembly/mount_gps_compass.md#compass-orien
1010

1111
## Overview
1212

13-
You will need to calibrate your compass(es) when you first setup your vehicle, and you may need to recalibrate it if the vehicles is ever exposed to a very strong magnetic field, or if it is used in an area with abnormal magnetic characteristics.
13+
You will need to calibrate your compass(es) when you first setup your vehicle, and you may need to [recalibrate](#recalibration) it if the vehicles is ever exposed to a very strong magnetic field, or if it is used in an area with abnormal magnetic characteristics.
1414

1515
:::tip
1616
Indications of a poor compass calibration include multicopter circling during hover, toilet bowling (circling at increasing radius/spiraling-out, usually constant altitude, leading to fly-way), or veering off-path when attempting to fly straight.
@@ -20,13 +20,16 @@ _QGroundControl_ should also notify the error `mag sensors inconsistent`.
2020
The process calibrates all compasses and autodetects the orientation of any external compasses.
2121
If any external magnetometers are available, it then disables the internal magnetometers (these are primarily needed for automatic rotation detection of external magnetometers).
2222

23+
### Types of Calibration
24+
2325
Several types of compass calibration are available:
2426

2527
1. [Complete](#complete-calibration): This calibration is required after installing the autopilot on an airframe for the first time or when the configuration of the vehicle has changed significantly.
2628
It compensates for hard and soft iron effects by estimating an offset and a scale factor for each axis.
2729
1. [Partial](#partial-quick-calibration): This calibration can be performed as a routine when preparing the vehicle for a flight, after changing the payload, or simply when the compass rose seems inaccurate.
2830
This type of calibration only estimates the offsets to compensate for a hard iron effect.
29-
1. [Large vehicle](#large-vehicle-calibration): This calibration can be performed when the vehicle is too large or heavy to perform a complete calibration. This type of calibration only estimates the offsets to compensate for a hard iron effect.
31+
1. [Large vehicle](#large-vehicle-calibration): This calibration can be performed when the vehicle is too large or heavy to perform a complete calibration.
32+
This type of calibration only estimates the offsets to compensate for a hard iron effect.
3033

3134
## Performing the Calibration
3235

@@ -48,23 +51,27 @@ Before starting the calibration:
4851
The calibration steps are:
4952

5053
1. Start _QGroundControl_ and connect the vehicle.
51-
1. Select **"Q" icon > Vehicle Setup > Sensors** (sidebar) to open _Sensor Setup_.
52-
1. Click the **Compass** sensor button.
54+
2. Select **"Q" icon > Vehicle Setup > Sensors** (sidebar) to open _Sensor Setup_.
55+
3. Click the **Compass** sensor button.
5356

5457
![Select Compass calibration PX4](../../assets/qgc/setup/sensor/sensor_compass_select_px4.png)
5558

5659
::: info
57-
You should already have set the [Autopilot Orientation](../config/flight_controller_orientation.md). If not, you can also set it here.
60+
You should already have set the [Autopilot Orientation](../config/flight_controller_orientation.md).
61+
If not, you can also set it here.
5862
:::
5963

60-
1. Click **OK** to start the calibration.
61-
1. Place the vehicle in any of the orientations shown in red (incomplete) and hold it still. Once prompted (the orientation-image turns yellow) rotate the vehicle around the specified axis in either/both directions. Once the calibration is complete for the current orientation the associated image on the screen will turn green.
64+
4. Click **OK** to start the calibration.
65+
5. Place the vehicle in any of the orientations shown in red (incomplete) and hold it still.
66+
Once prompted (the orientation-image turns yellow) rotate the vehicle around the specified axis in either/both directions.
67+
Once the calibration is complete for the current orientation the associated image on the screen will turn green.
6268

6369
![Compass calibration steps on PX4](../../assets/qgc/setup/sensor/sensor_compass_calibrate_px4.png)
6470

65-
1. Repeat the calibration process for all vehicle orientations.
71+
6. Repeat the calibration process for all vehicle orientations.
6672

67-
Once you've calibrated the vehicle in all the positions _QGroundControl_ will display _Calibration complete_ (all orientation images will be displayed in green and the progress bar will fill completely). You can then proceed to the next sensor.
73+
Once you've calibrated the vehicle in all the positions _QGroundControl_ will display _Calibration complete_ (all orientation images will be displayed in green and the progress bar will fill completely).
74+
You can then proceed to the next sensor.
6875

6976
### Partial "Quick" Calibration
7077

@@ -87,7 +94,8 @@ Notes:
8794

8895
This calibration process leverages external knowledge of vehicle's orientation and location, and a World Magnetic Model (WMM) to calibrate the hard iron biases.
8996

90-
1. Ensure GNSS Fix. This is required to find the expected Earth magnetic field in WMM tables.
97+
1. Ensure GNSS Fix.
98+
This is required to find the expected Earth magnetic field in WMM tables.
9199
2. Align the vehicle to face True North.
92100
Be as accurate as possible for best results.
93101
3. Open the [QGroundControl MAVLink Console](https://docs.qgroundcontrol.com/master/en/qgc-user-guide/analyze_view/mavlink_console.html) and send the following command:
@@ -107,6 +115,30 @@ Notes:
107115

108116
After the calibration is complete, check that the heading indicator and the heading of the arrow on the map are stable and match the orientation of the vehicle when turning it e.g. to the cardinal directions.
109117

118+
## Recalibration
119+
120+
Recalibration is recommended whenever the magnetic environment of the vehicle has changed or when heading behavior appears unreliable.
121+
122+
You can use either complete calibration or mag quick calibration depending on the size of the vehicle and your ability to rotate it through the required orientations.
123+
Complete calibration provides the most accurate soft-iron compensation.
124+
125+
Recalibrate the compass when:
126+
127+
- _The compass module or its mounting orientation has changed._
128+
This includes replacing the GPS or mag unit, rotating the mast, or altering how the module is fixed to the airframe.
129+
- _The vehicle has been exposed to a strong magnetic disturbance._
130+
Examples include transport or storage near large steel structures, welding operations near the airframe, or operation close to high-current equipment.
131+
- _Structural, wiring, or payload changes may have altered the magnetic field around the sensors._
132+
New payloads, rerouted wires, additional batteries, or metal fasteners can introduce soft-iron effects that affect heading accuracy.
133+
- _The vehicle is operated in a region with significantly different magnetic characteristics._
134+
Large changes in latitude, longitude, or magnetic inclination can require re-estimation of offsets.
135+
- _QGroundControl reports magnetometer inconsistencies_.
136+
For example, if you see the error `mag sensors inconsistent`.
137+
- _Heading behavior does not match the vehicle’s observed orientation._
138+
Symptoms include drifting yaw, sudden heading jumps when attempting to fly straight, and toilet bowling
139+
- _QGroundControl_ sends the error `mag sensors inconsistent`.
140+
This indicates that multiple magnetometers are reporting different headings.
141+
110142
## Additional Calibration/Configuration
111143

112144
The process above will autodetect, [set default rotations](../advanced_config/parameter_reference.md#SENS_MAG_AUTOROT), calibrate, and prioritise, all available magnetometers.

0 commit comments

Comments
 (0)