Altitude hold

On this page 7

Altitude hold is a flight control function that keeps a drone at a constant height without continuous throttle input from the pilot. The flight controller estimates altitude from a barometer, accelerometers and, when available, GPS or a downward rangefinder, then adjusts motor thrust in a closed loop so that the aircraft neither climbs nor sinks. In drone flight control, it is the vertical counterpart to stabilization of roll and pitch.

With altitude hold active, a centered throttle stick means hold the current height, while moving the stick commands a climb or descent rate. The function forms the basis of beginner-friendly modes on camera drones and the vertical half of position hold.

How altitude hold estimates and controls height

Altitude hold works as a cascaded control loop. An outer loop compares the estimated altitude with the target and outputs a desired vertical speed; an inner loop compares that desired speed with the measured climb rate and outputs a throttle correction. Each loop is typically a PID or PI controller, tuned so that the drone settles smoothly instead of bouncing.

No single sensor gives clean, fast and drift-free altitude, so the firmware fuses several sources with a complementary filter or extended Kalman filter. The barometer provides absolute reference but is noisy and slow, while the accelerometer reacts instantly but drifts when integrated. Combining them produces an estimate that is both responsive and stable.

The table below compares the sensors that typically feed an altitude estimate.

SensorWhat it measuresStrengthWeakness
BarometerAir pressureWorks at any heightNoise, wind and temperature drift
AccelerometerVertical accelerationVery fast responseDrift when integrated
GPSSatellite altitudeNo long-term driftVertical error of several meters
RangefinderDistance to groundCentimeter precisionShort range, surface dependent
Optical flow cameraGround motion and heightGood low-level hold indoorsNeeds texture and light
Sensors used for altitude estimation

Key parameters and typical accuracy

How well altitude hold performs depends on sensor quality, vibration isolation and the tuning of several parameters. A barometer-only hold on a small drone commonly wanders by about 0.5-2 meters, whereas a rangefinder near the ground can hold within a few centimeters. Firmware such as INAV, ArduPilot and PX4 exposes these settings for adjustment.

ParameterEffectSymptom if set wrong
Hover throttleBaseline thrust for level hoverClimb or sink when engaged
Position P gainStrength of height correctionSlow drift or oscillation
Velocity P and I gainsClimb rate trackingBouncing or sluggish response
Maximum climb rateSpeed limit for stick commandsSudden or slow altitude changes
Throttle deadbandStick zone treated as holdUnintended creeping height
Barometer filter cutoffSmoothing of pressure noiseLag or jittery motors
Common altitude hold parameters

An accurate hover throttle estimate matters most, because it lets the controller start from the right thrust instead of correcting a large error. Many flight stacks learn hover throttle automatically during flight.

Altitude hold controls only the vertical axis. It does not stop horizontal drift caused by wind, which is the job of position hold. The comparison below separates it from neighboring modes in the same topic.

ModeHeight controlHorizontal controlTypical use
Angle modeManual throttleSelf-leveling attitudeBeginner manual flight
Altitude holdAutomaticSelf-leveling, drifts with windSmooth filming, training
Position holdAutomaticGPS or optical flow lockHovering in place
Acro modeManual throttleRate control onlyFPV freestyle and racing
Altitude hold and neighboring flight modes

On consumer camera drones, altitude hold is usually permanently active in the normal mode, so pilots may never see it as a separate setting. On FPV and custom builds running Betaflight, a true altitude hold is limited or absent, while INAV and ArduPilot implement it fully.

Using and tuning altitude hold in practice

Reliable altitude hold starts with good hardware installation. The barometer must be shielded from propeller wash and light, because airflow and sunlight cause pressure and temperature errors. Many builders cover the sensor with open-cell foam, which blocks gusts while allowing static pressure through.

ProblemLikely causeFix
Height jumps in fast forward flightDynamic pressure on barometerAdd foam, relocate sensor
Slow drift up or downWrong hover throttleRecalibrate or enable learning
Rhythmic bouncingGains too highLower velocity P gain
Sudden drop on engagePoor accelerometer calibrationRepeat IMU calibration
Erratic hold with motors spinningVibration aliasingImprove damping and filtering
Altitude hold problems and their fixes
  • Engage at a safe height of several meters for the first test, so a sudden drop does not reach the ground.
  • Review blackbox logs of target versus estimated altitude to see lag and overshoot.
  • Retune after changing weight, such as adding a heavier battery or camera.

Limitations and common misconceptions

Altitude hold maintains height above the takeoff point, not height above the terrain, unless a rangefinder is used. Flying over a rising slope with barometric hold can therefore bring the drone dangerously close to the ground.

  • It does not prevent collisions; obstacles above or below remain the pilot’s responsibility.
  • Weather changes shift barometric readings during long flights, causing slow altitude drift.
  • Ground effect near the surface disturbs both thrust and pressure readings during low hovering.
  • Strong downdrafts can exceed available thrust, so the drone may still lose height.

The idea in brief

Altitude hold is like cruise control for height. The pilot lets go of the up and down stick, and the drone keeps itself at the same level. It senses small changes in air pressure and movement. Then it nudges the motors up or down to stay put.

This makes flying much easier. The pilot can focus on steering and filming. It does not stop wind from pushing the drone sideways, and it does not see trees or walls.

A practical scenario

A roof inspector flies a camera drone along the edge of a warehouse roof at 15 meters above the parking lot. Without altitude hold, every turn and camera adjustment would cause small climbs and dips, so the inspector would constantly correct the throttle while also framing images of damaged flashing.

With altitude hold active, the inspector centers the throttle stick and the drone holds height within about half a meter as it moves along the wall. During one pass a gust pushes the aircraft sideways, but its height stays constant. The inspector completes the survey of 200 meters of roofline in a single battery charge, with consistent image scale that makes the defect report easier to compare.