Subscribe to Newsletter
Drone Maintenance 8 min read

How to Calibrate Your Drone: IMU, Compass, and Gimbal Guide

Step-by-step instructions for calibrating your drone's IMU, compass, and gimbal. Learn when calibration is necessary, how to do it correctly, and common mistakes to avoid.

How to Calibrate Your Drone: IMU, Compass, and Gimbal Guide

Calibration is one of those drone topics that generates a surprising amount of confusion. Some pilots calibrate their compass before every single flight — usually unnecessarily. Others never calibrate anything, then wonder why their drone drifts or their gimbal horizon tilts. Getting calibration right means understanding what each sensor does, when it actually needs recalibration, and how to do it properly.

This guide covers the three calibrations every drone pilot needs to know: the Inertial Measurement Unit (IMU), the compass (magnetometer), and the gimbal.


Understanding What Each Sensor Does

Before calibrating anything, it helps to understand why these sensors exist and what they are measuring.

The IMU (Inertial Measurement Unit)

The IMU is a combination of accelerometers and gyroscopes embedded in the flight controller. Accelerometers measure linear acceleration along three axes (forward/back, left/right, up/down). Gyroscopes measure rotational rate around those same axes. Together, they give the flight controller a continuous picture of how the aircraft is moving and tilting in space, independent of any external reference.

The IMU is the most fundamental sensor in the drone. If it reads incorrectly, the aircraft will have inaccurate awareness of its own orientation. This manifests as drift in GPS-assisted hover, incorrect attitude estimates, or unstable flight behavior.

The Compass (Magnetometer)

The compass measures the direction of the Earth’s magnetic field relative to the aircraft. The flight controller uses this to determine which direction the drone is pointing, which is essential for maintaining heading-locked GPS position hold, return-to-home accuracy, and the correct execution of autonomous flight modes.

The compass is highly sensitive to magnetic interference. Metal objects, reinforced concrete, electrical wiring, and even the pilot’s phone can distort the local magnetic field and cause compass errors.

The Gimbal

The gimbal uses its own IMU and motor controllers to keep the camera stable and level. Gimbal calibration corrects for physical mounting offsets — if the camera was re-installed after maintenance, if the gimbal was impacted, or if the horizon consistently tilts in one direction in footage.


When Does Each Sensor Need Calibration?

IMU Calibration: Infrequent but Critical

The IMU does not require calibration at each flight site. It should be calibrated:

  • After a firmware update that includes flight controller changes
  • After the aircraft experiences a hard crash
  • If the flight app shows an IMU error or calibration warning
  • After shipping the aircraft (some pilots do this as a precaution)
  • If the drone drifts noticeably in a stable hover despite good GPS conditions

Do not perform IMU calibration outdoors or on an uneven surface. The calibration requires the aircraft to sit perfectly still on a known flat surface while it averages sensor readings. Vibration, wind, or a tilted surface will produce a flawed calibration.

Compass Calibration: Location-Dependent

Compass calibration should be performed:

  • When you travel to a new geographic region (flying in a different country or far from your home base)
  • When the flight app displays a compass error or calibration required warning
  • After storing the aircraft near magnetic materials for an extended period
  • If the drone spins or yaws unexpectedly during GPS-mode flight

Compass calibration does not need to happen at every flight site within your local area. If you fly at five different locations within a 50-kilometer radius, one compass calibration is sufficient for all of them. However, if you are flying in a location with known magnetic interference — near power lines, large metal structures, or iron-rich geological formations — recalibration at that site is warranted.

Gimbal Calibration: After Physical Changes

Calibrate the gimbal:

  • After reinstalling the camera following maintenance
  • After a collision that affected the gimbal
  • If you consistently see a tilted horizon in footage that cannot be corrected in post
  • After replacing a gimbal motor or ribbon cable

How to Calibrate the IMU

What You Need

  • A flat, stable surface (a table or floor — not a car hood or outdoor ground)
  • The aircraft powered off initially, then powered on during the process
  • The DJI Fly app, DJI Assistant 2, or the relevant app for your aircraft

Step-by-Step IMU Calibration

  1. Place the aircraft on a flat, level surface indoors. Avoid surfaces near large metal objects or electronics.
  2. Power on the aircraft and connect your controller or mobile device to the flight app.
  3. Navigate to Settings > Safety (DJI Fly) or Settings > Advanced Settings > Sensors depending on your app and model.
  4. Select IMU Calibration and follow the on-screen prompts.
  5. The calibration procedure will ask you to place the aircraft in multiple orientations — typically flat (level), nose down, nose up, left side down, right side down, and upside down.
  6. Hold each position completely still until the progress indicator advances. Any movement during a step invalidates that step and you may need to restart.
  7. Once all orientations are complete, the app will confirm successful calibration.
  8. Power cycle the aircraft before flying.

Common IMU Calibration Mistakes

  • Calibrating on a surface that is not perfectly flat — even a few degrees of tilt introduces error
  • Moving the aircraft during a calibration step
  • Calibrating outdoors where wind can cause micro-vibrations
  • Not power cycling the aircraft after calibration completes

How to Calibrate the Compass

Choosing a Calibration Location

Compass calibration must be done outdoors, away from:

  • Vehicles (especially those with steel frames)
  • Reinforced concrete structures
  • Underground metal pipes or utility infrastructure
  • Power lines and transformers
  • Other electronics, including your phone (hold it away from the aircraft during calibration)

Find an open area of grass or dirt at least 10 meters from any vehicle or structure.

Step-by-Step Compass Calibration

  1. Power on the aircraft and connect to the flight app.
  2. Navigate to Settings > Safety > Compass or the equivalent in your app.
  3. Select Calibrate Compass and follow the prompts.
  4. Most drones require two rotations:
    • Horizontal rotation: Hold the aircraft level and rotate slowly 360 degrees in a full circle, typically two full rotations
    • Vertical rotation: Hold the aircraft with one end pointing straight down (nose or tail down) and rotate slowly 360 degrees
  5. Rotate slowly and smoothly — jerky movement can cause the calibration to fail
  6. The app will confirm successful calibration with a status indicator

If Compass Calibration Fails Repeatedly

Repeated calibration failures almost always indicate magnetic interference at your location. Move at least 20–30 meters and try again. If it continues to fail after relocating, inspect the aircraft for any ferrous objects that may have attached to the frame (metallic debris, ferrous dust from grinding nearby). If calibration fails consistently across multiple locations, the magnetometer itself may be damaged and require service.


How to Calibrate the Gimbal

Automatic Gimbal Calibration

Most modern drones perform a gimbal auto-calibration at power-on. During this sequence, the gimbal moves to its limit positions in each axis to zero its motor positions. You should see and hear this happen within a few seconds of powering on. If the gimbal does not move at all during startup, or moves and immediately shows an error, this indicates a fault rather than a calibration issue.

Manual Gimbal Calibration

If you notice a persistent horizon tilt in your footage:

  1. Power on the aircraft and allow the gimbal to complete its startup sequence
  2. Navigate to Settings > Control > Gimbal in your flight app
  3. Select Gimbal Auto Calibration or Calibrate Gimbal
  4. Place the aircraft on a flat, level surface and do not move it during the calibration
  5. Allow the sequence to complete — it typically takes 10–20 seconds

Gimbal Horizon Adjustment (Roll Offset)

If a slight horizon tilt persists after calibration, most DJI apps offer a Gimbal Roll adjustment slider. This applies a small electronic correction to the roll axis. This is a fine-tuning tool, not a substitute for addressing a physical alignment problem. Use it for corrections of 1–2 degrees. A larger tilt indicates a physical issue that calibration and offset cannot fully compensate for.


Calibration After a Crash

After any crash — even a minor one — follow this sequence before your next flight:

  1. Inspect the aircraft physically for any structural damage
  2. If the aircraft landed hard enough to flex a frame arm or displace the camera, perform IMU calibration before the next flight
  3. If the crash occurred near a metal surface or caused the aircraft to spin, add compass calibration
  4. If the gimbal was impacted, perform gimbal calibration

When in doubt, calibrate. A calibration that was not needed takes five minutes. An uncalibrated sensor causing a flyaway costs you the aircraft.


FAQ

Should I calibrate the compass before every flight?

No, and doing so can actually cause issues. Frequent compass calibrations at different locations can introduce inconsistency if any calibration is performed near magnetic interference. Calibrate when you genuinely need to — after traveling to a new region, after a crash, or when the app requests it.

My drone drifts sideways in hover despite good GPS. Is this a calibration issue?

Drift in GPS hover can be caused by an uncalibrated IMU, compass interference, or poor satellite geometry (low satellite count or high HDOP). Check your satellite count in the app first. If it is above 10 and the horizontal accuracy indicator is good, an IMU calibration is the next step. Also check whether the drift is wind-related before assuming a sensor fault.

Can I calibrate my IMU outside?

You can, but it is not recommended. IMU calibration requires the aircraft to be completely still. Outdoors, wind can cause micro-vibrations that contaminate the sensor readings. Perform IMU calibration on a stable indoor surface for the most accurate results.

My gimbal shows a horizon tilt only in certain flight attitudes. Is this a calibration issue?

A tilt that appears only in certain attitudes — nose-up climbs, for example — is more likely a gimbal follow mode or gimbal tilt interaction issue than a static calibration error. Check your gimbal follow settings and ensure the follow angle is set appropriately. A static horizon tilt that is consistent at all attitudes is a calibration issue.

Written by

ShutterFeed Aerial

The ShutterFeed Aerial team has collectively tested 40+ drones, holds multiple pilot certifications, and has been covering the drone industry since 2019.

Learn more about us

More in Drone Maintenance

View All

Before you go...

Get our Free Drone Starter Kit — a complete checklist and buying guide PDF, delivered to your inbox instantly.