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.
| Method | Typical range | Strength | Weakness |
|---|---|---|---|
| Downward lidar rangefinder | 0.2-100 m | Precise, fast updates | Narrow beam, sensitive to dust and rain |
| Millimeter-wave radar | 1-50 m | Works in dust, fog and darkness | Coarser resolution, crop canopy reflections |
| Ultrasonic sensor | 0.2-6 m | Low cost | Very short range, affected by wind noise |
| Stereo vision | 1-30 m | Wide field of view | Needs light and surface texture |
| Digital elevation model | Unlimited | Plans ahead of the aircraft | Ignores trees, buildings and outdated data |
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.
| Reference | Measured from | Main source | Behavior over a hill |
|---|---|---|---|
| Relative altitude | Takeoff point | Barometer | Ground clearance shrinks |
| Above mean sea level | Geoid or ellipsoid | GNSS, RTK | Ground clearance shrinks |
| Above ground level | Surface directly below | Rangefinder or radar | Clearance stays constant |
| Above terrain model | DEM surface | Elevation data plus GNSS | Constant over bare ground |
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.
| Parameter | Typical value | What it affects |
|---|---|---|
| Target height AGL | 2-5 m spraying, 30-120 m mapping | Coverage width and image scale |
| Maximum climb rate | 3-6 m/s | Steepest slope the drone can follow |
| Ground speed | 3-15 m/s | Reaction time before terrain changes |
| Sensor update rate | 10-100 Hz | Smoothness of height corrections |
| Height filter strength | Platform-specific | Balance between smoothness and lag |
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.
| Symptom | Likely cause | Mitigation |
|---|---|---|
| Sudden climb over crops | Radar reading canopy instead of soil | Adjust target height for canopy |
| Descent over water | Rangefinder loses reflection | Fall back to DEM or barometer |
| Late climb on steep slope | Speed too high for climb rate | Reduce speed or raise clearance |
| Clipping trees in model mode | DEM shows bare earth only | Use a surface model or add margin |
| Height oscillation | Filter too aggressive or noisy sensor | Retune filter, check mounting |
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.