Module 5/5 · Weeks 13–15 · 27 h

Configuration and control

UAT 302 UAS Installation and System Integration

About 95 minDraft, awaiting reviewLast updated 30 September 2026

Lesson

By the end of this module you will be able to

  1. Turn safety requirements into rules that check flight controller parameters
  2. Check the parameter file with a program before every flight
  3. Create SHA-256 fingerprints of configuration items to record a baseline and detect changes
  4. Produce configuration documentation linked to test evidence
  5. Install radio antennas correctly and prove the link with a range check and a margin calculation

Prerequisites: UAT 302 Modules 1–4 · UAT 206 Module 4 (autopilots and flight modes)

Why this matters

A drone with every wire correct can still be dangerous if its flight controller parameters are wrong, for example a failsafe disabled during bench testing and never re-enabled, or a return-to-launch height lower than the trees around the field. UAT 206 covered comparing two parameter files. This module adds checking parameters against requirements and identifying the configuration by fingerprint. The drone knowledge base’s unit on version and configuration control stresses that the configuration is what makes test results interpretable, and its unit on linking systems to evidence recommends pairing measurable requirements with check methods and evidence.

From requirements to parameter rules

The team’s safety requirements become rules that a program can check. Parameter names and units must match the documentation for the firmware version in use. This example uses the ArduPilot Copter 4.6.3 parameter list:

  • BATT_LOW_VOLT and BATT_CRT_VOLT: low and critical battery voltages in volts (0 = off), with BATT_FS_LOW_ACT and BATT_FS_CRT_ACT setting the action when reached (0 warn only, 1 land, 2 RTL)
  • FS_THR_ENABLE: failsafe on loss of the RC signal (0 = off), and FS_GCS_ENABLE: failsafe when the GCS link is lost for more than 5 seconds
  • FENCE_ENABLE and FENCE_ALT_MAX: the virtual fence and its altitude ceiling in metres
  • RTL_ALT: the return-to-launch height, in centimetres in Copter 4.6.3, while Copter 4.7 (current stable 4.7.1, September 2026) replaces it with RTL_ALT_M in metres. This is why check rules must be tied to the firmware version

Example 1 Checking the parameter file against requirements

The team’s requirements: for a 6S battery, the low level at 3.5 V per cell and the critical level at 3.3 V per cell, and both levels must command more than a warning; RC and GCS failsafes must be on; the fence must be on with a ceiling of no more than 90 m; and the RTL height must be at least 5 m above the tallest trees around the field, which are 25 m.

params = {   # read from the flight controller's .param file (hypothetical values)
    "BATT_LOW_VOLT": 21.0, "BATT_CRT_VOLT": 19.8, "BATT_FS_LOW_ACT": 2, "BATT_FS_CRT_ACT": 1,
    "FS_THR_ENABLE": 1, "FS_GCS_ENABLE": 0, "FENCE_ENABLE": 1, "FENCE_ALT_MAX": 100,
    "RTL_ALT": 2500,
}
CELLS, TREE_M = 6, 25
rules = [   # requirement, check function
    ("low voltage >= 3.5 V/cell", lambda p: p["BATT_LOW_VOLT"] >= 3.5 * CELLS),
    ("critical voltage >= 3.3 V/cell", lambda p: p["BATT_CRT_VOLT"] >= 3.3 * CELLS),
    ("battery actions not 'warn only'", lambda p: p["BATT_FS_LOW_ACT"] > 0 and p["BATT_FS_CRT_ACT"] > 0),
    ("RC failsafe enabled", lambda p: p["FS_THR_ENABLE"] != 0),
    ("GCS failsafe enabled", lambda p: p["FS_GCS_ENABLE"] != 0),
    ("fence on, ceiling <= 90 m", lambda p: p["FENCE_ENABLE"] == 1 and p["FENCE_ALT_MAX"] <= 90),
    ("RTL altitude >= trees + 5 m (RTL_ALT in cm)", lambda p: p["RTL_ALT"] / 100 >= TREE_M + 5),
]
failed = 0
for text, check in rules:
    ok = check(params)
    failed += not ok
    print(f"{'PASS' if ok else 'FAIL'}  {text}")
print(f"{failed} rule(s) failed -> {'do not fly' if failed else 'cleared for pre-flight checks'}")
PASS  low voltage >= 3.5 V/cell
PASS  critical voltage >= 3.3 V/cell
PASS  battery actions not 'warn only'
PASS  RC failsafe enabled
FAIL  GCS failsafe enabled
FAIL  fence on, ceiling <= 90 m
FAIL  RTL altitude >= trees + 5 m (RTL_ALT in cm)
3 rule(s) failed -> do not fly

The check finds the GCS failsafe off, the fence ceiling above the limit, and an RTL height of 2500 cm, or 25 m, exactly at treetop height. Anyone reading 2500 as metres would think it very safe. Unit mistakes like this are why a program should do the checking instead of the eye.

Four boxes from left to right: safety requirements, rules for the firmware version, check the .param file, and pass or fail; a dashed pink arrow returns from pass or fail to the check box, labelled fix values
Figure 1 Checking parameters against requirements before flight

Configuration fingerprints

Writing “used the latest parameters” cannot be verified. ISO 10007 calls for clearly identified configuration items. A simple, exact method is to compute the SHA-256 hash (FIPS 180-4) of each file. If even one character changes, the whole hash changes. Record the hashes in the baseline and compare them before every flight.

Example 2 Recording a baseline and detecting changes

import hashlib

def fingerprint(text):
    return hashlib.sha256(text.encode("utf-8")).hexdigest()[:16]   # show the first 16 characters for readability

baseline = {
    "params": "BATT_LOW_VOLT,21.0\nFS_GCS_ENABLE,1\nRTL_ALT,3000\n",
    "harness": "W02 BEC A -> companion 5V 22 AWG\n",
    "payload": "thermal camera, 4 soft dampers\n",
}
today = dict(baseline, params="BATT_LOW_VOLT,21.0\nFS_GCS_ENABLE,1\nRTL_ALT,300\n")
record = {k: fingerprint(v) for k, v in baseline.items()}
for item, text in today.items():
    now = fingerprint(text)
    status = "unchanged" if now == record[item] else "CHANGED since baseline"
    print(f"{item:<8} {now}  {status}")
params   4d64c9c54070644e  CHANGED since baseline
harness  58b531d879b843c2  unchanged
payload  f7aa99efe1967fc3  unchanged

Mistyping RTL_ALT with one zero missing changes the parameter file’s hash at once, even though someone scanning a list hundreds of lines long would not see it. The team must find the cause, fix it, and record a new baseline through a change request.

Three configuration item boxes, parameters, harness and payload, each with an arrow to a SHA-256 box, all combining into a baseline box recorded with test evidence
Figure 2 Configuration items and fingerprints in the baseline

The case drone has two radio links: the RC link from the pilot’s transmitter to the receiver, and the telemetry link that carries MAVLink between the SiK radio on TELEM1 and the ground station. Module 1 allocated their ports and protocols; this section covers installing the antennas and proving the links before flight. ArduPilot’s SiK radio documentation notes that most range problems come from noise and antenna placement, not from the radio itself.

  • Receiver antennas. A receiver with two antennas uses diversity: it takes the signal from whichever antenna hears better. Futaba’s receiver manual asks for the two antennas to be at 90° to each other, the antenna wire not to be cut, bundled or sharply bent, the antennas kept away from motors, ESCs and other noise sources, and, on a carbon airframe, the last 30 mm of each antenna fully exposed. Carbon fibre and metal conduct electricity, so they block and reflect the signal.
  • Telemetry antennas. Mount the aircraft antenna vertically, away from the motors, ESCs and power wires; the SiK documentation shows the noise measured in the aircraft rising as soon as the motor starts. The ground antenna should be well clear of obstructions and a couple of metres above the ground. The USB bus of the ground-station laptop is another common noise source.
  • Signal numbers. RSSI (received signal strength) is given in dBm, where 0 dBm is 1 mW and every 3 dB doubles the power. Every receiver has a sensitivity limit, the weakest signal it can still decode; ExpressLRS gives −108 dBm for its 2.4 GHz 250 Hz mode and recommends a warning 5–10 dB above that. Link quality (LQ, the percentage of packets received) is what really matters, but RSSI shows how close the link is to the edge. In free space the loss grows by of the distance (ITU-R P.525), so every doubling of distance costs about 6 dB; the SiK documentation gives the same rule of thumb: every 6 dB of fade margin doubles the range.
  • Range check. FrSky’s receiver manuals call for a range check before each flying session: stand the drone at least 60 cm above ground free of metal (for example on a wooden bench), with the receiver antennas apart and not touching the ground and the transmitter antenna vertical; switch the transmitter to range-check mode, which cuts the effective distance to about 1/30 (at least 30 m); then walk away while moving the sticks and confirm that every control still responds. Nearby metal fences, concrete buildings and trees reflect the signal and can cause loss both in the check and in flight.

Example 3 Is the RC link margin enough?

The team plans to fly the survey up to 1 km away and requires the signal to stay at least 10 dB above the receiver’s sensitivity limit. It first computes the free-space prediction, then compares it with a walk test at 50 m at full power with the drone on a stand, in which the transmitter’s telemetry showed −74 dBm.

import math

F_MHZ = 2440                    # 2.4 GHz RC link
P_TX, G_TX, G_RX = 20, 2, 2     # dBm (100 mW), dBi, dBi (assumed)
LOSSES = 10                     # dB, cables, body shading and fading allowance (assumed)
SENS = -108                     # dBm, ExpressLRS 2.4 GHz 250 Hz sensitivity limit
NEED = 10                       # dB margin the team requires above the sensitivity limit

def fspl(d_km):                 # ITU-R P.525 free-space basic loss, f in MHz, d in km
    return 32.4 + 20 * math.log10(F_MHZ) + 20 * math.log10(d_km)

for d in (0.05, 0.5, 1.0, 2.0):
    rssi = P_TX + G_TX + G_RX - LOSSES - fspl(d)
    print(f"{d * 1000:5.0f} m: path loss {fspl(d):5.1f} dB, predicted RSSI {rssi:6.1f} dBm, margin {rssi - SENS:4.1f} dB")

measured_50m = -74              # dBm, walk test on the field with the drone on a stand (assumed)
for d in (0.5, 1.0):
    est = measured_50m - 20 * math.log10(d / 0.05)
    ok = est - SENS >= NEED
    print(f"from the walk test: about {est:.0f} dBm at {d * 1000:.0f} m, margin {est - SENS:.0f} dB -> {'ok' if ok else 'too small'}")
   50 m: path loss  74.1 dB, predicted RSSI  -60.1 dBm, margin 47.9 dB
  500 m: path loss  94.1 dB, predicted RSSI  -80.1 dBm, margin 27.9 dB
 1000 m: path loss 100.1 dB, predicted RSSI  -86.1 dBm, margin 21.9 dB
 2000 m: path loss 106.2 dB, predicted RSSI  -92.2 dBm, margin 15.8 dB
from the walk test: about -94 dBm at 500 m, margin 14 dB -> ok
from the walk test: about -100 dBm at 1000 m, margin 8 dB -> too small

On paper the link has more than 20 dB to spare at 1 km, but the real installation measures about 14 dB weaker than the prediction at 50 m. Extending the measurement with the 6 dB-per-doubling rule leaves only 8 dB at 1 km, below the team’s requirement. The team should first look for the cause, such as receiver antennas lying against the carbon plate or near the ESCs, fix it and repeat the walk test; until then, flights should stay within about 500 m. A walk test close to the ground usually reads lower than in the air, so this estimate errs on the safe side, and it never replaces the range check and failsafe tests.

Module lab

Lab: hand over the drone with its configuration

  1. Download the parameter file from the training flight controller with Mission Planner or QGroundControl
  2. Write the team’s safety requirements and turn them into rules like Example 1, checking names and units against the documentation for the firmware version used
  3. Install the RC and telemetry antennas as in this lesson, do the range check and a walk test, and check the link margin with Example 3
  4. Fix values that fail, and test each failsafe in SITL or on the ground with the propellers removed
  5. Fingerprint the parameters, wire list and payload register with Example 2 and record them as the baseline
  6. Hand over a dossier: interface register, wire list, rule-check results, baseline and test evidence

Common mistakes

Watch out

  • Disabling a failsafe for bench testing and forgetting to re-enable it
  • Confusing parameter units, such as centimetres and metres
  • Using check rules for one firmware version on another
  • Saying “the latest values” instead of identifying them by fingerprint
  • Changing values in the field without recording a new baseline
  • Running antennas along carbon plates or next to ESCs, or skipping the range check before a flying session

Summary

  • Safety requirements become parameter check rules tied to the names and units of a firmware version
  • Check the parameter file with a program before every flight
  • SHA-256 (FIPS 180-4) gives a fingerprint that changes as soon as the content changes
  • The handover dossier links the configuration to test evidence
  • Receiver antennas at 90° and clear of carbon and noise sources; range-check before each session and keep a margin above the sensitivity limit (about 6 dB is lost for each doubling of distance)

Check your understanding

  1. For a 4S battery warning at 3.5 V per cell, what should BATT_LOW_VOLT be?
  2. In Copter 4.6.3, what height in metres is RTL_ALT = 1500?
  3. What is the problem with BATT_FS_LOW_ACT = 0?
  4. Why is a hash good for detecting changes in a long file?
  5. What should you do when a hash differs from the baseline?
Answers
  1. V
  2. 15 m
  3. It only warns and does not make the aircraft do anything when the battery is low
  4. It changes when even one character changes, so one value is compared instead of reading the whole file
  5. Find the cause, fix it, and record a new baseline through a change request

Key formulas

Minimum pack voltage

Key references

  1. ArduPilot Dev Team. Parameter list (Copter stable V4.6.3). ArduPilot Copter documentation. link
  2. ArduPilot Dev Team. Battery failsafe. ArduPilot Copter documentation. link
  3. ArduPilot Dev Team. Radio failsafe. ArduPilot Copter documentation. link
  4. ArduPilot Dev Team. GCS failsafe. ArduPilot Copter documentation. link
  5. ArduPilot Dev Team. RTL mode. ArduPilot Copter documentation. link
  6. National Institute of Standards and Technology. (2015). Secure hash standard (SHS) (FIPS 180-4). link
  7. International Organization for Standardization. (2017). Quality management — Guidelines for configuration management (ISO 10007:2017). link
  8. ArduPilot Dev Team. SiK radio – advanced configuration. ArduPilot Copter documentation. link
  9. International Telecommunication Union. (2024). Calculation of free-space attenuation (Recommendation ITU-R P.525-5). link
  10. Futaba Corporation. R2008SB S-FHSS/FHSS-2.4GHz receiver instruction manual. link
  11. FrSky Electronic Co., Ltd. FrSky 2.4GHz ACCST X8R receiver manual. link
  12. ExpressLRS. Signal health (RSSI, link quality and sensitivity limits). ExpressLRS documentation. link
  13. ArduPilot Dev Team. Parameter list (Copter stable V4.7.1). ArduPilot Copter documentation. link

Further reading

Study the assigned knowledge units in advance, review media and take the module quiz

In class / field

Lab or field practice from worksheets with a safety checklist

Learning evidence: Checked worksheets and quiz results

Module quiz

This is a formative self-check, not a graded exam

Knowledge domain: Installation, maintenance and testing · Management, innovation and professional practice · Artificial intelligence and computer vision · Law, safety and risk