Module 19/20 · Weeks 14 · 7 h

Routes, operating areas and contingency plans

UAT 460 UAS for Public Safety, Search and Rescue, and Emergency Management

About 95 minDraft, awaiting reviewLast updated 1 October 2026

Lesson

By the end of this module you will be able to

  1. Define the operational volume and the risk footprint of each flight phase, and re-check the effect on the iGRC
  2. Lay out the facade scan as columns, calculate the flight time of one aircraft against two, check the battery and report the remaining gap
  3. Set the return point, the rally point and the return altitude, checking the buildings under the path
  4. Separate emergency procedures from the emergency response plan, and write a contingency table with detector, automatic response, crew action and responsible person
  5. Find the single points of failure of the plan by removing resources one at a time

Prerequisites: Module 18 Selecting aircraft, sensors and payloads · UAT 304 UAS Mission Planning and Autonomous Flight (recommended)

Why this matters

At 16:22 aircraft 2 takes off, with its pilot standing to the north-east. It is now 61 m up on the north side of the tower when the radio control link drops. The automatic return-to-launch function (RTL) of an aircraft running ArduPilot returns it to the position where it was first armed or, if one is loaded, to the nearest rally point, flying in a straight line after first climbing to the set return altitude. If the return point is on the far side of the 95.2 m tower, that straight line takes the aircraft through the building, and the legal ceiling of 90 m is lower than the tower. The only outcomes left are “hit the building” or “break the rule”. This example teaches that contingency planning starts before the flight, when the return point is chosen, not when the event happens.

This module covers two closely related topics. The first is routes and the operating area: where to fly, how high, how long it takes, and how much area must be treated as belonging to the mission. The second is contingency planning: when something goes off plan, who does what and when. Article 5(1)(d) of the 2015 Ministry of Transport notification requires the pilot to have an emergency plan before flight, including plans for an accident, for medical treatment and for solving the problem when the aircraft cannot be controlled (Ministry of Transport, 2015). The contingency plan is therefore not an add-on but a condition for flight.

Operating area by flight phase

SORA 2.5 divides the area to be considered into layers, as taught in UAT 401. The flight geography is the area where the aircraft flies in normal conditions. The contingency volume surrounds it, out to the distance the aircraft may reach when emergency procedures are used. The ground risk buffer is a further layer of ground outside that, which starts from the one-to-one rule: a distance equal to the height flown (Joint Authorities for Rulemaking on Unmanned Systems, 2024). The “risk footprint” in the iGRC is the sum of all three layers.

What this module adds is that the size of each layer depends on the flight phase, because the distance the aircraft travels before the contingency plan acts depends on speed. If the aircraft loses its connection, it carries on with its last command until the failsafe has counted out its time. The ArduPilot defaults are 1 second for the radio control link and 5 seconds for the ground station to send a heartbeat signal (ArduPilot Dev Team, n.d.-a, n.d.-b). Then the pilot needs a reaction time, and after that the aircraft must brake. The team uses the larger value: 5 seconds from the ground station plus a reaction time of 2 seconds (assumed value). The distance travelled is

where is the braking rate. Add to this distance the standoff of the path from the wall, the navigation system error, the flight technical error, the map error and the data latency multiplied by speed, and you get the outer edge of the contingency volume measured from the wall. Add the one-to-one buffer distance at the 90 m ceiling and you get the outer edge of the footprint.

Example 1 Risk footprint of three flight phases

The sweep phase flies up and down slowly at 1 m/s, the ring phase flies around the tower at 4 m/s and the transit phase flies between positions at 6 m/s. The standoff from the wall is 45 m, the navigation system error 3 m, the flight technical error 2 m, the map error 1.5 m, the data latency 0.5 s and the braking rate 2.5 m/s² (all values assumed). Then check how many cells of the 200 × 200 m density map used in Module 17 the footprint of each phase touches.

import math
# size of the operational volume around the facade scan for each flight phase (SORA terms; the sizing model is our own simple one, inputs assumed)
standoff, ceiling = 45.0, 90.0                       # m from the facade; legal height limit, used for the 1-to-1 ground risk buffer
nav, fte, mapx, latency = 3.0, 2.0, 1.5, 0.5         # navigation error, flight technical error, map error (m), data latency (s)
t_gcs, t_react, decel = 5.0, 2.0, 2.5                # ground-station failsafe time-out (s, ArduPilot default), crew reaction (s), braking (m/s2)
half_w, half_d = 20.0, 15.0                          # tower footprint 40 x 30 m centred on the origin
def cells_touched(edge):
    """Count the 200 m x 200 m density cells (3 x 3 around the tower cell) that lie within 'edge' metres of the tower footprint."""
    n = 0
    for cx in (-200, 0, 200):
        for cy in (-200, 0, 200):
            dx = max(0.0, abs(cx) - 100 - half_w)
            dy = max(0.0, abs(cy) - 100 - half_d)
            n += math.hypot(dx, dy) <= edge
    return n
print("phase    speed   margin  contingency  outer edge  + 90 m buffer  density cells touched")
for name, v in (("sweep", 1.0), ("ring", 4.0), ("transit", 6.0)):
    margin = nav + fte + mapx + latency * v           # error terms added directly, no root-sum-square (conservative)
    s_cm = v * (t_gcs + t_react) + v * v / (2 * decel)  # distance covered before the failsafe acts, then braking
    edge = standoff + margin + s_cm
    total = edge + ceiling
    print(f"{name:<8}{v:4.1f} m/s {margin:6.1f} m {s_cm:9.1f} m {edge:9.1f} m {total:11.1f} m   {cells_touched(total)} of 9")
near = sorted(round(math.hypot(max(0.0, abs(cx) - 100 - half_w), max(0.0, abs(cy) - 100 - half_d)), 1)
              for cx in (-200, 0, 200) for cy in (-200, 0, 200) if (cx, cy) != (0, 0))
print("distance from the tower footprint to the 8 neighbouring cells (m):", near)
phase    speed   margin  contingency  outer edge  + 90 m buffer  density cells touched
sweep    1.0 m/s    7.0 m       7.2 m      59.2 m       149.2 m   9 of 9
ring     4.0 m/s    8.5 m      31.2 m      84.7 m       174.7 m   9 of 9
transit  6.0 m/s    9.5 m      49.2 m     103.7 m       193.7 m   9 of 9
distance from the tower footprint to the 8 neighbouring cells (m): [80.0, 80.0, 85.0, 85.0, 116.7, 116.7, 116.7, 116.7]

The slowest phase, the sweep, has the smallest contingency volume, with its outer edge 59.2 m from the wall, while the transit phase at 6 m/s reaches 103.7 m. Speed is therefore a variable the planner can adjust. If the aircraft is made to fly slowly near the tower, the contingency volume can shrink by almost half, but the effect on the risk to people on the ground is nil. With the 90 m buffer included, every phase has an outer edge between 149.2 and 193.7 m, which is farther than the 80 to 85 m to the adjacent cells and the 116.7 m to the corner cells (last line of the output). The footprint therefore touches all nine cells in every phase, and the iGRC computed from the densest cell (the tower cell, 31,000 people per square kilometre) does not change from Module 17. The SAIL of F1 and F2 stays IV. This re-check is part of the planning loop. Adjusting the volume may or may not change the result of Module 17, so it must be checked every time.

Plan view. In the centre is the pink tower, 40 by 30 metres, surrounded by a blue dashed frame that is the ring of scan positions 45 metres from the wall, and by three solid gold lines with rounded corners that are the edges of the contingency volume at 59.2, 84.7 and 103.7 metres from the wall for the sweep, ring and transit phases. Further out are three pink dashed lines at 149.2, 174.7 and 193.7 metres, which include the 90 metre buffer. Two grey dashed lines, one vertical and one horizontal, are the edges of the 200 metre density cells.
Figure 1 Operational volumes and risk footprint of the three flight phases around the tower

Once the area is set, it must be passed on as a map. Section 4.1 of the PDRA101 guidance lists the data layers that the map accompanying an application should have: operating height, operational volume (flight area and recovery area), the one-to-one buffer, important structures and sensitive areas, the pilot’s position, take-off and landing points, emergency landing points, the planned route, residential and densely populated areas, visibility analysis, control-link range, airspace and air activity, and outdoor gatherings (Civil Aviation Authority of Thailand, 2025). The guidance is written for beyond-visual-line-of-sight flight, but its list of layers can be used as the map checklist for this mission. The team gives the incident commander a one-page map with these layers.

Scanning the facade in columns

The thermal camera of Module 18 has a frame 38.4 m wide and 30.7 m high on a wall at 45 m. The south and north walls are 40 m wide, so they need two columns. The west and east walls are 30 m wide and need exactly one column each. The number of columns follows when . For the height of 71.4 m (floors 8 to 28), the aircraft flies up and down vertically, one column at a time, because the thermal camera needs low speed. The distance the centre of the frame must move is m, plus a 5 m margin. The sweep speed of 1 m/s is the team’s assumed value, which must be checked against the time constant of the camera (UAT 455). Each column takes the travel time plus 5 seconds for the gimbal to settle at each end. The next column is scanned in the opposite direction, so the aircraft does not have to go back to the start.

The routes are assigned to the aircraft from the result of Module 17. Aircraft 1 flies the west and south sides with its pilot at S2, and aircraft 2 flies the east and north sides with its pilot at N3. Each aircraft starts from the station nearest to its pilot.

Example 2 Flight time of one aircraft against two

Use a sweep speed of 1 m/s, a ring speed of 4 m/s, a column shift of 2 m/s, climb and descent at 2 m/s and transit at 6 m/s, a 60 second hover check at the first station, and an extra 15% time allowance (assumed values). Compare one aircraft flying all four sides with two aircraft, and check the battery of aircraft A, which has 28.0 minutes from Module 18. In addition, Module 17 left the columns near the south-west corner (S-west and W) with a ceiling of 34.4 m. This example works out which floors are not scanned.

import math
# facade scan plan: vertical sweeps 45 m from the wall (thermal footprint 38.4 x 30.7 m, 20 % overlap); speeds and times assumed
faces = {"south": 40, "west": 30, "north": 40, "east": 30}                       # face widths (m)
foot_w, foot_h, overlap, band = 38.4, 30.7, 0.20, 71.4                           # frame on the wall (m), height band floors 8-28 (m)
sweep_len = band - foot_h + 5.0                                                  # travel of the camera centre, plus a 5 m margin
v_sweep, v_ring, v_shift, v_climb, v_transit = 1.0, 4.0, 2.0, 2.0, 6.0           # m/s
settle, check, extra = 5.0, 60.0, 0.15                                           # gimbal settle per sweep end (s), hover test at the first station (s), overhead share
cols = {f: 1 if w <= foot_w else math.ceil((w - foot_w) / (foot_w * (1 - overlap))) + 1 for f, w in faces.items()}
print("sweep columns per face:", cols, "total", sum(cols.values()))
col_s = sweep_len / v_sweep + 2 * settle                                         # one column: sweep plus settling at both ends
shift_s = foot_w * (1 - overlap) / v_shift                                       # move to the next column on the same face
corner_s = (50 + 60) / v_ring                                                    # along the ring round one corner (50 m + 60 m)
station = {"W": (-65, 0), "S-west": (-15, -60), "S-east": (15, -60), "E": (65, 0), "N-east": (15, 60), "N-west": (-15, 60)}
def sortie(order, faces_flown, home):
    """Time in seconds: climb to the first station, hover check, sweeps, shifts and corners, then return to the pilot."""
    n = sum(cols[f] for f in faces_flown)
    shifts = sum(cols[f] - 1 for f in faces_flown)
    out = max(math.dist(home, station[order[0]]) / v_transit, 42.0 / v_climb)    # climb to the lowest sweep height (42 m)
    back = max(math.dist(home, station[order[-1]]) / v_transit, 80.0 / v_climb)  # descent from the highest sweep height (80 m)
    t = out + check + n * col_s + shifts * shift_s + (len(faces_flown) - 1) * corner_s + back
    return t * (1 + extra)
S2, N3 = (-100, -30), (100, 50)                                                  # pilot positions chosen in module 17
one = sortie(["W", "S-west", "S-east", "E", "N-east", "N-west"], ["south", "west", "north", "east"], S2)
a1 = sortie(["W", "S-west", "S-east"], ["west", "south"], S2)                    # aircraft 1: west and south faces
a2 = sortie(["E", "N-east", "N-west"], ["east", "north"], N3)                    # aircraft 2: east and north faces
print(f"one aircraft, four faces: {one / 60:.1f} min")
print(f"two aircraft: {a1 / 60:.1f} min and {a2 / 60:.1f} min, ready together after {max(a1, a2) / 60:.1f} min")
print(f"battery check on aircraft A (28.0 min of hover): one aircraft leaves {28.0 - one / 60:.1f} min, two aircraft leave {28.0 - max(a1, a2) / 60:.1f} min each")
# module 17 left the columns near the windward SW corner (S-west and W) with a measured ceiling of 34.4 m for the aircraft
ceiling_corner, floor_h, columns_limited = 34.4, 3.4, 2
reach = ceiling_corner + foot_h / 2                                              # highest point the frame reaches from that aircraft height
top_floor = int(reach // floor_h)
unseen = columns_limited * (28 - top_floor) / (sum(cols.values()) * 21)          # floors 8-28 are 21 floors per column
print(f"corner-limited columns reach {reach:.1f} m, floor {top_floor}: floors {top_floor + 1}-28 of {columns_limited} columns stay unseen, {unseen:.0%} of the O1 area")
sweep columns per face: {'south': 2, 'west': 1, 'north': 2, 'east': 1} total 6
one aircraft, four faces: 10.9 min
two aircraft: 6.3 min and 6.3 min, ready together after 6.3 min
battery check on aircraft A (28.0 min of hover): one aircraft leaves 17.1 min, two aircraft leave 21.7 min each
corner-limited columns reach 49.8 m, floor 14: floors 15-28 of 2 columns stay unseen, 22% of the O1 area

One aircraft flying the four sides takes 10.9 minutes, while two aircraft take 6.3 minutes each and finish together. The estimates of 11 and 6.5 minutes used in the Module 16 schedule are therefore very close to the values calculated from the actual route, and the original schedule can be used without change. Aircraft A has 17.1 minutes of flight time left in the one-aircraft plan and 21.7 minutes per aircraft in the two-aircraft plan. Both are counted down to the 20% low-battery threshold, as in Module 18 (the 28.0 minutes already stop at 20%), so both options finish before the low-battery warning. As for the effect of wind, take the S-west and W columns: if the ceiling is 34.4 m, the image reaches 49.8 m, which is floor 14. Floors 15 to 28 of the two columns are therefore not scanned, which is 22% of the O1 area. This gap must be reported to the incident commander before 16:35, with a way to close it, for example when the wind eases or when the wind at the corner has been measured and the ceiling turns out higher, and it must be recorded clearly on the map.

On the left is the south elevation of the pink tower, 95.2 metres high and 40 metres wide. Floors 8 to 28 lie in a lighter band. Blue and purple dashed frames show the thermal camera images in 2 columns and 3 rows, each 38.4 by 30.7 metres, and double-headed green arrows show the vertical sweep paths. On the right is a bar chart of sortie time: one aircraft, four sides, 10.9 minutes; aircraft 1, south and west sides, 6.3 minutes; aircraft 2, north and east sides, 6.3 minutes. A pink dashed line marks the flight time of A, 28.0 minutes.
Figure 2 Scan plan for the south wall as two columns of three rows, and the time of one aircraft against two

Return point, rally point and return altitude

When the aircraft enters return-to-launch (RTL) mode, ArduPilot returns to the position where it was first armed (home) or to the nearest rally point if one is loaded. It first climbs to at least RTL_ALT_M (default 15 m), or to the current height plus the minimum climb if that is higher, and then flies back in a straight line. The return altitude is limited to below the ceiling of the altitude fence if one is enabled, and the straight line may cross a horizontal fence or an obstacle if path planning around obstacles is not enabled (ArduPilot Dev Team, n.d.-c). Setting FENCE_RET_RALLY makes the fence send the aircraft to the nearest rally point instead of home (ArduPilot Dev Team, n.d.-d). The PDRA101 guidance for beyond-visual-line-of-sight flight also says to calculate the return altitude so that it clears every kind of obstacle, and to set the return position somewhere other than the original take-off point for the case where the control signal is lost (Civil Aviation Authority of Thailand, 2025). The case study chooses a rally point as the return point, because it is away from the crew and near each scan station.

To find which buildings the straight line from a station to the return point passes over, use the same slab test as in Module 17, but on the plan map. Find the tallest building under the path, then add a 15 m margin.

Example 3 Minimum return altitude from each station

Use the same building model as Module 17. There are six stations. The pilot positions S2 and N3 are the home points of aircraft 1 and aircraft 2, and there are four rally points, each 120 m from the tower. The legal ceiling is 90 m. Check the minimum return altitude from each station to both home points and to the nearest rally point.

import math
# minimum return altitude from each scan station: tallest building under the straight path + 15 m (assumed layout, as in module 17)
BOX = {"tower": (-20, 20, -15, 15, 95.2), "market": (22, 82, -15, 15, 18), "hotel": (-70, -28, -12, 18, 32),
       "north row": (-60, 60, 26, 40, 14), "south row": (-60, 60, -64, -45, 17)}
def tallest_under(p, q):
    """Height of the tallest building whose footprint the straight path p-q crosses in plan view (slab test in x and y)."""
    top = 0.0
    for x0, x1, y0, y1, h in BOX.values():
        t0, t1 = 0.0, 1.0
        for a, b, lo, hi in ((p[0], q[0], x0, x1), (p[1], q[1], y0, y1)):
            d = b - a
            if abs(d) < 1e-12:
                if not lo <= a <= hi:
                    t0, t1 = 1.0, 0.0
            else:
                ta, tb = sorted(((lo - a) / d, (hi - a) / d))
                t0, t1 = max(t0, ta), min(t1, tb)
        if t0 <= t1:
            top = max(top, h)
    return top
CLEAR, CEILING = 15.0, 90.0
stations = {"S-east": (15, -60), "S-west": (-15, -60), "W": (-65, 0), "N-west": (-15, 60), "N-east": (15, 60), "E": (65, 0)}
homes = {"S2": (-100, -30), "N3": (100, 50)}                               # arming positions of the two pilots (module 17)
rally = {"rS": (0, -120), "rW": (-120, 0), "rN": (0, 120), "rE": (120, 0)}
print("station   to home S2     to home N3     nearest rally point")
need = {}
for n, s in stations.items():
    cells = []
    for hp in homes.values():
        alt = tallest_under(s, hp) + CLEAR
        cells.append(f"{alt:6.1f} m {'OVER' if alt > CEILING else 'ok  '}")
    k, rp = min(rally.items(), key=lambda kv: math.dist(kv[1], s))
    need[n] = tallest_under(s, rp) + CLEAR
    print(f"{n:<9} {cells[0]}  {cells[1]}   {k}: {need[n]:5.1f} m ok")
print(f"one RTL altitude for every station: at least {max(need.values()):.1f} m, so set it to {math.ceil(max(need.values()) / 5) * 5} m (ceiling {CEILING:.0f} m)")
station   to home S2     to home N3     nearest rally point
S-east      32.0 m ok      33.0 m ok     rS:  32.0 m ok
S-west      32.0 m ok      33.0 m ok     rS:  32.0 m ok
W           47.0 m ok     110.2 m OVER   rW:  47.0 m ok
N-west      47.0 m ok      15.0 m ok     rN:  15.0 m ok
N-east      47.0 m ok      15.0 m ok     rN:  15.0 m ok
E          110.2 m OVER    33.0 m ok     rE:  33.0 m ok
one RTL altitude for every station: at least 47.0 m, so set it to 50 m (ceiling 90 m)

At its own home, every station can return at a height of 15 to 47 m, because the path passes over only the row of commercial buildings or the hotel. Station W, which lies over the hotel (32 m), needs 47.0 m. But if home is on the other side of the tower, that is W to N3 or E to S2, the straight line cuts through the 95.2 m tower and needs 110.2 m, over the 90 m ceiling. This can really happen when an aircraft is handed over to the other pilot in the middle of a flight, or when the arm command is given in the wrong place. The nearest rally point works for every station and never has to cross the tower. The single return altitude to set for all stations is at least 47.0 m, so RTL_ALT_M is set to 50 m, which is below the 90 m ceiling. At the scan heights of 42 to 80 m the aircraft is already above 50 m almost all the time, so RTL does not need to climb further when it starts from the upper rows, and climbs a little when it starts from the lower rows.

A table with six rows and four columns. The rows are the stations S-east, S-west, W, N-west, N-east and E. The columns are return to pilot point S2, return to pilot point N3 and the nearest rally point. Cells above the 90 metre ceiling are shaded pink: W to N3 and E to S2, at 110.2 metres. The rally-point cells are shaded green in every row. The values are 32.0, 32.0, 47.0, 15.0, 15.0 and 33.0 metres.
Figure 3 Minimum return altitude from each station to the pilot positions and the rally points

Contingency plans: emergency procedures, the emergency response plan and the decision tree

Annex C of PDRA101 separates two things that are often confused. Emergency procedures are the actions to recover the aircraft or abort the mission, such as commanding RTL. The emergency response plan (ERP) is the plan for managing the consequences of an accident or a significant incident. It must cover limiting effects that might grow, such as notifying the responsible agencies, and the conditions for notifying air traffic authorities (Civil Aviation Authority of Thailand, 2025). The guidance lists 19 items for an ERP, which the team uses as a checklist. Eleven of them relate to the case study: scope and applicability, criteria for identifying an emergency, the person with decision authority, crew safety roles, a person trained in first aid, a list of emergency medical units with their response times, a contact list, procedures for communicating with outside parties, emergency equipment and its inspector (for example a fire extinguisher), a map of the area with reporting points, and procedures for reporting and preserving evidence.

The contingency table for the facade-scan mission has six columns: event, detector, automatic response, crew action, responsible person and time limit. The figures given are ArduPilot defaults, which must be set to match the real aircraft and checked in tests. If the aircraft uses another system, read the manual of that system.

EventDetectorAutomatic responseCrew actionResponsible personTime limit
Radio control link lostRadio failsafe, RC_FS_TIMEOUT 1 sRTL to the nearest rally point, at 50 mConfirm the mode; be ready to switch mode when the signal returns (the aircraft does not go back to the previous mode by itself)PilotImmediate
Ground-station link lostFS_GCS_TIMEOUT 5 sAs set by FS_GCS_ENABLE, set to RTLCheck the link; if it cannot be restored, fly by radioPilot5 s
Low batteryVoltage below BATT_LOW_VOLT for 10 s, or capacity below BATT_LOW_MAH, about 20%BATT_FS_LOW_ACT = 2, which is RTLOrder landing at the rally point; recover the aircraftPilot10 s
Wind above the calculated ceilingWind from the on-board logNoneAbort the sortie, land, review at G2Drone group supervisor1 minute
Crewed aircraft enters the areaObserver and airspace-net radioNoneAnnounce “stop flying” on the UAS group net; descend or land as set by the airspace planObserver10 s
Smoke hides the aircraft so that the pilot cannot see itPilotNoneHover, then land at the nearest rally point; if the aircraft is not in sight beyond the time limit, command RTLPilot10 s
Virtual fence breachedFENCE_ALT_MAX and the horizontal fenceAs set by FENCE_ACTION (RTL or land)Check the position; prepare to landPilotImmediate
Aircraft crash or battery fireObserverNoneUse the emergency response plan; tell the incident commander (IC); put out the fire with an extinguisher; check people on the groundSafety officer1 minute

The table can also be written as a tree. The next figure shows the most important event, loss of the control link: the detector, the automatic response and the points where the pilot must decide.

Decision tree for loss of the control link. A pink box, control link lost, leads to a diamond asking whether the aircraft enters RTL by itself within 1 second for the RC link or 5 seconds for the ground station. If yes, it goes to a box, return to the nearest rally point at a height of 50 metres, then to a diamond asking whether the link has come back. If yes, the pilot switches the mode manually, because the aircraft does not return to the previous mode. If no, the aircraft lands at the rally point and the observer reports its position. If the aircraft does not enter RTL by itself, the pilot tries to switch mode or uses the backup controller, and if that does not work declares the aircraft lost. Both paths end at the emergency response plan: tell the IC, secure the aircraft, check people on the ground.
Figure 4 Decision tree when the control link is lost

The FEMA planning guide (CPG 101) recommends pausing from time to time to identify single points of failure: tasks that, if not done, make the whole operation fail (Federal Emergency Management Agency, 2025). For resources, the method is to remove them one at a time and count how many sorties can still fly at once.

Example 4 Single points of failure in the mission plan

One sortie needs one aircraft, one pilot, one observer and one battery set, plus a complete set of shared items: a period permit, a command link to the command post, a data manager and power for the chargers. The team has two A aircraft, three pilots, two observers, six battery sets and one of each shared item. Then it adds a backup link (a phone), a second data manager and a second generator (assumed values).

from itertools import combinations
# single points of failure: remove one or two resources and see how many sorties can still fly (resources assumed)
def capacity(avail):
    """Sorties that can fly at once: each needs one aircraft, pilot, observer and battery set; the shared items must all exist."""
    if not all(avail[g] for g in ("permit", "command link", "data manager", "charger power")):
        return 0
    return min(len(avail[g]) for g in ("aircraft A", "pilot", "observer", "battery set"))
def audit(res, label):
    names = [(g, m) for g, ms in res.items() for m in ms]
    full = capacity(res)
    def after(removed):
        return capacity({g: [m for m in ms if (g, m) not in removed] for g, ms in res.items()})
    stop = [m for g, m in names if after({(g, m)}) == 0]
    degraded = [m for g, m in names if 0 < after({(g, m)}) < full]
    bad_pairs = sum(1 for c in combinations(names, 2) if after(set(c)) == 0)
    print(f"{label}: full capacity {full} sorties")
    print(f"   one failure stops everything: {', '.join(stop) or 'none'}")
    print(f"   one failure leaves less than full capacity: {', '.join(degraded) or 'none'}")
    print(f"   pairs of failures that stop everything: {bad_pairs} of {len(list(combinations(names, 2)))}")
plan = {"aircraft A": ["A1", "A2"], "pilot": ["P1", "P2", "P3"], "observer": ["O1", "O2"], "battery set": [f"set{i}" for i in range(1, 7)],
        "permit": ["period permit"], "command link": ["VHF radio"], "data manager": ["D1"], "charger power": ["generator"]}
audit(plan, "plan as first drafted")
better = {**plan, "command link": ["VHF radio", "LTE phone"], "data manager": ["D1", "D2"], "charger power": ["generator", "second generator"]}
audit(better, "after adding a second link, data manager and generator")
plan as first drafted: full capacity 2 sorties
   one failure stops everything: period permit, VHF radio, D1, generator
   one failure leaves less than full capacity: A1, A2, O1, O2
   pairs of failures that stop everything: 60 of 136
after adding a second link, data manager and generator: full capacity 2 sorties
   one failure stops everything: period permit
   one failure leaves less than full capacity: A1, A2, O1, O2
   pairs of failures that stop everything: 24 of 190

The first draft plan can fly at most 2 sorties at once, but it has four single points of failure that stop everything: the permit, the radio, the single data manager and the generator. Another four reduce it to one sortie: A1, A2 and the two observers (the three pilots and six battery sets leave enough spares). Adding three spare items reduces the points that stop everything to the permit alone, and cuts the failure pairs that stop everything to 24 of 190 pairs, 19 of which are the permit together with something else. The permit cannot be duplicated, so other measures are needed: check the expiry date regularly, and make someone responsible for keeping a copy. As for the A aircraft, there is no spare in the cabinet, because B was screened out of the facade scan at a wind of 8.7 m/s. Losing one aircraft therefore means a plan that is 4.6 minutes slower (one-aircraft time 10.9 against 6.3 minutes), so the one-aircraft product is ready at 16:39, four minutes after the 16:35 decision time (Module 16). The incident commander must know this in advance.

Module lab

Practical: map and contingency plan for a building-scan flight

  1. Area Run the code of Example 1 with the speeds and errors of the department’s aircraft. Draw the footprint of each phase on the map of the chosen teaching building and check which density cells the footprint touches.
  2. Route Lay out the scan columns for the widest wall of the teaching building. Run the code of Example 2 to calculate the time for one aircraft against two, then check it against the real flight time from the demonstration flight in step 5.
  3. Return point Set the home point and the rally points. Run the code of Example 3 and set the return altitude. Set RTL_ALT_M and the rally points in the aircraft or in a simulator (ArduPilot SITL if available), then test commanding RTL from every station.
  4. Contingency plan Write a contingency table of at least eight rows and a tree for the lost-link event. State the values set in the aircraft and the time limits, then write an ERP checklist following the relevant items of PDRA101.
  5. Field On the university’s closed field, an area closed to outside persons, fly within visual line of sight, in daylight and under the conditions of the Civil Aviation Authority of Thailand (CAAT). Before flight the instructor checks that no person, vehicle or building unrelated to the flight is within 50 m horizontally (Article 9(2)(b) of the 2015 notification, used in Module 17), on the assumption that the target teaching building counts as related to the flight, which the instructor must confirm against the conditions of the flying site. Fly the scan route of one column of the teaching building at the planned speed and time it. Then rehearse the lost-link and low-battery events from the table, with the instructor creating the events.
  6. Single points of failure Run the code of Example 4 with the team’s list of resources, then propose the one spare item that reduces the single points of failure the most.

Common mistakes

Watch out

  • Using one operating-area size for every flight phase, even though the distance travelled before the contingency plan acts depends on speed.
  • Leaving RTL at its default settings, with a return altitude of 15 m and home on the other side of a tall building.
  • Setting the return point where the pilot stands, or on the far side of the building, without checking the straight line the aircraft will fly.
  • Forgetting that a failsafe does not go back to the previous mode by itself. The pilot must switch the mode when the signal returns.
  • Mixing emergency procedures with the emergency response plan. A plan that only says “command RTL” has nobody to tell the IC or check people on the ground.
  • Not reporting the remaining objective gap when wind or line of sight cuts out part of it.
  • Having a resource that cannot be duplicated and no measure for it, for example a single permit that expires without anyone knowing.

Summary

  • The size of the contingency volume depends on the flight phase through the distance travelled before the failsafe acts, . Flying slowly near the tower can shrink the volume, but if the footprint touches the same cells the SAIL does not change. The map delivered uses the data layers in the PDRA101 list.
  • The scan route is divided into columns by and flown up and down in alternating directions. One aircraft takes 10.9 minutes and two aircraft take 6.3 minutes, and gaps cut out by wind or line of sight must be reported.
  • RTL flies back in a straight line to home or to the nearest rally point, so the buildings under the path must be checked. The return altitude must not be lower than the tallest building plus 15 m and must not exceed the ceiling, so use rally points near the stations and set RTL_ALT_M to 50 m.
  • The contingency plan has two layers: emergency procedures recover the aircraft or abort the mission, and the emergency response plan manages the consequences. The contingency table states the detector, automatic response, crew action, responsible person and time.
  • Single points of failure are found by removing resources one at a time. Spares reduce the points that stop everything, but the permit cannot be duplicated.

Self-check questions

  1. A flight phase runs at 3 m/s, the ground-station failsafe is 5 s, the reaction time 2 s, the braking rate 2.5 m/s², the navigation error 3 m, the flight technical error 2 m, the map error 1.5 m, the latency 0.5 s and the standoff from the wall 45 m. What is the outer edge of the contingency volume from the wall?
  2. A wall is 55 m wide, the camera frame is 30 m wide and the overlap is 20%. How many columns are needed?
  3. The straight line from a station to the return point passes over buildings 18 m and 38 m tall. What minimum return altitude is needed, and what should RTL_ALT_M be set to if the value is rounded up to a multiple of five metres?
  4. A team has 2 aircraft, 3 pilots, 2 observers, one permit and one radio, and needs 2 sorties at once. Which single points of failure stop everything, and which reduce it to one sortie?
  5. “The pilot commands RTL when the battery is low” and “the safety officer calls an ambulance and tells the IC when the aircraft falls on a person”. Which is an emergency procedure and which is the emergency response plan?
Answers
  1. margin m. Distance travelled m. Outer edge m.
  2. columns.
  3. The tallest building under the path is 38 m, so the minimum is m. Set RTL_ALT_M to 55 m, which is below the 90 m ceiling.
  4. The single points of failure that stop everything are the permit and the radio. Those that reduce it to one sortie are each aircraft and each observer. With one of the three pilots lost, two remain, so two sorties can still fly.
  5. The first is an emergency procedure, because it recovers the aircraft or aborts the mission. The second is the emergency response plan, because it manages the effects on people and notifies the responsible agencies.

Key formulas

Distance travelled before the contingency plan acts
Outer edge of the risk footprint
Number of columns for a wall of width W
Minimum return altitude

Key references

  1. Joint Authorities for Rulemaking on Unmanned Systems. (2024). JARUS guidelines on Specific Operations Risk Assessment (SORA), main body, edition 2.5 (JAR-DEL-SRM-SORA-MB-2.5). link
  2. สำนักงานการบินพลเรือนแห่งประเทศไทย. (2568). แนวปฏิบัติในการขอปฏิบัติการบินอากาศยานซึ่งไม่มีนักบินโดยใช้การประเมินความเสี่ยงที่เป็นไปตามเงื่อนไขที่กำหนดสำหรับการบินเกินกว่าระยะสายตา (CAAT-GM-UAS-PDRA101 ปรับปรุงครั้งที่ 00). link
  3. กระทรวงคมนาคม. (2558). ประกาศกระทรวงคมนาคม เรื่อง หลักเกณฑ์การขออนุญาตและเงื่อนไขในการบังคับหรือปล่อยอากาศยานซึ่งไม่มีนักบิน ประเภทอากาศยานที่ควบคุมการบินจากภายนอก พ.ศ. 2558. ราชกิจจานุเบกษา, 132(86 ง), 6–12. link
  4. ArduPilot Dev Team. RTL mode. ArduPilot Copter documentation. link
  5. ArduPilot Dev Team. GCS failsafe. ArduPilot Copter documentation. link
  6. ArduPilot Dev Team. Radio failsafe. ArduPilot Copter documentation. link
  7. ArduPilot Dev Team. Battery failsafe. ArduPilot Copter documentation. link
  8. ArduPilot Dev Team. Geofencing (fences). ArduPilot Copter documentation. link
  9. Federal Emergency Management Agency. (2025). Developing and maintaining emergency operations plans: Comprehensive Preparedness Guide (CPG) 101, version 3.1. U.S. Department of Homeland Security. 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: Public safety and disasters · Mission planning, flight and simulation · Law, safety and risk