LiDAR เรดาร์ และเซนเซอร์หลบหลีกสิ่งกีดขวาง

Time-of-flight principles, point clouds, radar and sensor selection

Last updated:

Why it matters

A drone flying near structures, trees or power lines must know what is around it and how far away. A survey drone must measure the three-dimensional shape of an area, including the ground beneath vegetation. Both jobs use the same sensor family: active sensors that emit their own energy and receive what comes back, namely LiDAR, radar, ultrasonic sensors and some depth cameras. Because they do not rely on sunlight, they work day and night.

This page explains how each type measures, what data it produces, and how to choose among them, both for mapping and for obstacle avoidance.

Time of flight

A time-of-flight (ToF) sensor sends a pulse and times its return. Distance is d = ct/2, where c is the wave speed; the factor of two is because the wave travels out and back. For light, c ≈ 3 × 108 m/s. The hard part is timing: 1 cm of range corresponds to a round trip of only about 67 ps (picoseconds), so LiDAR timing circuits must be extremely precise.

LiDAR (light detection and ranging) fires tens to hundreds of thousands of laser pulses per second and steers them with a spinning head, an oscillating mirror, or a solid-state design with no moving parts. The result is a point cloud: each point has three-dimensional coordinates and a return intensity. One pulse can produce multiple returns, for example the first from a treetop and the last from the ground, so LiDAR measures both vegetation height and the ground beneath it in a single flight, which photographs cannot.

Because LiDAR uses lasers, check the laser class under IEC 60825-1 in the maker's documentation before operating near people, especially during ground tests where someone might look into the beam at close range.

Ground points need accurate attitude

LiDAR measures range relative to the sensor. Turning that into ground coordinates requires GNSS position and IMU attitude at the instant of every pulse. A small attitude error becomes a position error that grows with range.

Example 1: how far does a 0.1° error move a point?

Horizontal error is approximately range × tan(angle error).

Angle errorAt 60 mAt 100 m
0.1°0.10 m0.17 m
0.5°0.52 m0.87 m

An error of just 0.5°, perfectly acceptable for flying, shifts a point at 100 m by almost 0.9 m. That is why mapping LiDAR systems use a higher-grade IMU than the flight controller's, calibrate the mounting angles between LiDAR and IMU, and synchronise the clocks of every sensor.

Millimetre-wave radar

Radar uses radio waves. Most small drone radars are FMCW (frequency-modulated continuous wave) millimetre-wave devices that transmit a linearly rising frequency sweep called a chirp. Mixing the echo with the signal being transmitted yields a beat frequency proportional to range. According to Texas Instruments' SPYY005A, range resolution depends only on chirp bandwidth, ΔR = c/(2B): 4 GHz of bandwidth gives about 3.75 cm. Radar can also measure radial velocity from the phase change between chirps.

Radar's strengths are that it sees through dust, smoke, fog, light rain and spray drift and is unaffected by sunlight, which is why agricultural drones flying low over crops use it for height and obstacle sensing. Its weaknesses are angular resolution far coarser than LiDAR's (it can say that something is at a given range, but gives only a rough shape), and strong metallic reflectors that can mask other objects or cause multipath echoes.

Choosing obstacle-avoidance sensors

TypeStrengthsWeaknesses
UltrasonicCheap; detects glass and transparent objectsShort range, wide beam, speed of sound depends on temperature, propeller noise interferes
Single-beam laser ToFAccurate, narrow beam, lightOne direction only; dark surfaces and bright sun reduce range
360° scanning LiDARAll-round, detailed, usable for mappingHigher cost and weight; dust and water droplets interfere
Depth cameraWhole-frame depth image, moderate costNeeds light or textured surfaces; limited range
Millimetre-wave radarTolerates dust, fog and sun; measures velocityCoarse angular resolution; multipath

No single sensor sees everything. Thin wires, bare twigs, glass and water surfaces are missed by several types, so combining sensors covers each one's blind spots. Range data from many directions is usually merged into an occupancy grid, which divides space into small cells that each hold the probability of an obstacle (Siegwart et al., 2011).

Flight controllers can use this data. ArduPilot's documentation lists proximity sensors, rangefinders and depth cameras as supported avoidance inputs. PX4's Collision Prevention divides the surroundings into 72 sectors, takes data from rangefinders or from a companion computer via OBSTACLE_DISTANCE messages, and sets the stand-off distance with CP_DIST, measured from the sensor, not from the propeller tips, so the setting must allow for the airframe's size.

Example 2: how far must the sensor see?

A drone approaches a wall at 8 m/s. Total sensing and response delay is 0.3 s (PX4 documentation gives 0.1–0.5 s as typical velocity-tracking delay), it can decelerate at 3 m/s2, and it must keep 3 m clear. Other values are assumed.

  • Distance covered during the delay: 8 × 0.3 = 2.4 m
  • Braking distance: 82 / (2 × 3) ≈ 10.7 m
  • With the stand-off, the wall must be detected from about 16.1 m

If the sensor detects a dark wall at only 12 m, the highest speed that still stops with 3 m to spare is about 6.5 m/s. Set flight speed from the range the sensor actually achieves on the objects in the area, not from the datasheet maximum.

Common pitfalls

  • Using the datasheet's maximum range, usually measured on a highly reflective target, instead of real range on mission objects.
  • Assuming avoidance sees everything. Power lines, thin branches, glass and water may not appear in the data.
  • Setting stand-off distance without allowing for airframe size. Range is measured from the sensor, not the propeller tips.
  • Skipping time synchronisation and mounting-angle calibration between LiDAR, GNSS and IMU, so point clouds from different passes do not align.
  • Using LiDAR in dust or spray without testing first, when radar may suit better.
  • Not checking laser class before testing near people.

Continue in the lessons

Key references

  1. Fraden, J. (2016). Handbook of modern sensors: Physics, designs, and applications (5th ed.). Springer. link
  2. Siegwart, R., Nourbakhsh, I. R., & Scaramuzza, D. (2011). Introduction to autonomous mobile robots (2nd ed.). MIT Press. link
  3. Iovescu, C., & Rao, S. (2020). The fundamentals of millimeter wave radar sensors (SPYY005A). Texas Instruments. link
  4. International Electrotechnical Commission. (2014). Safety of laser products – Part 1: Equipment classification and requirements (IEC 60825-1:2014, Ed. 3.0). link
  5. PX4 Autopilot. Collision prevention. PX4 user guide (main). link
  6. ArduPilot Dev Team. Object avoidance. ArduPilot Copter documentation. link

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). LiDAR เรดาร์ และเซนเซอร์หลบหลีกสิ่งกีดขวาง. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/new/sensors-lidar-radar/