Terrain following

Also known as: terrain follow

On this page 7

Terrain following is a flight function in which a drone keeps a constant height above ground level (AGL) while the ground beneath it rises and falls, instead of holding a fixed altitude relative to its takeoff point. Within Navigation & sensors for Drones, it combines altitude data, ground-distance measurement and terrain models so that the aircraft climbs over hills and descends into valleys automatically.

The function matters most for mapping, crop spraying, inspection and low-level filming over uneven land. Without it, a drone flying at a fixed 60 meters above home may pass only 15 meters above a ridge, which degrades image resolution consistency and raises the risk of collision.

How terrain following measures and tracks the ground

Terrain following works by continuously estimating the distance between the aircraft and the surface below it and adjusting the altitude setpoint to keep that distance at a target value. The flight controller blends this ground distance with barometric altitude and GNSS height to produce a stable vertical command.

Two broad approaches exist. Sensor-based following measures the ground in real time with a downward rangefinder, radar or stereo cameras. Model-based following uses a digital elevation model (DEM) loaded before the flight and offsets the planned altitude by the known terrain height at each waypoint. Many professional systems use both, with the model as a plan and the sensor as a correction.

The table below compares the main ground-sensing methods used for terrain following.

MethodTypical rangeStrengthWeakness
Downward lidar rangefinder0.2-100 mPrecise, fast updatesNarrow beam, sensitive to dust and rain
Millimeter-wave radar1-50 mWorks in dust, fog and darknessCoarser resolution, crop canopy reflections
Ultrasonic sensor0.2-6 mLow costVery short range, affected by wind noise
Stereo vision1-30 mWide field of viewNeeds light and surface texture
Digital elevation modelUnlimitedPlans ahead of the aircraftIgnores trees, buildings and outdated data
Ground-sensing methods for terrain following

Altitude references and why they differ

Terrain following exists because a drone has several altitude references that diverge over sloping land. The default reference on most consumer drones is height above the home point, which stays constant regardless of the terrain beneath the aircraft.

ReferenceMeasured fromMain sourceBehavior over a hill
Relative altitudeTakeoff pointBarometerGround clearance shrinks
Above mean sea levelGeoid or ellipsoidGNSS, RTKGround clearance shrinks
Above ground levelSurface directly belowRangefinder or radarClearance stays constant
Above terrain modelDEM surfaceElevation data plus GNSSConstant over bare ground
Altitude references used by drones

Regulations add another layer. Many aviation authorities, including the FAA and EASA, express the 120-meter (400-foot) limit for open-category operations relative to the ground or the closest point of the surface, so terrain following helps keep a legal height over descending slopes where a fixed altitude would exceed the limit.

Key parameters and tuning

Terrain following performance depends on how quickly the aircraft can sense, decide and climb. A fast drone approaching a steep slope must start climbing before the slope is directly beneath it, which is why forward-looking data or a terrain model improves safety at higher speeds.

ParameterTypical valueWhat it affects
Target height AGL2-5 m spraying, 30-120 m mappingCoverage width and image scale
Maximum climb rate3-6 m/sSteepest slope the drone can follow
Ground speed3-15 m/sReaction time before terrain changes
Sensor update rate10-100 HzSmoothness of height corrections
Height filter strengthPlatform-specificBalance between smoothness and lag
Parameters that govern terrain following

A useful rule is that the slope the drone can follow equals the ratio of maximum climb rate to ground speed. At 10 m/s forward and 5 m/s climb, the aircraft can track a slope of about 27 degrees; steeper terrain requires slower flight or a higher clearance.

Where terrain following is used

Terrain following is essential wherever constant ground distance defines the quality of the result. In photogrammetry, it keeps the ground sampling distance uniform; in agriculture, it keeps spray nozzles at a height that controls droplet drift and deposition.

  • Agricultural spraying and seeding on terraced or hilly fields, usually with radar.
  • Photogrammetry and lidar mapping of mountainous areas, usually with an imported DEM.
  • Powerline and pipeline corridor inspection across valleys and ridges.
  • Search and rescue sweeps over rough terrain at a fixed thermal camera range.
  • Low-level cinematography that follows a slope smoothly for a consistent framing.

Limitations and failure modes

Terrain following is only as reliable as its ground measurement and data. Each sensing method has conditions in which it reports a misleading surface, and the drone then climbs or descends unnecessarily.

SymptomLikely causeMitigation
Sudden climb over cropsRadar reading canopy instead of soilAdjust target height for canopy
Descent over waterRangefinder loses reflectionFall back to DEM or barometer
Late climb on steep slopeSpeed too high for climb rateReduce speed or raise clearance
Clipping trees in model modeDEM shows bare earth onlyUse a surface model or add margin
Height oscillationFilter too aggressive or noisy sensorRetune filter, check mounting
Common terrain following problems

Terrain following does not replace obstacle avoidance. It looks down, not forward, so isolated objects such as masts, wires or single trees remain a hazard unless a separate sense-and-avoid system or careful mission planning covers them.

The idea in brief

Most drones remember the height of the place where they took off. They then fly at a fixed height above that spot. On flat ground, this works well. On a hill, the ground comes closer and the drone may get too low.

Terrain following fixes this problem. The drone watches the ground below it, or uses a map of the land. It goes up when the ground rises and down when the ground falls. It is like a car driving over hills, always keeping the same distance from the road.

A practical scenario

A vineyard on a slope with a 90-meter height difference between its lowest and highest rows needs fungicide applied. The operator uses an agricultural spraying drone with millimeter-wave radar and sets a target height of 2.5 meters above the vine canopy at a ground speed of 5 m/s.

As the drone moves uphill, the radar detects the rising canopy and the controller increases altitude smoothly. Over a gap between rows, it holds height instead of dipping. The result is even spray coverage across the whole slope, less drift toward a neighboring field and no manual altitude corrections during a 20-minute mission.