Rangefinder

Also known as: laser rangefinder

On this page 8

A rangefinder is a sensor that measures the distance from the drone to a surface or object by timing or comparing a reflected signal, most often a laser pulse, an ultrasonic burst or a radar wave. In the Navigation & sensors toolkit of Drones, a downward-facing rangefinder supplies true height above the ground, while a forward-facing unit measures range to a target or obstacle.

Unlike a barometer, which estimates altitude from air pressure relative to the takeoff point, a rangefinder reports the actual gap to whatever lies below or ahead. That makes it essential for terrain following, precision landing and low-altitude flight, and it is a building block of many obstacle sensing and surveying systems.

How a drone rangefinder measures distance

Most drone rangefinders rely on time of flight: the sensor emits a pulse, detects its reflection and converts the round-trip time into distance using the known propagation speed. A laser rangefinder uses light, so it must resolve nanosecond-scale intervals; an ultrasonic sensor uses sound, which travels about a million times slower and is easier to time but more affected by temperature and wind.

Some compact laser modules use phase comparison instead of single pulses, modulating a continuous beam and measuring the phase shift of the return. Radar altimeters typically use frequency-modulated continuous wave signals, where the frequency difference between transmitted and received waves is proportional to range.

Each reading describes a single point or a narrow cone directly in the sensor’s line of sight. The flight controller fuses these readings with inertial data, the barometer and GNSS to estimate height and vertical speed.

Types of rangefinders used on drones

Four sensing technologies dominate drone rangefinders, and each has a distinct range and weakness. The table compares their typical characteristics on small and medium unmanned aircraft.

TypeTypical rangeStrengthMain weakness
Ultrasonic sensor0.2-7 mCheap and lightNoise, wind and soft surfaces
Infrared time-of-flight0.05-4 mTiny and low powerSunlight saturation
Single-beam lidar0.1-40 m and beyondAccurate and narrow beamFails on water and glass
Radar altimeter0.5-50 m or moreWorks in dust, fog and darknessWider beam and higher mass
Common rangefinder technologies on drones

Survey and inspection platforms may also carry a long-range laser rangefinder on the gimbal, aligned with the camera, which measures the distance to a distant target and lets the system compute that target’s coordinates.

What rangefinder data enables in flight

Rangefinder data turns relative altitude estimates into reliable height above ground level, which several automated functions require. The following table links common features to the role the rangefinder plays.

FunctionRole of the rangefinderTypical orientation
Terrain followingHolds constant height over slopesDownward
Precision landingControls final descent and touchdownDownward
Agricultural sprayingKeeps nozzles at a set height over cropsDownward or angled
Indoor hoverStabilizes altitude without GNSSDownward
Target geolocationMeasures range to a distant pointForward on the gimbal
Flight functions that depend on rangefinder readings

Downward rangefinders also improve optical flow estimates. An optical flow sensor sees motion in pixels per second, and the flight controller needs the exact distance to the ground to convert that into meters per second.

Rangefinder compared with other height sources

A drone usually combines several height sources because no single sensor is reliable everywhere. The rangefinder is the most accurate close to the ground but the least useful at high altitude.

SourceWhat it measuresBest use
RangefinderDistance to the surface below or aheadLow altitude and landing
BarometerPressure altitude relative to takeoffGeneral altitude hold
GNSS altitudeHeight relative to the ellipsoidLong flights and mapping
Vision positioning systemDepth from stereo camerasObstacle sensing and indoor flight
Height and distance sources on a typical drone

The key distinction is reference surface. A barometer reading of 30 m means 30 m above the home point; above a hill it may mean only 5 m above the ground, which a rangefinder would report correctly.

Configuration and integration choices

Integrating a rangefinder requires correct mounting, orientation and filtering. The sensor must have a clear view without propeller blades, landing gear or cables in its beam, and its position relative to the center of gravity should be entered in the flight controller.

  • Set minimum and maximum valid range so readings outside the reliable window are rejected.
  • Apply tilt compensation, because a sensor tilted 20 degrees reads a slanted distance.
  • Choose a sample rate high enough for the planned speed and altitude changes.
  • Define a fallback to the barometer when readings become invalid.

Open-source autopilots such as ArduPilot and PX4 expose these parameters and allow several rangefinders at once, for example one downward and one forward, each with its own orientation setting.

Limitations and failure modes

Rangefinder errors are usually caused by the surface, not the sensor. Reflective, transparent or absorbing materials can return no signal, a weak signal or a false echo, and the autopilot may then act on wrong height data.

SymptomLikely causeRemedy
Sudden height jumps over waterSpecular reflection or absorptionUse radar or limit low flight over water
Dropouts in bright sunInfrared saturationUse a lidar or radar unit
Noisy readings over tall grassReturns from the canopy and soilFilter readings and raise the minimum height
False short readingsPropeller or leg in the beamRelocate the sensor
Typical rangefinder problems and remedies

Pilots should remember that terrain following reacts only to what the sensor sees. A downward sensor cannot detect a power line or a cliff ahead, so forward obstacle sensing remains a separate requirement.

Put simply

A rangefinder is a measuring tape made of light, sound or radio waves. It sends a signal out. The signal bounces off the ground or an object. The sensor times the return and works out the distance.

This helps a drone know how high it really is above the ground. Air pressure only tells it how high it is compared with where it took off. Over hills, fields and rooftops, the rangefinder gives the honest answer.

In practice

An agricultural operator sprays a vineyard planted on a slope that rises about 40 m from bottom to top. The spraying drone carries a downward radar rangefinder and is set to stay 2.5 m above the vine canopy at 4 m/s. A barometer alone would hold a constant altitude relative to the takeoff point, leaving the nozzles far too high at the bottom and dangerously low near the top.

With terrain following active, the flight controller adjusts height many times per second. The flight log shows the measured height varying by only about 0.3 m across the whole slope, and the spray pattern stays even from row to row. When the drone crosses a small pond, the radar keeps reporting valid readings where an infrared sensor would likely have dropped out, so the mission completes without manual intervention.