การสอบเทียบและความไม่แน่นอนของการวัด

Error models, uncertainty budgets and calibration procedures

Last updated:

Why it matters

Every number a drone decides with comes from a measurement. Battery voltage says when to return, acceleration gives attitude, pressure gives height. If an instrument reads off, the system makes wrong decisions with full confidence. Calibration compares an instrument's readings with a reference of known uncertainty and uses the result to correct the readings. Measurement uncertainty is the number that says how far the result may plausibly be from the true value.

A complete measurement result therefore always has two parts, a value and its uncertainty: 22.41 V ± 0.16 V, for example. Someone who sees only 22.41 V cannot tell whether to trust the second decimal place. This page uses the vocabulary of the International Vocabulary of Metrology (VIM, JCGM 200) and the evaluation method of the GUM (JCGM 100:2008, with Amendment 1 of 2026 on non-linear measurement models), the framework used by calibration laboratories worldwide.

Terms to keep apart

  • Error is the measured value minus the true value. We never know the true value exactly, so we never know the error exactly, but we can estimate its bounds.
  • Accuracy is closeness to the true value, a qualitative concept. Precision is closeness among repeated readings. An instrument can be very precise and not accurate at all if it has a constant offset.
  • Resolution is the smallest change an instrument can display. It is not accuracy: a 12-bit ADC resolves finely, yet may be tens of steps off because its reference voltage is off.
  • Metrological traceability links a result to a standard through a documented chain of calibrations, each with a stated uncertainty. That is why laboratory reference instruments need an unexpired calibration certificate.

An error model

Most sensor errors fit a simple model, y = (1 + s)x + b + n, where x is the true value and y the reading, with these parts (Fraden, 2016):

  • Offset or bias b: the reading when the true value is zero. Calibration corrects it.
  • Scale factor error s: the slope's departure from 1. Calibration corrects it.
  • Nonlinearity: what a straight line cannot describe. Corrected with a quadratic or a lookup table.
  • Random noise n: scatter on every reading. Calibration cannot remove it; averaging reduces it.
  • Temperature effects and drift: b and s change with temperature and time, so calibration must be repeated periodically.
  • Hysteresis: the reading depends on whether the true value was rising or falling, so calibrate in both directions.

Example 1: calibrating an accelerometer axis with gravity

ArduPilot's six-position accelerometer calibration uses gravity as the reference. With the airframe still, an axis pointing up and then down should read +g and −g. Suppose the Z axis reads +9.95 m/s2 and −9.63 m/s2, with g = 9.80665 m/s2.

  • Bias b = (9.95 + (−9.63)) / 2 = 0.16 m/s2
  • Scale 1 + s = (9.95 − (−9.63)) / (2 × 9.80665) ≈ 0.9983
  • Corrected x = (y − b) / (1 + s) gives +9.807 and −9.807 m/s2, matching the reference.

Left uncorrected, a 0.16 m/s2 bias on a horizontal axis makes the system think the airframe is tilted about 0.9° (atan(0.16/9.81)). Note that the method assumes local gravity equals the standard value and that the airframe is truly still in every position.

Evaluating uncertainty the GUM way

The GUM evaluates uncertainty components in two ways.

  • Type A: from statistics of repeated readings. With n readings and standard deviation s, the standard uncertainty of the mean is s/√n.
  • Type B: from other information, such as instrument specifications, certificates or resolution. If a value is only known to lie within ±a, with every value in that range equally likely (a rectangular distribution), the standard uncertainty is a/√3; an ADC's step size LSB contributes LSB/√12.

Each component is converted to the units of the result through its sensitivity coefficient ci, then combined as a root sum of squares, uc = √(Σ ci2 ui2), when inputs are uncorrelated. The expanded uncertainty is U = k uc, usually with k = 2, giving roughly 95% coverage when the distribution is close to normal. The table that collects all components is the uncertainty budget.

A sensitivity coefficient in practice: a 4–20 mA transmitter spanning 0–100 °C has c = 100/16 = 6.25 °C/mA. If the meter reading the current has 0.02 mA uncertainty, its effect on temperature is 0.125 °C.

Example 2: uncertainty budget for a battery voltage measurement

A team calibrates a power module's voltage multiplier against a multimeter reading 22.41 V. The meter specification and other values are assumed.

SourceTypeWorkingu (V)Share of uc2
Reference multimeter ±(0.5% + 2 digits)B0.132 / √30.076287%
Divider temperature effect ±0.05 VB0.05 / √30.028912.5%
10 repeat readings, s = 0.015 VA0.015 / √100.00470.3%
ADC resolution, 8.86 mV per stepB0.00886 / √120.00260.1%

uc ≈ 0.082 V and U = 2uc ≈ 0.16 V, about 0.027 V per cell on a 6S pack. Two lessons follow. First, the reference meter accounts for 87% of the uncertainty, so a finer ADC would barely help; a better reference would. Second, failsafe thresholds set less than 0.16 V apart cannot be told apart reliably with this measurement.

A sound calibration procedure

  1. Choose a reference with much lower uncertainty than the device under calibration and an unexpired certificate.
  2. Control conditions. Let temperature settle; record temperature and time for every run.
  3. Measure several points across the working range, rising and falling, repeating each point.
  4. Fit a correction by least squares and inspect the residuals for patterns. A curved pattern means a straight line is not enough.
  5. Verify at independent points not used in the fit. Errors must fall within the evaluated uncertainty.
  6. Record everything and set a recalibration interval: who, when, which reference, results and uncertainty.

Common pitfalls

  • Treating resolution as accuracy, or reporting more decimals than the uncertainty supports.
  • Using a reference no better than the device under test, or one with an expired certificate.
  • Two-point calibration without checking nonlinearity in between.
  • Fitting and verifying with the same points.
  • Ignoring temperature: calibrating in an air-conditioned lab, then flying in full sun.
  • Adding uncertainties directly instead of by root sum of squares, or combining them without sensitivity coefficients.

Continue in the lessons

Key references

  1. JCGM. (2008). Evaluation of measurement data — Guide to the expression of uncertainty in measurement (JCGM 100:2008). BIPM. link
  2. JCGM. (2012). International vocabulary of metrology — Basic and general concepts and associated terms (VIM, JCGM 200:2012). BIPM. link
  3. Fraden, J. (2016). Handbook of modern sensors: Physics, designs, and applications (5th ed.). Springer. link
  4. Montgomery, D. C., & Runger, G. C. (2018). Applied statistics and probability for engineers (7th ed.). Wiley. link
  5. NIST/SEMATECH. e-Handbook of statistical methods. National Institute of Standards and Technology. link
  6. ArduPilot Dev Team. Accelerometer calibration. ArduPilot Copter documentation. link

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). การสอบเทียบและความไม่แน่นอนของการวัด. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/new/sensors-calibration/