> For the complete documentation index, see [llms.txt](https://docs.k9defense.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.k9defense.tech/exodus/exodus-lite/exodus-lite-pilot-manual/compass-calibration.md).

# Compass Calibration

Exodus depends on an onboard magnetometer to hold onto it's heading.&#x20;

### When to Compass Cal:

* If the drone starts to spiral while hovering.
* If the drone is giving heading or magnetometer errors.
* If the drone is failing to hold a stable heading in flight.
* If any new payloads were attached.
* If the drone is operating in a new location beyond a hundred miles from where it was last calibrated (The earth's magnetic field changes throughout the earth).

## 1. Setup

### Finding Suitable Location

* Location should be Outside.
* Location should be away from any powerlines or metal structures.
* If metal objects are present (metal building, trucks, etc.), make sure the calibration location is at least 30 FT away.
* Ensure there is no metal beneath you (ex. calibration in areas such as concrete parking garages have been known to cause issues due to the iron rebar inside the concrete).

## 2. Preparing For Calibration

* Connect the drone to the GCS. You do not need props or controller.
* If any new payloads were attached, ensure that the payload is fully integrated during the calibration.

## 3. Calibration

<figure><img src="https://3295908973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb01HmPjtHDbjVUURluQb%2Fuploads%2F23HeNUpoMjmObWkJ2kK5%2Fsensor_compass_calibrate_px4.BwHx3PSo.png?alt=media&amp;token=adb3491b-c343-4016-80e9-934bc7640d5f" alt=""><figcaption></figcaption></figure>

* In QGC click on the Q  > Configure > Sensors > Compass Calibration.
* Follow the onscreen orientation and rotate the drone to your left.
* Once finished and succeful, reboot the drone before flying by powering the drone on and off.

{% hint style="info" %}
If QGC Is indicating any errors with the calibration, the calibration may need to be done in a new location away from magnetic interference.
{% endhint %}
