บารอมิเตอร์ airspeed และเซนเซอร์วัดระยะ

Barometric altitude, pitot tubes, rangefinders and their limitations

Last updated:

Why it matters

A drone needs three things that GNSS does not provide well enough: fine changes in height, speed relative to the air, and distance to the ground or an obstacle ahead. Three sensor groups answer them. The barometer measures air pressure and converts it to height. The airspeed sensor measures the pressure of air striking a pitot tube. The rangefinder times a wave's round trip.

All three rely on the properties of air or of waves travelling through it, so their readings depend on temperature, weather and mounting. Users who understand these limits know when to trust a reading and when the state estimator should lean on another source.

Barometers

The barometer on a flight controller is a MEMS device with a thin membrane that deflects with pressure; on-chip circuitry reads the deflection and compensates for temperature. Pressure is converted to height using a standard atmosphere, a model of average air. The 1976 U.S. Standard Atmosphere sets sea-level values of p0 = 101,325 Pa and T0 = 288.15 K, with temperature falling 6.5 K per kilometre. Near sea level, 1 hPa of pressure corresponds to about 8.3–8.4 m of height.

Datasheet figures must be read carefully. Bosch's BMP390 datasheet lists three values with different meanings:

  • Relative accuracy of ±3 Pa, about ±0.25 m: the accuracy of pressure changes, which is what a drone actually uses, since the flight controller works with height above take-off.
  • Absolute accuracy of typically ±50 Pa, about ±4 m, so it is not suitable as height above sea level on its own.
  • Temperature coefficient of offset, a mean of ±0.6 Pa/K. If the board warms 10 K in flight, the reading may shift by about 6 Pa, half a metre.

Limits that are not on the datasheet matter just as much. Weather can move pressure by several hectopascals within hours, propeller wash and wind entering the sensor port add dynamic pressure, and sunlight heats the board. Barometers are therefore usually covered with foam and shaded.

Example 1: a hot day makes barometric height read low

Take-off is at 1,008.0 hPa and the sensor later reads 1,001.2 hPa. The standard-atmosphere formula gives 57.0 m above take-off, but it assumes air at about 15 °C. If the layer is actually at 35 °C, the air is thinner and each hectopascal spans more height. The isothermal height equation Δz = (RT/g) ln(p1/p2), with R = 287.05 J/(kg·K) and g = 9.80665 m/s2, gives:

  • At 35 °C (308.15 K): Δz ≈ 61.1 m
  • At 25 °C (298.15 K): Δz ≈ 59.1 m

On a hot day the standard formula reads about 7% low; at a 120 m survey height that is roughly 8 m. The error is a scale error, not a fixed offset, which is why a state estimator that also uses GNSS helps, and why height-critical work, such as imaging to a planned GSD, should be checked against another reference.

Airspeed from a pitot tube

A pitot-static tube has a forward-facing port that senses total pressure and side ports that sense static pressure. A differential pressure sensor measures the difference, the dynamic pressure q = ½ρv2. Computed with the standard density of 1.225 kg/m3 it gives indicated airspeed (IAS); true airspeed (TAS) needs the actual density.

In ArduPilot the pressure-to-speed relationship is tuned with ARSPD_RATIO, which the documentation says defaults to about 2.0, with the correct value depending on how well the sensor is placed on the aircraft. The documentation stresses covering the pitot tube at power-up, because a bad zero calibration makes reported airspeed too high, and notes that a healthy sensor fluctuates slightly on the ground: a reading stuck at exactly zero signals a problem.

The key limitation of a pitot is sensitivity at low speed. Because q varies with the square of speed, the differential pressure is tiny at low speed, so a small sensor error becomes a large speed error.

Example 2: a 1 Pa error at different speeds

Assume a zero error of ±1 Pa and air density of 1.225 kg/m3.

True speedDynamic pressureSpeed read
3 m/s5.5 Pa2.71–3.26 m/s
5 m/s15.3 Pa4.83–5.16 m/s
10 m/s61.3 Pa9.92–10.08 m/s
20 m/s245 Pa19.96–20.04 m/s

At 20 m/s the error is only 0.2%, but at 3 m/s it is almost 10%. Airspeed sensing therefore suits fixed-wing aircraft flying well above stall speed, and makes a poor primary sensor for slow multirotors. Mount the pitot in clean air, away from propeller wash and the fuselage surface.

Rangefinders

A rangefinder times a wave's round trip: distance d = ct/2, where c is the wave speed.

  • Laser time-of-flight uses the speed of light, which barely depends on the air. The beam is narrow and the range long, but dark absorbing surfaces, water and bright sunlight can shorten maximum range or defeat the measurement.
  • Ultrasonic sensors use the speed of sound, which, as NASA Glenn explains, depends on temperature as a = √(γRT). They are cheap and short-range with a wide beam, and propeller noise can interfere.
  • Millimetre-wave radar tolerates dust, fog and sunlight, which suits agricultural drones flying low over crops. See the knowledge unit on LiDAR and radar.

Beam width sets the area being measured. At 3 m, a 30° beam (assumed for ultrasonic) covers a circle about 1.6 m wide, while a 2° beam (assumed for a laser) covers only about 0.10 m. A wide beam notices obstacles off to the side but cannot say where they are; a narrow beam locates them precisely but may slip through a gap between branches. When the aircraft tilts by θ over flat ground, height is the measured range times cos θ, so the flight controller must know the sensor's mounting orientation.

Common pitfalls

  • Confusing absolute and relative accuracy on a barometer datasheet.
  • Trusting barometric height over a long mission without allowing for weather-driven pressure change and temperature effects.
  • Letting propeller wash or sunlight reach the barometer directly.
  • Leaving the pitot uncovered at power-up, or mounting it in propeller wash.
  • Relying on airspeed at low speed, where relative error is very large.
  • Not compensating ultrasonic readings for temperature or laser readings for tilt, and not testing over the mission's real surfaces, such as water or crops.

Continue in the lessons

Key references

  1. COESA. (1976). U.S. standard atmosphere, 1976 (NOAA-S/T 76-1562). NOAA, NASA, & U.S. Air Force. link
  2. Bosch Sensortec. (2021). BMP390 digital pressure sensor datasheet (BST-BMP390-DS002-07, Rev. 1.7). link
  3. ArduPilot Dev Team. Calibrating an airspeed sensor. ArduPilot Plane documentation. link
  4. PX4 Autopilot. Airspeed calibration. PX4 user guide (main). link
  5. NASA Glenn Research Center. Speed of sound. Beginner's guide to aeronautics. link
  6. Fraden, J. (2016). Handbook of modern sensors: Physics, designs, and applications (5th ed.). Springer. link

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). บารอมิเตอร์ airspeed และเซนเซอร์วัดระยะ. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/new/sensors-baro-airspeed/