UAV testing and evidence analysis
Write the criteria before testing, choose logs that match the question, and interpret statistics within the limits of the data.
Start from a measurable requirement
Separate the requirement, acceptance criterion, procedure and evidence. For example, “a time of not less than 20 minutes under the specified payload and environment” must also state how the timing starts and stops and the number of runs. “Not less than” and “not more than” give the test different directions.
Order of verification
Start with software simulation → bench → integration → controlled field test according to readiness and the appropriate test method. Each stage answers a different question. A simulator is not an environmental/EMC certification result, and FEM results are not evidence about the actual hardware.
Choose logs that match the question
ArduPilot DataFlash/TLOG and PX4 ULog are not the same file type. pyulog is used to read ULog; MAVExplorer and WebTools provide paths for ArduPilot. Check the topics and sample rate before expecting to see a complete IMU spectrum or PID analysis.
FilterReview/PIDReview help read the response and the effect of settings offline. Values that look good in the tool must still be verified on the target system. Do not claim that SITL has the same vibration as a real aircraft.
Statistics and uncertainty
The mean indicates the centre of the data but does not describe its full spread. Report the number of runs, mean, SD and confidence interval as the question requires, together with the environment and the measurement-instrument uncertainty.
A one-sided test suits a question whose direction is fixed in advance, whereas a two-sided test asks about a difference in either direction. Do not choose the method after seeing the results in order to pass the criterion.
A confidence interval of the mean and a tolerance interval answer different questions. Data supporting that the mean exceeds the criterion do not yet guarantee that most flights, or every flight, pass.
F37: Mean, spread and confidence interval
Basic to applied level · Question: how widely do repeatedly measured flight times spread, and how uncertain is the mean? Collect experimental units as independent flights under the same conditions before calculating. A thousand log points within one flight are not a thousand independent flights.
x̄ = Σxi / n
s = √[Σ(xi − x̄)2 / (n − 1)]
SE = s / √n
CI95% = x̄ ± t0.975, n−1 × SE
Read as: the mean is the sum divided by the number of runs; the sample standard deviation s uses the sum of squared deviations from the mean divided by n−1, then the square root; the confidence interval of the mean uses the t value multiplied by the standard error as the distance added to and subtracted from the mean, according to NIST, Confidence Limits for the Mean (S34, checked 26 September 2026)
| Variable | Meaning and unit | Condition/source of value |
|---|---|---|
| xᵢ | Flight time of each flight, min in this problem | Values measured with the same start/end definition; missing data must be reported |
| n | Number of flights, dimensionless | Integer ≥ 2 for s and this CI |
| x̄, s | Sample mean and SD, min | Calculated from the same raw data |
| SE | Standard error of the mean, min | s/√n under independent experimental units |
| t | Student t quantile, dimensionless | Cumulative probability 0.975, df = n−1 for a two-sided 95% CI |
| CI | Lower and upper bounds of the mean, min | An inferential interval under assumptions |
Image description: three data points lie at 20, 22 and 24 minutes, with the mean at 22 minutes. The 95% confidence-interval line for the mean runs from about 17.03 to 26.97 minutes, so it is wider than the range of the data in this small sample. Neither the old nor the new image should be read as meaning that a CI must always be narrower than a tolerance interval, because the two intervals use different definitions and parameters.
Step-by-step worked example
Assume three synthetic flight times of 20, 22 and 24 min as independent samples from a normal population under constant conditions. Three values are too few to confirm the distribution assumption, so they are used only to practise the formula.
- n = 3 and x̄ = (20+22+24)/3 = 22 min
- The deviations from the mean are −2, 0, 2 min; the sum of squares = 4+0+4 = 8 min²
- s = √[8/(3−1)] = 2 min and SE = 2/√3 ≈ 1.154701 min
- df = 2, using t0.975,2 ≈ 4.30265273, gives a half-width of 4.30265273×2/√3 ≈ 4.968275 min
- Two-sided 95% CI ≈ [17.031725, 26.968275] min or [17.03, 26.97] min when rounded to two decimal places
The t value differs from the 1.96 of the normal approximation used when appropriate conditions are known. Do not automatically substitute 1.96 when there are only three flights. Check the answer with SciPy ttest_1samp and confidence_interval (S39) by specifying the same data and confidence_level.
Scope of interpretation: this t method gives a CI at the specified level under independent samples from a normal population; data with a time trend, battery degradation, or flights under different conditions may make it impossible to apply this method directly. The 95% means the proportion of intervals that cover the population mean when the random process is repeated; it is not the probability that the next flight falls in the interval, nor a guarantee that every flight passes the criterion. If you need to cover a proportion of the population, study the NIST, Tolerance Intervals (S35) method separately.
Check the mean and SD with the statistics calculator at the end of the chapter by entering 20, 22, 24. The worked example uses a high-precision t value of about 4.30265273, while the tool uses a table value rounded to 4.303 for df = 2, giving a CI of about [17.031324, 26.968676] min, which differs from the chapter by about 0.000401 min at each bound; rounded to two decimal places it gives the same [17.03, 26.97] min. This difference comes from rounding the t value, not from a different formula or data set. The tool supports sample sizes within the stated table, so check df before comparing results.
Exercise: add one minute to every flight
Change the data to 21, 23, 25 min, then find the mean, s and 95% CI using the same t value. A tolerance of no more than 0.001 min on the interval bounds is accepted.
Show answer F37
The mean is 23 min; the deviations from the mean are still −2, 0, 2, so s = 2 min and SE ≈ 1.154701 min as before. The CI shifts by one minute across the whole interval to [18.031725, 27.968275] min. The interval does not narrow because the number of flights and the spread remain the same.
Use the existing CSV experiment log template to record conditions and experimental units alongside the calculated results, and also report data exclusions and instrument uncertainty; with n = 1 the mean can be calculated, but s and this CI cannot.
Recommended record template
| Data field | Example of what to record |
|---|---|
| Test ID/requirement | The claim to be proven and the direction of the criterion |
| Environment | payload, battery, wind, temperature |
| Configuration | firmware, parameters, model/version |
| Raw evidence | log/CSV and units |
| Analysis | Calculation method, CI assumptions and outliers |
| Conclusion | What can be supported and the limitations |
Inspect the aircraft before and after operations
Readiness inspection is part of the evidence, not merely ticking every box. Use the manual for the model in use to define the details: mounting points, propellers, batteries, sensors and maintenance items. If an abnormality is found that cannot yet be assessed, mark it as pending inspection; do not change the status to serviceable just because the aircraft powers on.
| Phase | Items to inspect and record |
|---|---|
| Before operations | Model/airframe serial number, configuration, history of open defects, condition of components and payload mounting |
| Before starting the test | Site, people, weather, power, communication conditions and stop criteria according to the plan |
| After operations | Damage or abnormal heat, battery condition, operating hours/cycles, logs and observations |
| Before returning to service | Corrective action, responsible person, re-inspection results and confirmation according to the equipment procedure |
Bench inspection should handle power and rotating parts according to the manual; commanding the propellers to spin in the work area should not be used as a general inspection method. Battery or propeller life should not be set as a single number for every model.
Record defects so they are traceable
Record the date, equipment/model revision, symptom, conditions under which it was found, evidence, status and responsible person. Separate “symptom observed” from “cause analysed”; for example, vibration in a log does not yet confirm that it is caused by the propellers alone. After a fix, test the relevant conditions and reference the new result files before closing the item.
Computer exercise: create three hypothetical defect items, then link each item to a test ID, a re-inspection method and closure criteria. Another reviewer should be able to follow the evidence without asking the person who created the record.
Further reading and references
- Source document: DTI, Advanced prototype UAV testing
- ArduPilot WebTools
- SciPy one-sample t-test
- NIST confidence limits
- NIST tolerance intervals
- Download the CSV experiment log template
This content was compiled from documents kindly provided by DTI and the references above. Numerical examples are cases for learning. Read theacknowledgements and content sources
F11: Read the sample rate and frequency bins before reading a spectrum
| Variable | Meaning and unit, input → output | Range/source of value |
|---|---|---|
| fs, f | Sample rate and sinusoid frequency, Hz (input) | fs > 0, f ≥ 0; uniform sampling |
| N | Actual number of samples before zero padding (input) | Integer ≥ 2; read from a log with no missing points |
| f_N, Δf, f_alias | Nyquist limit, bin spacing, alias magnitude, Hz (output) | ≥ 0; Δf > 0 |
| α | EMA weight, dimensionless (input) | 0 < α ≤ 1; set by the experimenter |
| x_k, y_prev, y_k | Measured value, previous output and new output, signal units (input/output) | Finite and in the same unit; state the initial state |
Applied level · Question: could a frequency seen in the log come from a real signal at a higher frequency?
f_N = fs/2; Δf = fs/N; f_alias = |f − round(f/fs)fs|
y_k = αx_k + (1−α)y_(k−1)
round in the alias formula means the nearest integer; use the magnitude of a single real sinusoid frequency. NI explains frequency folding and filtering before the ADC. The fs/2 limit does not guarantee that a signal sampled right at the limit can be reconstructed at every phase; the band must be limited below the limit with allowance for the filter transition.
Δf refers to the bin arrangement of NumPy 2.0 fftfreq(N,d=1/fs) and is not the ability to resolve peaks, which depends on the recording length, window and noise. Zero padding adds display points but not real data. PSD has units of power per Hz, unlike an amplitude spectrum. The EMA equation is an example of averaging after sampling, so it cannot fix aliasing that has already occurred.
Substitution example
fs=200 Hz, N=1000 give f_N=100 Hz and Δf=0.2 Hz. The recording length N/fs is 5 s. If a 130 Hz sinusoid is received, an alias of |130−200|=70 Hz will appear. For one EMA step with α=0.25, x=10 and y_prev=2, y=0.25×10+0.75×2=4 signal units.
Exercise: change the values
Increase the recorded samples to N=2000 while keeping fs and the same one-step EMA data. Which values change?
Show answer F11
Δf=0.1 Hz and the length N/fs=10 s; f_N=100 Hz, alias=70 Hz and EMA=4 are unchanged. A tolerance of ±0.000001 is accepted. Increasing the recording length does not fix aliasing.
Reference: NI, Acquiring an Analog Signal, Nyquist Sampling Theorem and Aliasing (P3E04) · NumPy 2.0, numpy.fft.fftfreq (P3E05); checked 26 September 2026
Connecting knowledge to missions and data
Define the test mission, measurement method and criteria before starting, then record the conditions so that others can repeat it. Standard test methods are guidelines for measuring capability, not a certification that a learner meets the standard merely by reading or doing them once. Read the reference: NIST, Aerial Drone Tests
Comprehension practice: choose one skill, define the indicators and the reasons to terminate the test, and use a simulation before testing a real aircraft.
Read more: chapters that apply this knowledge in simulation · sources reviewed 26 September 2026
Download the basic formula answer-check set (JSON) · synthetic data with units for comparing your own calculations
Download the engineering and sensor formula practice set (CSV/JSON with answers) · synthetic data for practising calculations and checking assumptions
Try the mean, spread and confidence interval
Calculated in the browser; data are not sent off the device. Use it alongside the examples and assumptions in this lesson.
Use 2–31 independent test results in the same unit, assuming an approximately normal population and no bias. Uses t at df = n − 1 for a 95% CI of the mean; this is not an interval covering 95% of the next flights, and it does not check the assumptions automatically.
Uses the NIST Student’s t table 0.975 column rounded to three decimal places, so the interval is approximate. If all values are identical, a narrow interval does not confirm that the instrument has no error.