When a LiDAR drone holds a constant altitude over a ridge, the swath narrows, and gaps can open between neighboring lines. Over a valley the sensor sits farther from the ground, so the same pulses spread over a wider strip and density drops. The examples below use UgCS drone flight planning software, which accepts custom terrain and surface models.
Three types of drone terrain following
UgCS offers three types of terrain following. AGL and Smart AGL are calculated from an elevation model before the flight, and real-time terrain following, set as the Rangefinder altitude mode, reads the ground in flight with an altimeter.
For LiDAR over any terrain with relief, plan in AGL or Smart AGL. AMSL, which holds one altitude, suits flat sites, and real-time terrain following is built for flights a few meters above the ground.
AMSL keeps the sensor at a near-constant height only where the ground is close to flat, such as an airfield or a tidal flat. Drone LiDAR is usually flown high enough for a good elevation model to do the job, so for most LiDAR work the decision is between AGL and Smart AGL.
Smart AGL and real-time terrain following require a UgCS EXPERT or ENTERPRISE license.
AGL vs Smart AGL
Use AGL when the set height has to hold across the whole site, and Smart AGL when cliffs, pit walls or steep valley sides sit close to the route.
AGL measures height straight down. On a steep climb the drone can be exactly at its set height above the point below it while the slope ahead is much closer. Smart AGL checks the distance to the terrain ahead and, since UgCS 6.0, to the sides of the route as well, then raises waypoints until that distance matches the set height.
The cost is altitude. Wherever Smart AGL lifts the route, the drone flies higher than planned, and point density on that stretch drops. On rolling farmland or gently sloping forest, AGL keeps density even across the site. On open-pit benches, quarry faces or mountain corridors, Smart AGL is the safer default, and the elevation profile shows where it lifted the route so you can check density there against the project spec.
Altitude mode is set per route segment, so one mission can fly the flat part of a site in AGL and switch to Smart AGL for a segment along a slope. Since UgCS 6.3, area survey segments start in AGL by default.
Real-time terrain following
Real-time terrain following is the choice when the sensor flies a meter or two above the ground. At that height, grass, rocks and small ridges matter more than any elevation model can show, so the drone reads its height from a radar or laser altimeter in flight.
In UgCS this is the Rangefinder altitude mode. It needs an onboard computer and an altimeter, such as SkyHub with a radar altimeter, and is supported on ArduPilot drones and the DJI M300, M350 and M400. With SkyHub, a drone can follow the terrain as low as 1 m above the ground, which suits ground-penetrating radar, magnetometers and echo sounders.
A route can mix modes, for example AGL for the transit and Rangefinder for the survey area, as long as every altitude on the route sits within the altimeter's minimum and maximum range. Water, dense vegetation and reflective surfaces can affect altimeter readings, so test the setup over the site first. Kristaps Brass, UgCS product owner, compares real-time terrain following with high-resolution elevation models in more detail.
Terrain following resolution and trajectory smoothing
AGL tolerance sets how closely the route tracks the elevation model, and its default in UgCS is 3 m. A lower value adds waypoints and keeps the drone nearer the set height. A higher value gives fewer waypoints and a looser fit. The tolerance can only follow the model you plan against, so a 1 m tolerance over 30 m elevation data tracks a smoothed version of the ground.
The parts of the route between survey lines matter too. Before UgCS 6.3, the main lines followed the terrain while side passes and overshoots used a trajectory designed to save battery. UgCS 6.3 adds a Follow terrain on side passes option, on by default, for AGL survey segments, including Large Project sub-areas, so side passes and overshoots follow the terrain as well. With the option off, the drone keeps the battery-saving path, for example when you'd rather it not descend a hillside on an overshoot. Since UgCS 6.1, waypoint segments can also use AGL Terrain Following, so the transit to and from the survey area follows the ground.
Trajectory smoothing evens out Area Scan, Photogrammetry and LiDAR Area routes further. Max Slope limits how steeply the route climbs or descends, and Minimal Gap lets the drone fly over small depressions such as ravines without diving into each one. Skipping those dips also skips the descents and climbs that come with them, which saves battery, and the steadier path protects sensitive payloads such as magnetometers and LiDAR. Turn it on under Configuration, Experimental Features.
SRTM vs USGS vs your own terrain model
Plan against the most detailed bare-earth model available for the site. UgCS includes global SRTM data at about 30 m and USGS data at about 10 m for the US, and it imports your own.
Coarse data smooths the terrain. In the UgCS 6.3 LiDAR webinar, a side-by-side view of the same US route showed the valleys shallower in SRTM than in the USGS model, which means a route planned on SRTM flies higher above the real valley floor than the set altitude. A DTM from an earlier LiDAR or photogrammetry flight over the site, or from a national mapping agency, fits the real ground far more closely. Imported files can be used offline, and the order of the elevation layers sets which one takes priority where they overlap.
Check the vertical datum before you import. Built-in SRTM heights are referenced to EGM96, and UgCS does not convert imported heights, so a model in ellipsoidal heights or a national datum such as NAVD88 will sit offset from the built-in data, with a visible step where the two meet. Ellipsoidal and EGM96 heights can differ by tens of meters, so convert the file to EGM96 first.
DTM vs DSM and the safe height over terrain
UgCS calculates the route from the DTM and uses the DSM only to show clearance, so bare-earth data goes in the DTM field and data with trees and buildings goes in the DSM field.
A digital terrain model (DTM) holds the bare ground. A digital surface model (DSM) adds whatever stands on it, such as canopy and buildings. Because AGL height is measured from the DTM, the drone's clearance over a forest is the set height minus the tree height. The DSM shows you that number along the whole route before the flight.
Load only real surface data into the DSM field. Putting a second terrain model there, such as the built-in SRTM, shows the ground twice and says nothing about obstacles. A DSM from an earlier photogrammetry or LiDAR flight is the usual source. DSM support requires a UgCS EXPERT or ENTERPRISE license.
The drone profile sets one more limit. Its Safe height over terrain is the minimum distance to terrain the drone may fly, and when a paused mission resumes, the drone returns to the pause point at that height. UgCS ignores the setting in Rangefinder segments, where the altimeter holds the height.
Checking the route in the elevation profile
Open the elevation profile from the UgCS top bar before uploading, and move the cursor along the route. A marker follows on the map, and the profile reads out AMSL height, AGL height and, with a DSM loaded, height above the surface at that point. The profile also gives estimated flight time, route length and the altitude range of the route.
On a LiDAR route, it's worth checking:
- the lowest height above the surface, which shows the tightest canopy or structure clearance
- stretches where Smart AGL lifted the route above the set height, where density will be lower
- the edges of an imported DTM, where a vertical datum mismatch shows up as a step in the terrain line
- flight time per sub-area against the battery you'll fly it on
Matching the setup to the site
The steeper and more changeable the site, the more it needs Smart AGL and a site-specific DTM. Surveys flown a few meters above the ground need real-time terrain following.
Pits and quarries change between surveys, so a DTM from the site's last flight is a better base than any public dataset. In valleys, coarse public data makes the floor look shallower than it is.
How UgCS terrain following works on DJI drones
When a DJI drone such as the M350 or M400 flies a UgCS route, it follows the altitudes UgCS calculated from your elevation data, and DJI's own real-time terrain following isn't used. Obstacle sensing keeps working, so the drone still stops if it detects an obstacle.
How the route reaches the drone matters. A route imported into DJI Pilot 2 flies its altitudes relative to the first point of the route, so the drone has to take off exactly at the takeoff point set in the plan. Taking off from a valley below that point lowers the whole route by the height difference. Flown through the UgCS Companion app, the route keeps correct altitudes wherever the drone takes off.

