Teaching pack · UAT 461
A 15-week teaching plan, 10 worksheets, a scoring rubric and a map from the course description to the lessons, for instructors to evaluate and adapt before teaching.
Coverage of the course description
The lessons fully teach 13 of 13 description topics. Each topic lists the modules and lesson sections that teach it, and incomplete topics say what is missing.
| Description topic | Modules | Where it is taught | Status |
|---|---|---|---|
| Principles of autonomous navigation | M1M5 | Module 1: Layers of an autonomous navigation system · Module 5: Navigation in ROS 2: the Nav2 architecture | Covered |
| Cooperative multi-UAV operations | M6M7M8M9 | Module 6: What a multi-UAV system is, and three architectures · Module 7: Coordination styles and the taxonomy · Module 8: Formations and control approaches · Module 9: Strategic separation: altitude layers and priority · Fleet-state monitoring | Covered |
| Positioning and routing | M1M2M3 | Module 1: Position sources and their errors under the canopy · Three families of state estimators · Smoothing and factor graphs · Module 2: Fusing at the solution level or at the range level · A 2D EKF for the vehicle · Checking consistency with NEES and NIS · Module 3: Layered maps for the orchard · Graph search: Dijkstra, A* and D* Lite | Covered |
| Autonomous path planning | M3M4M5 | Module 3: Graph search: Dijkstra, A* and D* Lite · RRT*: sampling that converges to the shortest path · Height planning for the drone · Module 4: Smooth trajectories: minimum snap · Tracking the path: pure pursuit, Stanley and LQR · Module 5: Replanning in real time | Covered |
| Obstacle avoidance | M4 | Module 4: Local planners and the local-minimum trap · Choosing a direction: the vector field histogram · Moving obstacles: the velocity obstacle | Covered |
| Inter-aircraft coordination | M7M8M9 | Module 7: The price auction · CBAA: an auction without a centre · When a drone fails · Module 8: Consensus and the communication graph · Holding a formation in a distributed way · Module 9: Required separation and closest point of approach · ORCA: avoiding by sharing the burden · Strategic separation: altitude layers and priority | Covered |
| Task allocation | M7 | Module 7: The assignment problem and choosing the criterion · The price auction · CBAA: an auction without a centre · When a drone fails | Covered |
| Communication and data exchange | M6M8 | Module 6: What to send, and the network to send it over · Data load: star, broadcast and flooding · Link budget: which radio reaches how far · Time on air and data age · Network resilience · Module 8: Delay and the gain ceiling | Covered |
| Centralised and decentralised control | M6M7M8 | Module 6: What a multi-UAV system is, and three architectures · Module 7: CBAA: an auction without a centre · Module 8: Formations and control approaches · Consensus and the communication graph · Distributed control in practice | Covered |
| Swarm and formation concepts | M8 | Module 8: Formations and control approaches · Holding a formation in a distributed way · Delay and the gain ceiling · Swarm behaviour from local rules | Covered |
| Simulation | M10 | Module 10: The ladder of simulation · Sweeping delay and message loss · Injecting failures: if drones are lost, does the mission finish in time? | Covered |
| Multi-UAV system testing | M10 | Module 10: The ladder of simulation · Injecting failures: if drones are lost, does the mission finish in time? · Showing reliability by testing · Building up to real flights: a staged test plan | Covered |
| Evaluation of performance, reliability and safety | M9M10 | Module 9: Required separation and closest point of approach · Hazard analysis of the multi-UAV mission · Fleet-state monitoring · Module 10: Sweeping delay and message loss · Mission reliability · Showing reliability by testing | Covered |
Weekly teaching plan
| Week | Topic | Pre-class | Lecture | Lab | Evidence |
|---|---|---|---|---|---|
| 1 M1 | Layers of the navigation system and age of data | Read module 1 'Why this matters' and 'Layers of an autonomous navigation system'; run Example 1 | Layers and rates, the contract between layers (estimate with covariance), the map and odom frames, average and worst-case age of data | Worksheet 1 part A: measure the age of data of the group's pipeline (log timestamps) and compute the speed that keeps latency slip within the limit | Table of stage timings and age of data |
| 2 M1 | State estimators, particle filter and smoothing | Read 'Three families of state estimators' and 'Smoothing and factor graphs'; run Examples 3 and 4; take the module 1 quiz | EKF, particle filter and factor graph, look-alike corridors and multi-peak beliefs, effective particle count, filter versus smoother when RTK returns | Worksheet 1 part C: measure the wheel scale error with a tape, run Examples 2 and 4 on the logged data, and compare filter and smoother at a check point | One-page report naming the zones where the wheels cannot carry the position and the proposed second source |
| 3 M2 | A 2D EKF for the vehicle | Read 'A 2D EKF for the vehicle'; run Example 2 | State [x, y, θ, s], setting R by fix type, comparing three R settings in Monte Carlo, effects of an R that is too small or too large | Worksheet 2 part B: write the EKF that reads real data, set R by fix type and compare with a single R | EKF code and error plots for both settings |
| 4 M3 | Layered maps and the costmap | Read module 3 'Why this matters' and 'Layered maps for the orchard'; run Example 1 | DTM and DSM from a LiDAR point cloud, slope, terrain, trunk, hose and keep-out layers, obstacle inflation, unknown cells | Worksheet 3 part A: build a costmap of at least four layers for a 60 × 40 m area and adjust r_ins, r_infl and k | Costmap image and the parameters giving at least half a metre from trunks |
| 5 M3 | Drone height planning and midterm | Read 'Height planning for the drone'; run Example 4; review modules 1–3; take the module 3 quiz | Midterm examination (modules 1–3) | Worksheet 3 part C: compute the height profile along the group's flight line and state the horizontal room needed before and after the row of trees | Worksheet 3 report and midterm score |
| 6 M4 | Velocity obstacles and minimum snap | Read 'Moving obstacles: the velocity obstacle' and 'Smooth trajectories: minimum snap'; run Examples 3 and 4 | Collision cone and the closest safe velocity, 7th-order polynomial trajectories, snap cost, time stretching by a factor s | Worksheet 4 part B: find the velocity obstacle of the walker and the closest safe velocity, then build a minimum-snap trajectory with the group's limits | Safe-velocity plot, stretch factor and final time |
| 7 M5 | Replanning time budget and hysteresis | Read module 5 'Why this matters' and 'Replanning in real time'; run Examples 1 and 2 | Sensing range, delay and braking set the planning time, the reflex layer, anytime planners, route flip-flop and a margin set from the noise | Worksheet 5 part A: compute d_plan and t_plan for the group's robot and set the switching margin from the noise of the cost estimate | Time budget table and the naive versus margin comparison |
| 8 M5 | Statistical evidence, runtime monitors and mini-project presentations | Read 'Statistical evidence and runtime monitors'; run Example 5; take the module 5 quiz; prepare the verification matrix and the test report | Clopper-Pearson intervals, runs needed with zero failures, the robustness margin, the gap between simulator and field, and course wrap-up | Mini-project presentation or practical exam: the group's navigation system with its verification matrix, Monte Carlo results with confidence intervals and recommendation to the acceptor (role-play) | Mini-project report and presentation, scored with the rubric |
| 9 M6 | Data load and the link budget | Read 'What to send, and the network to send it over', 'Data load: star, broadcast and flooding' and 'Link budget: which radio reaches how far'; run Examples 1 and 2 | MAVLink 2 message size; star, broadcast and flooding loads; the log-distance model and the allowed loss | Worksheet 1 part B: calculate the allowed loss and range with Example 2 at margins of 10, 15 and 20 dB; then walk a radio and measure RSSI on the ground at 25, 50, 100, 150 and 200 m | Link-budget table and RSSI plot against the model |
| 10 M7 | Coordination and the assignment problem | Read module 7 'Why this matters', 'Coordination styles and the taxonomy' and 'The assignment problem and choosing the criterion'; run Example 1 | Coordination styles; the ST-SR-IA problem; greedy; the Hungarian method; the minimum-sum versus bottleneck criteria | Worksheet 2 part A: choose 6 start points and 6 task points on campus; measure coordinates with GNSS; build the distance matrix; allocate with three criteria | Distance matrix and the results table of the three criteria |
| 11 M7 | When a drone fails and reallocation | Read 'When a drone fails'; run Example 4; take the module 7 quiz | Three reallocation options, the switch cost, and choosing the block left uncovered | Worksheet 2 part C: remove one start point part-way; reallocate with three methods; choose one with a reason from the numbers | Worksheet 2 report with a one-page reallocation conclusion, and the module 7 quiz result |
| 12 M8 | Holding a formation in a distributed way | Read 'Holding a formation in a distributed way'; run Example 3 | Position relative to the slot; the consensus controller plus a pinned leader; the effect of redundant links when a node fails | Worksheet 3 part B: run the formation on your graph and measure RMS at 60 s; then remove drones one at a time at 10 s and find the worst | Plot of RMS against time and the table from removing drones one by one |
| 13 M9 | Required separation and CPA | Read module 9 'Why this matters' and 'Required separation and closest point of approach'; run Example 1 | The five parts of separation; data age as metres; checking CPA along the whole track | Worksheet 4 part A: set the team's values from the data of a department drone; calculate separation at data ages of 0.5, 1.3 and 4.0 s; build a random 12-drone scenario and count conflicting pairs | Separation table and number of conflicting pairs |
| 14 M9 | Fleet-state monitoring | Read 'Fleet-state monitoring'; run Example 4; take the module 9 quiz | The lost state, two threshold levels, hysteresis and the keep-out zone around a silent aircraft | Worksheet 4 part C: inject three anomalies into fictional telemetry; tune thresholds and hysteresis until nothing flickers; calculate the keep-out zone around a lost drone | Monitoring event log, worksheet 4 report and the module 9 quiz result |
| 15 M10 | Failure injection and mission reliability | Read 'Injecting failures: if drones are lost, does the mission finish in time?' and 'Mission reliability'; run Examples 2 and 3 | The cliff in the number of rounds; series, parallel and k-out-of-n structures; the beta factor; Monte Carlo checking | Worksheet 5 part B: inject lost drones and find the minimum number that meets the time budget; calculate reliability at beta of 0, 0.02 and 0.10 with a Monte Carlo check; if SITL is available start 3 vehicles with --count and --auto-sysid | Failure table and reliability table |
Worksheets and instructor guide
One worksheet per module. Students open it on the web, print it or download the .docx. The instructor guide under each worksheet gives the class timing, expected results, discussion questions and notes for students with different backgrounds.
1Worksheet 1 Log fix types and compare the filter with the smoother
Lab · About 6 h of class time · CLO1, CLO3
Objective: Log GNSS fix types on a route through open ground and under large trees, measure the wheel scale error, and compare the filter with the smoother
Equipment
- A GNSS receiver (RTK if available)
- A cart or robot with a wheel odometer, or a tape for marking every 10 m
- A computer with Python and the example code at /downloads/uat-461/
- Permission to use the area from its keeper
Safety
- Get permission from the area's keeper before the survey
- Watch for vehicles and passers-by on the route and walk at a normal pace
- Under large trees watch for falling branches, ants and insects
Steps
- Pick a route of at least 100 m through open ground and under large trees, and mount a GNSS receiver on the cart or robot
- Walk the route at constant speed and log time, fix type, satellite count, HDOP and wheel distance; do three runs at different times of day
- Divide the route into zones and adapt the Example 2 code to read the real data; compute the fix-type shares, the longest gap and the wheel error across it
- Measure the wheel scale error by comparing the wheel-reported distance with the tape distance, and use it instead of 1.5% in Examples 2 and 4
- Run Example 4 on the logged data and compare the filter and the smoother at a check point measured by tape in the middle of the route
- Write a one-page report naming the zones where the wheels cannot carry the position and proposing a second source
Deliverables
- Three log files
- Table of fix-type shares, longest gaps and wheel error by zone
- Filter versus smoother at the check point
- One-page report
Checklist
- Table 1 has all 3 zones x 3 runs and the fix-type shares of each row add up to 100%
- Table 2 computes ε from tape against wheel distance for every run, and this ε replaces 1.5% in the Example 2 and 4 code
- Table 3 compares filter and smoother at the tape-measured check point, with metres in every cell
- The report names the zones where the wheels cannot carry the position with numbers (gap distance x ε) and proposes a second source
- The three log files are named by date and time, and the zone boundaries are marked on a route sketch
Instructor guide
Class timing
- Objectives, safety and checking the area permission15 min
- Choose the route, mark every 10 m and mount the GNSS receiver45 min
- Three logging runs at different times of day120 min
- Adapt the Example 2 code to the real data and fill in Table 190 min
- Measure the wheel scale, run Example 4 and fill in Tables 2 and 360 min
- Write the report, answer the questions and run the hand-in checklist30 min
Expected results
- Table 1: numbers depend on the real route. With the lesson's Example 2 values: open yard fixed 95.2%, float 4.8%, gap 0 s; young trees fixed 70.0%, float 22.8%, single 7.2%, gap 9 s; closed canopy fixed 13.2%, float 46.3%, single 23.0%, no fix 17.5%, gap 37 s. Real data should show the same trend: over 90% fixed and a gap near 0 s in the open, and a clearly lower usable share (fixed + float) under large trees.
- Table 2: if the wheels report 101.5 m over a 100.0 m tape distance, ε = 1.5% and d = 0.5/0.015 = 33.3 m. Real carts usually give about 0.5% to 3% (d = 100 m to 16.7 m). ε must be a fraction of the tape distance, not of the wheel distance, and a longer wheel distance means a positive ε.
- Table 3 (lesson Example 4, a 120 m row with RTK at both ends): the filter errs by 0.63 m at 60 m, by 1.10 m at most, and jumps 1.15 m when RTK returns; the smoother errs by 0.05 m, 0.10 m at most. Real data must show a clearly smaller smoother error; if not, check the check-point time against the log time.
- With the example values: under the closed canopy the 37 s gap x 1.5 m/s = 55.5 m, times 1.5% = 0.83 m, above 0.5 m; young trees give 9 s = 13.5 m and 0.20 m, below. A strong answer proposes LiDAR ranging to the trunks on both sides or visual odometry, which do not depend on GNSS and give the cross-row information that matters most.
- t = d/v = 33.3/1.5 = 22.2 s at ε = 1.5%, shorter than the 37 s gap under the closed canopy, so the robot must slow or stop when no usable fix is available (linking to the mode supervisor of module 2). With ε = 3% only 16.7 m, or 11.1 s, remains.
- They usually differ, because satellite positions in the sky change with time, so the leaves block different satellites, and moisture or wind moves the leaves. A strong answer concludes that the design must follow the worst run, not the average or a single run.
- The smoother uses the whole data set: finding the row end away from where the wheels said, it spreads the difference back over the whole stretch in proportion to the confidence of each factor, which matches a scale error that grows with distance. But it needs future data, which the controller does not have when it must command, so control uses only the filter or a short-window smoother, and the continuous odom frame.
Discussion questions
- If the receiver reports a 2.5 m sigma under the canopy but the logged positions jump further than that from the tape line, which should the filter believe, and how could you check without truth?
- If you must choose between slowing down under the canopy and adding a second sensor, which way does your group's data point?
- Why should the controller use the odom frame while mission goals live in the map frame?
Adapting to student background
- Upper secondary (M.6)
- Have them compute ε and d = e_max/ε by hand before running the code and explain the worst-case age formula from Example 1; give extra practice mounting the GNSS receiver on the cart, paired with a hands-on peer.
- Vocational certificate
- Let them own the mounting and logging walk, then compute ε step by step with a fill-in table (wheel minus tape, divided by tape); provide the file-reading part of the code ready-made.
- Diploma
- Extension: fit a wheel encoder on a department robot, calibrate the wheel diameter with a straight 50 m run, and compare ε before and after calibration.
2Worksheet 2 Set R by fix type and check NIS on real data
Analysis activity · About 6 h of class time · CLO1, CLO3
Objective: Write an EKF that sets R by fix type, check consistency with NIS on real data, and define the supervisor modes
Equipment
- Data from worksheet 1 or sample data prepared by the lecturer
- A computer with Python and the example code at /downloads/uat-461/
- A GNSS receiver for 5 minutes standing still on a point of known coordinates (if available)
Safety
- If standing outdoors, watch for sun and rain and do not block pedestrian paths
- The rest is desk work with no real flight or driving
Steps
- Use the data logged in the module 1 lab (time, fix type, position, wheel distance) and add gyro data if available
- Write the EKF with state [x, y, θ, s] as in Example 2 adapted to read real data; set R by fix type using sigma values measured from 5 minutes standing still
- Compute the mean NIS per fix type against the 95% bounds as in Example 3 and adjust R until every type is inside
- If a tape-measured check point exists, compute the true error there and compare it with the filter's reported sigma
- Try a single R for every type and compare NIS and error with step 3
- Define c and m of the lane on the group's field, compute σ_max and count the share of time in each supervisor mode
Deliverables
- Table of sigma by fix type
- EKF code
- NIS table before and after adjusting R against the bounds
- Share of time in each supervisor mode
Checklist
- Table 1 has a sigma for every fix type actually seen, with sample counts, and notes any type not seen
- Table 2 computes the 95% bounds from each row's real sample count, not one bound for every row
- NIS is shown before and after adjusting R and for the single-R case, with a note that R was adjusted rather than the gate widened
- Table 3 states c and m of the real lane, shows σ_max = (c - m)/3, and the mode shares add up to 100%
- The EKF code reruns with the attached data file and notes where the data came from
Instructor guide
Class timing
- Review the EKF with state [x, y, θ, s] and brief the task20 min
- Stand still 5 minutes per fix type and fill in Table 150 min
- Write the EKF to read real data and set R by fix type110 min
- Compute NIS, adjust R, try a single R and fill in Table 2100 min
- Define c and m, compute the supervisor modes and fill in Table 350 min
- Answer the questions and run the hand-in checklist30 min
Expected results
- Table 1: if there is no standing data, use the lesson's planning values fixed 0.02 m, float 0.30 m, single 2.5 m. Measured values often differ (float under trees may exceed 0.30 m) and the two axes may differ. A strong answer uses the larger axis or the combined value as the sigma in R.
- Table 2: the 95% bounds of the mean NIS (2 degrees of freedom) are [χ²0.025(2n)/n, χ²0.975(2n)/n], for example 1.63 to 2.41 at n = 100, 1.78 to 2.23 at n = 300 and 1.88 to 2.13 at n = 1,000. In the lesson (Example 3) R by fix type gave 1.94, 1.96, 1.96, a constant 0.02 m gave 101.8, 798.3 and 28,194.6, and half sigma gave about 7.2 to 7.9. After adjusting, every fix type should be inside the bounds or slightly below.
- Table 3: with c = 0.6 m and m = 0.1 m as in Example 4, σ_max = 0.167 m and green means sigma at most 0.083 m. In the lesson R by fix type gave green 73.6%, amber 22.6%, red 3.8% and a mean speed of 1.36 m/s, while a constant 0.02 m gave green 100% although the true error exceeded 0.6 m for 25.31% of the time. If your lane has c = 0.8 m and m = 0.2 m, σ_max = 0.200 m.
- A single R equal to the fixed value (0.02 m) makes the single-fix NIS very high, because NIS grows with the square of true error over believed sigma, (2.5/0.02)² = 15,625 times, so the filter is overconfident. Accuracy alone is not enough because two filters with equal error (0.06 and 0.07 m in the lesson) report very different sigmas, and the supervisor and planner decide with that sigma.
- NIS scales roughly as 1/sigma², so multiply sigma by √(8/2) = 2.0 (R by 4) and recompute NIS. If NIS is below the bounds, say 1, multiply sigma by √(1/2) = 0.71. A strong answer adds that if it still does not fit after adjusting, there may be a systematic error such as multipath that the filter does not model.
- It should be within ±2 sigma about 95% of the time. If the true error often exceeds 2 sigma, the filter is overconfident and R or Q must grow; if the true error is always much smaller than sigma, the filter is too cautious and loses availability for nothing.
- The number depends on the field (the lesson gives red 3.8% with R by fix type). Good ways out are switching to LiDAR trunk-line following, waiting a limited time for a better fix, then telling the operator, not waiting without limit.
Discussion questions
- Between a filter that is accurate but overconfident and one that is too cautious, which is more dangerous in the orchard, and why?
- Why is widening the gate to make a warning disappear the wrong fix?
- To cut time in amber and red, what kind of data should be added?
Adapting to student background
- Upper secondary (M.6)
- Have them write the prediction and correction equations of the [x, y, θ, s] EKF by hand, and look up the χ² bounds in a statistics table against scipy before using the code.
- Vocational certificate
- Let them do the 5-minute standing and real logging, use an EKF template with the maths filled in by the lecturer, and change only the sigma values to watch NIS change.
- Diploma
- Extension: add a real gyro from a department robot to the filter, and compare NIS and check-point error with and without the gyro.
3Worksheet 3 Build a costmap, plan a route and replan
Analysis activity · About 6 h of class time · CLO2
Objective: Build a layered costmap, plan with A* and D* Lite, compare RRT with RRT*, and compute a drone height profile
Equipment
- Terrain data prepared by the lecturer (point cloud or DTM) or a simulated 60 × 40 m area
- A computer with Python and the example code at /downloads/uat-461/
Safety
- Desk and simulator work with no real flight or driving
- Use assumed data or data the group recorded; do not use data of outsiders
Steps
- Use terrain data or build a simulated area with at least three kinds of obstacle, and adapt Example 1 to build a costmap of at least four layers
- Adjust r_ins, r_infl and k and state the values that keep a 0.8 m wide vehicle at least half a metre from trunks
- Run Example 2 with the group's start and goal and compare the cells expanded by Dijkstra and A*
- Place a simulated branch at three positions along the route, compare A* from scratch with D* Lite and explain the ratio
- Run Example 3 with 6 new seeds and report the mean and range of path length for RRT and RRT*
- Compute the height profile as in Example 4 for the group's flight line and state the horizontal room needed before and after the row of trees
Deliverables
- Costmap image and chosen parameters
- Table of cells expanded by Dijkstra, A* and D* Lite
- Table of RRT and RRT* path lengths
- Height profile and the horizontal room required
Checklist
- Table 1 has at least four layers with cell counts and states the r_ins, r_infl and k actually used
- Table 2 covers the initial Dijkstra, A* and D* Lite plans and the three branch positions, with equal A* and D* Lite costs in each case
- Table 3 has all 6 seeds plus the mean, minimum and maximum
- The height profile states the horizontal room before and after the tree row, with no stretch climbing or descending faster than the limits
- The costmap image has a colour key for every layer and marks the start, the goal and the branches
Instructor guide
Class timing
- Review layered costmaps and inflation20 min
- Build the four-layer costmap and tune the inflation parameters90 min
- Run Dijkstra, A* and D* Lite with three branch positions90 min
- Run RRT and RRT* with 6 seeds75 min
- Compute the drone height profile55 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (if the Example 1 simulated area is used): terrain lethal 995 and graded 1,000 cells, trunks 140, hoses graded 1,920, keep-out 256; lethal cells 1,367 before and 1,931 after inflation (r_ins = 0.5 m, r_infl = 1.5 m, k = 3.0). Raising r_ins to 0.9 m must give more than 1,931 lethal cells after inflation.
- Table 2 (Example 2): Dijkstra 7,088 cells, A* 4,629, D* Lite 4,516, all with cost 102.9; after the branch A* from scratch 1,847 cells and D* Lite 348, both cost 72.1, ratio 1,847/348 = 5.3. If A* and D* Lite costs differ in the same case, the update of the blocked cells is wrong.
- Table 3 (Example 3): RRT gives 72.1 m at both 500 and 3,000 samples; RRT* gives 60.1 m at 500 and 57.2 m at 3,000, against the 56.9 m shortest route through the bridge. New seeds give different values; accept when RRT does not improve after its first path and RRT* at 3,000 samples is within about 1 m of 56.9 m.
- The distance from the vehicle centre to the trunk-cell edge must be at least the half width 0.4 m plus the 0.5 m clearance, so r_ins must be at least 0.9 m. A cell 1.2 m away costs 252e^(-3.0 x (1.2 - 0.9)) = 102.5, and r_infl should exceed r_ins, for example 1.5 m (cost 41.7 there). With r_ins still at 0.5 m a cell at 0.9 m costs only 75.9 and the vehicle can come closer than half a metre.
- In the lesson the saving is 1 - 4,629/7,088 = 34.7%, because the heuristic uses the open-ground weight of 1 while cells near trunks and hoses weigh up to 26, so the true cost is far above what the heuristic expects and A* still expands widely like Dijkstra. A strong answer adds that the heuristic must never exceed the true cost so the cheapest path is still found.
- The answer depends on the positions chosen. A strong answer explains that A* from scratch works in proportion to the remaining distance to the goal, while D* Lite works in proportion to the number of cells whose old values passed through the branch and must be repaired, so the ratio changes with where the branch lies relative to the old path and the goal, and a branch off the cheapest path costs D* Lite almost nothing.
- Example 4: 13.0 m above ground is needed over the first crown; climbing from 3 m at a slope of 2.0/3.0 needs 10/(2/3) = 15 m of horizontal room (the profile gives 14.5 m because of the first crown cell), and descending from about 13.25 m at 1.5/3.0 needs 10.25/0.5 = 20.5 m after the row. A strong answer also explains that over the 1 m gap between crowns the height stays at 13.0 m because the drone could not climb back in time.
Discussion questions
- If cost_scaling_factor in Nav2 is raised, does the vehicle run closer to or further from obstacles, and does that suit an orchard with workers?
- When should A* from scratch be used instead of D* Lite even though it expands more cells?
- Why can a public terrain database not be used to plan a height of 3 m above ground?
Adapting to student background
- Upper secondary (M.6)
- Have them trace A* by hand on a 5 x 5 grid with different cell weights before running the code, and show that the open-ground heuristic never exceeds the true cost.
- Vocational certificate
- Have them draw the simulated area on grid paper and label the layers first, then change only r_ins and k in the code to watch the costmap image change; use a fill-in table for Δz/m.
- Diploma
- Extension: build a costmap from a LiDAR point cloud the department recorded on a real site, and compare the DTM with three points measured by a level.
4Worksheet 4 Dodge, smooth and track in simulation
Analysis activity · About 6 h of class time · CLO2, CLO3
Objective: Test a local planner, VFH, a velocity obstacle, a minimum-snap trajectory and three trackers in a 2D simulation
Equipment
- A computer with Python (numpy, scipy) and the example code at /downloads/uat-461/
- The group's simulated scene with an obstacle pile and a walker
Safety
- Desk and simulator work with no real flight or driving
- Use assumed data or data the group recorded; do not use data of outsiders
Steps
- Build a 2D simulated lane with an obstacle pile, a global path with at least two waypoints and a walker who appears after a few seconds
- Adapt Example 1: run DWA straight and along the global path; change the three score weights and report clearance and time
- Feed one scan to the Example 2 code, change the threshold and minimum valley width, and report the chosen direction
- Apply Example 3 to the walker's position and speed, draw the velocity obstacle and state the closest safe velocity with and without turning
- Run Example 4 on the group's waypoints and limits and report the stretch factor, the final time and the binding limit
- Run Example 5 with the group robot's wheelbase, speed and steering lag; report RMS and largest error and recommend one controller
Deliverables
- Table of three DWA runs
- Histogram plot and the chosen direction
- Velocity-obstacle plot and safe velocity
- Stretch factor and the RMS and largest-error table for three controllers
Checklist
- Table 1 has the straight run, the global-path run and at least three weight settings
- Table 2 has at least four rows changing the threshold or width one at a time
- The velocity-obstacle plot shows the preferred velocity and the safe velocities with and without turning, with units
- The stretch factor shows both v_peak/v_lim and √(a_peak/a_lim) and names the binding limit
- Table 3 uses the group robot's wheelbase, speed and steering lag, stated under the table
Instructor guide
Class timing
- Review local planners and build the simulated scene45 min
- Run DWA and the potential field and fill in Table 175 min
- VFH and the velocity obstacle75 min
- Minimum-snap trajectory and stretch factor60 min
- Three trackers and Table 375 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (Example 1): potential field stuck, 8.6 m left, clearance -0.20 m (overlapping the branches), peak acceleration 30.00 m/s²; DWA straight stuck, 8.9 m left, clearance 0.05 m, 1.00 m/s²; DWA on the global path reached in 24 s with 0.40 m clearance and 1.00 m/s². Raising the clearance weight (β) should increase clearance and time; raising the speed weight (γ) does the opposite.
- Table 2 (Example 2, three obstacles): threshold 0.10 and minimum width 15° block 18 bins and steer -27.5°; raising the minimum width to 20° drops the 15° valley and steers 30.0°; lowering the threshold to 0.05 blocks 22 bins and steers 27.5°; raising it to 0.20 blocks 12 bins and still steers -27.5°. Your scene gives other values, but a lower threshold or a larger minimum width must push the chosen direction further from the target.
- Table 3 (Example 5, wheelbase 1.0 m, 1.5 m/s, 0.2 s lag): pure pursuit 2.3 s, straight RMS 0.015 m and largest 0.077 m, bend 0.030 and 0.076 m; Stanley 2.2 s, 0.012 and 0.097 m, bend 0.111 and 0.121 m; LQR with feed-forward 2.0 s, 0.008 and 0.043 m, bend 0.017 and 0.044 m. Your order should be similar, with Stanley holding the largest standing offset in the bend.
- The potential field knows no acceleration limit, its repulsion grows very fast near obstacles, and attraction and repulsion cancel in front of the U-shaped pile (a local minimum), so it chatters back and forth. DWA searches only velocities reachable in one period, so it stays at 1.00 m/s², but it looks only about 2 s ahead, so every arc towards the goal cannot stop in time (not admissible). A strong answer concludes that the local minimum is a property of the problem and the way out is waypoints from the global planner.
- Example 3: the walker is 6.5 m away, the cone half-angle is 9.7°, the preferred velocity conflicts in 3.3 s, the closest safe velocity is 1.5 m/s at -10° (a change of 0.26 m/s), and without turning 1.1 m/s. Turning behind the walker is better because the walker is moving into the space that turning away from the current position would use; the velocity obstacle uses the walker's velocity, so it avoids where the walker will be, not where the walker is.
- Example 4: s = max(1, 4.87/3.0, √(2.89/2.0)) = max(1, 1.62, 1.20) = 1.62, speed binds, and the total time goes from 11.3 s to 18.4 s. With the acceleration limit cut to 1.0 m/s², √2.89 = 1.70 exceeds 1.62, so acceleration binds and the total is about 19.3 s. Your values depend on your waypoints and limits.
- The answer depends on your table. A strong answer picks LQR with feed-forward when the trajectory is smooth and its curvature known (such as after the minimum-snap step), pure pursuit when the path is rough or noisy, and avoids Stanley on tight headland turns because it holds about 0.12 m of standing offset in the bend, and states that the choice must be tested on the sharpest bend of the real route with steering lag.
Discussion questions
- Why does a walking person need a wider margin R than a fixed obstacle, recomputed every cycle?
- Minimum snap gives a smooth trajectory but no clearance guarantee. How would your group check the trajectory's clearance?
- If the robot picks a narrow 15° valley, what should it do with its speed, and why?
Adapting to student background
- Upper secondary (M.6)
- Have them compute the DWA window and the admissible speed v ≤ √(2a·dist) by hand for a few cases, and differentiate a polynomial to see that stretching time by s divides speed by s and acceleration by s².
- Vocational certificate
- Have them lay out the scene with real cones on the floor before drawing it in code, change one weight at a time and log it in the table, and read the velocity obstacle from a plot the lecturer prepared.
- Diploma
- Extension: measure the real steering lag of a department robot with a step command, timing it to 63%, and use this value instead of 0.2 s in Example 5.
5Worksheet 5 Time budget, behavior tree and acceptance test
Analysis activity · About 6 h of class time · CLO3
Objective: Compute the replanning time budget, choose the retry count, design a scenario set, report failure rates with confidence intervals and write a verification matrix
Equipment
- Pipeline delay data from the module 1 lab and the group's simulator
- A 0.3 m wide object and a test area for measuring the sensing range (if available)
- A computer with Python (numpy, scipy) and the example code at /downloads/uat-461/
Safety
- If measuring sensing range in the field, follow the area's conditions, do not obstruct others, and do not drive the vehicle near people
- The rest is desk and simulator work with no real flight
Steps
- Measure the group's pipeline delay and the sensing range with a 0.3 m wide object, then compute d_plan and t_plan as in Example 1
- Record the noise of the cost estimate of two nearly equal routes for 10 minutes, set the switching margin to twice the standard deviation of the difference, and compare with the naive rule over 50 trips
- Adapt Example 3 to the simulator's recovery order and durations, choose the retry count and justify it
- List five factors with levels, generate a pairwise set with the Example 4 code and add by hand the two most dangerous combinations
- Run Example 5 on the group's lane, report each design's contact rate with its interval and the number of runs the acceptance limit requires
- Write a one-page verification matrix with a threshold, a metric and a test method for each requirement
Deliverables
- Table of d_plan and t_plan for the group's robot
- Table of missions completed against retries
- Pairwise scenario set with the cases added by hand
- Contact-rate table with confidence intervals and the one-page verification matrix
Checklist
- Table 1 uses the delay measured in the module 1 lab and the sensing range you measured, with the formula shown
- The switching margin is set from twice the measured SD of the difference, not as a percentage
- The scenario set lists all five factors with levels and two most dangerous combinations added by hand with reasons
- Table 3 reports every rate with its Clopper-Pearson interval, not a count presented as a rate
- The one-page verification matrix has a threshold, a metric and a test method for every requirement
Instructor guide
Class timing
- Review the time budget, Nav2 and behavior trees30 min
- Measure the sensing range and compute the time budget (Table 1)60 min
- Record the noise and compare switching rules (Table 2)75 min
- Adapt the behavior tree and build the pairwise set75 min
- Run the Monte Carlo contact rate (Table 3)60 min
- Write the verification matrix, answer the questions and run the checklist60 min
Expected results
- Table 1 (Example 1, 8 m sensing range, 0.5 s data age, 1 m margin): robot at 1.5 m/s braking 1.0 m/s² gives 0.75 m, 1.12 m, d_plan 5.12 m and t_plan 3.42 s; drone at 5 m/s braking 3 m/s² gives 2.50 m, 4.17 m, d_plan 0.33 m and t_plan 0.07 s. With a 1 s planner the drone may fly at most 3.39 m/s. Your values depend on the measured sensing range and delay.
- Table 2: with 3 s of noise on each route as in Example 2, the SD of the difference is 3√2 = 4.24 s and twice that is 8.49 s. In the lesson (300 trips) the naive rule switched 75.9 times per trip, took 478.3 s and reached the goal in 295 of 300 trips; a 6 s margin gave 5.1 switches and 126.8 s, and adding a 10 s dwell gave 3.7 switches and 120.0 s. Your 50 trips must show the same trend.
- Table 3 (Example 5, 1,000 runs each): no supervisor 229 contacts, 22.9% (20.33% to 25.63%), median margin 0.20 m; supervisor 3, 0.3% (0.06% to 0.87%), 0.34 m; lying fixes 12, 1.2% (0.62% to 2.09%), 0.32 m; lying fixes with gate 9, 0.9% (0.41% to 1.70%), 0.34 m. The supervisor takes 108.3 s against 80 s, about 35% longer.
- Example 3: 0, 1, 3 and 6 retries complete 24.5%, 55.2%, 64.8% and 77.8%, with 17.9, 19.0, 28.2 and 35.5 s before giving up. One retry cures every ghost because clearing the costmaps is first in the cycle; temporary blockers are cured when the cycle reaches the 5 s wait; permanent blockers are never cured. A strong answer picks a count that balances the blocker mix on your field and states that a failure must reach the operator.
- Example 4: the full set is 3 x 3 x 3 x 2 x 2 = 108 scenarios; the pairwise set has 10 (9%), covering all 67 level pairs but only 96 of 171 three-way combinations (56%). Combinations worth adding include closed canopy with a GNSS outage, a 1.4 m lane and a walker, and closed canopy with multipath at 1.5 m/s. A pairwise set can miss failures that need three conditions at once.
- n ≥ ln(0.05)/ln(1 - p): 1% needs 299 runs, 0.5% needs 598 and 0.1% needs 2,995 (about 3/p). A strong answer says these are contact-free runs; with even one contact more runs are needed.
- In the lesson the lying-fix intervals (0.62% to 2.09%) and the lying-fix-with-gate intervals (0.41% to 1.70%) overlap, so it cannot be concluded that the gate helps; many times more runs are needed. No supervisor and supervisor do not overlap at all, so the supervisor really helps.
Discussion questions
- Why does a fast drone need a reflex layer (brake or hover) that does not wait for the planner?
- Can a simulator never checked against field data serve as acceptance evidence?
- What does the median margin tell you that the contact count cannot?
Adapting to student background
- Upper secondary (M.6)
- Have them derive the highest speed from the quadratic v(t_plan + τ) + v²/2a + m = R themselves, and explain the Clopper-Pearson interval from the binomial distribution before using scipy.
- Vocational certificate
- Let them measure the sensing range with the 0.3 m object in the field and log it, then compute d_plan term by term in a fill-in table; explain the recovery order with a behavior tree drawn on paper.
- Diploma
- Extension: configure the Nav2 navigate-to-pose behavior tree in the simulator with the retry count your group chose, and compare the result with the Python model.
6Worksheet 6 Link budget and time budget of a drone team
Lab · About 6 h of class time · CLO4
Objective: Calculate and measure the link budget, data load and data age of a 12-drone team, then choose an architecture with reasons from your own numbers
Equipment
- Datasheets of two radios the department has (for example a 2.4 GHz mesh module and a LoRa module)
- At least two radios of each type for RSSI measurement
- Measuring tape or a GNSS receiver
- Computer with Python and the example code at /downloads/uat-461/
Safety
- Desk work and ground radio measurements; no drone is flown
- Use only permitted equipment and keep transmit power within the limit for that band
- Watch for traffic and people while walking the measurements on campus
Steps
- Record frequency, transmit power, receiver sensitivity and bit rate of the two radios, and check the band is usable
- Calculate the allowed loss and range with the code of Example 2 at margins of 10, 15 and 20 dB
- Carry a radio to 25, 50, 100, 150 and 200 m, record at least 20 RSSI readings per distance, take the median, plot against the model and find the exponent n
- Calculate the TDMA frame and worst data age of the 12-drone team at the chosen SF with the code of Example 3
- Choose one architecture for the team with reasons from your own numbers
Deliverables
- Link-budget table
- Plot of RSSI against the model with the measured n
- Table of TDMA frame and data age
- One-page architecture conclusion
Checklist
- Table 1 uses real datasheet values of both radios at all three margins, with the datasheet named
- Table 2 has all 5 distances per radio, at least 20 readings each, using the median
- The RSSI plot against the model shows the n found from the slope, with the method
- A note records that the band and transmit power were checked against the rules in force before switching the radios on
- The one-page architecture conclusion cites your own numbers (range, data age, load)
Instructor guide
Class timing
- Safety briefing, check band and transmit power20 min
- Read the datasheets and compute the link budget (Table 1)60 min
- Walk the RSSI measurements at five distances per radio120 min
- Take medians, plot against the model and find n (Table 2)60 min
- Compute the TDMA frame and data age (Table 3)45 min
- Write the architecture conclusion, answer the questions and run the checklist55 min
Expected results
- Table 1 (with Example 2 values, 20 dBm, 2 dBi antennas at both ends, n = 2.7): 2.4 GHz mesh at -90 dBm with margins of 10, 15 and 20 dB allows 104, 99 and 94 dB, ranges 234, 153 and 100 m; LoRa SF7 at 920 MHz and -123 dBm allows 137, 132 and 127 dB, ranges 7,933, 5,179 and 3,381 m. Real values depend on the datasheets of the department's radios.
- Table 2: the n = 2.7 model (24 dBm including antennas) gives the 2.4 GHz mesh -53.8, -61.9, -70.0, -74.8 and -78.2 dBm at 25, 50, 100, 150 and 200 m, and 920 MHz LoRa -45.5, -53.6, -61.7, -66.5 and -69.8 dBm. Open campus ground usually gives n of about 2 to 3; a few dB from the model is normal. Find n from the slope of RSSI against 10log10 d (n = minus the slope).
- Table 3 (Example 3, 40-byte message, 20 ms guard): SF7 82.2 ms, frame 1.23 s, age 1.31 s, 13.1 m; SF8 154.1 ms, 2.09 s, 2.24 s, 22.4 m; SF9 287.7 ms, 3.69 s, 3.98 s, 39.8 m; SF10 534.5 ms, 6.65 s, 7.19 s, 71.9 m.
- Example: with a measured n = 2.2 the mesh range at a 15 dB margin becomes 10^((99 - 40.04)/22) = 478 m; with n = 3.2 only 70 m (against 153 m at n = 2.7). A strong answer notes that a real container yard has steel stacks, so n may be higher than on campus, and the mesh still belongs inside small groups with LoRa as the backbone.
- SF7 gives a 1.31 s age (13.1 m at 10 m/s), SF9 3.98 s (39.8 m), 26.7 m more. The SF7 link already has a large margin, so a higher SF costs data age and buys nothing. This data age is used again in module 8 (gain ceiling) and module 9 (separation).
- Flooding uses n² x 5 x 320 bit/s and fills 1 Mbit/s at n = √(10⁶/1,600) = 25 drones; with signing (424 bits) about 21.7, so 22 drones. At 12 drones it uses 230.4 kbit/s (23%), which is fine, but it does not scale linearly; use one-hop broadcast inside small groups and let group leaders forward.
- Example 4: star 0 cut off, largest group 1 if the station fails; mesh 11 cut off (single gateway), 12; hybrid 2, 12; hybrid with deputies 0, 12 but 44 links. A strong answer weighs resilience against the number of links and the data load.
Discussion questions
- Which team functions belong on the aircraft and which can stay at the station, judging by the data age you calculated?
- Why can the range in a manufacturer's datasheet not be used directly to design for the container yard?
- Is MAVLink message signing worth the 32.5% extra load, and in which cases?
Adapting to student background
- Upper secondary (M.6)
- Have them derive L_max and the log-distance range by hand and fit the slope by linear regression on paper before using numpy; give extra time setting up the radios and reading RSSI with a hands-on peer.
- Vocational certificate
- Let them run the radio setup, tape the distances and take all 20 RSSI readings, then compute the link budget term by term in a fill-in table (power plus antennas minus sensitivity minus margin).
- Diploma
- Extension: repeat the RSSI walk near steel buildings or rows of parked cars, compare n with open ground, and propose a margin suited to a container yard.
7Worksheet 7 Allocating blocks for a fictional team on the campus map
Analysis activity · About 6 h of class time · CLO5
Objective: Allocate tasks with greedy, minimum sum and bottleneck, try the auction and CBAA, and decide how to reallocate when a drone fails
Equipment
- Handheld or department GNSS receiver
- Map of an open area of the campus
- Computer with Python and the example code at /downloads/uat-461/
Safety
- Desk work plus position measurement on the ground; no drone is flown
- Watch for traffic and people while walking to measure positions on campus
- Do not enter restricted areas of the campus
Steps
- Choose 6 start points and 6 task points, measure coordinates with GNSS and convert to metres in a local frame
- Build the 6 × 6 distance matrix and allocate with greedy, minimum sum and bottleneck using the functions of Example 1; note which criterion really differs
- Run the price auction at three values of ε; record the rounds and the gap from the optimum
- Run CBAA on graphs of your own design (for example a path and a ring); record the rounds and check there is no conflict
- Remove one start point part-way, reallocate with the three methods of Example 4 and choose one with a reason from the numbers
Deliverables
- Distance matrix
- Results table of the three criteria
- Table of auction and CBAA rounds
- One-page reallocation conclusion
Checklist
- Record 1 has local coordinates of all 12 points in metres and all 36 cells of the distance matrix
- Table 1 covers all three methods with total and longest leg, and the minimum sum is not larger than greedy
- Table 2 has the auction at three ε values and CBAA on at least two graphs, with the bound used for comparison
- The reallocation conclusion counts the drones that change task and names the uncovered task
- The one-page conclusion picks one method with reasons from the table numbers
Instructor guide
Class timing
- Brief the task and safety while walking to measure positions15 min
- Measure 12 GNSS positions and convert to metres in a local frame75 min
- Build the distance matrix and allocate with three criteria (Table 1)75 min
- Run the auction and CBAA (Table 2)90 min
- Remove a start point part-way and reallocate three ways60 min
- Write the conclusion, answer the questions and run the checklist45 min
Expected results
- Record 1: values are specific to each group. Check that each cell is √(ΔE² + ΔN²) between a start and a task point, in metres, and that every point was converted with the same reference point. Phone GNSS errs by a few metres, so points closer than about 10 m should be avoided.
- Table 1: the minimum sum must not exceed greedy, and the bottleneck's longest leg must not exceed the minimum sum's. The lesson's small 4 x 4 example: greedy total 25 min, longest 9; minimum sum 20 min, longest 10; bottleneck 22 min, longest 7. In the 12-drone yard greedy is 8.1% longer than the minimum sum (9,294 against 8,599 m).
- Table 2: the auction bound is nε = 6ε for n = 6 (600, 60 and 6 for ε = 100, 10 and 1). Smaller ε needs more rounds; in the lesson's 12-drone case ε = 100, 10, 1 and 0.1 took 43, 287, 1,046 and 1,808 rounds with gaps of 57.2, 8.4, 0 and 0. For CBAA with 6 drones the path has D = 5 and a bound of 30 rounds, the ring D = 3 and 18 rounds, and every case must be conflict-free.
- If the minimum sum already reaches the lower bound, the bottleneck cannot shorten the longest leg (as in the lesson's yard, both 1,142 m). If not, the bottleneck shortens the longest leg at the cost of a larger total (the small example goes from 10 to 7 min, the total from 20 to 22 min). A strong answer picks the criterion by when the mission ends.
- A strong answer picks an ε whose real gap is small enough for the mission without too many rounds, for example ε = 1 (bound 6) when distances are in metres and 6 m is acceptable, and notes that the nε bound is a worst case and always loose, while the number of messages grows about as 1/ε.
- It should equal sequential greedy on every graph (the lesson gets 6,231 on every graph, 99.6% of the optimum 6,255). CBAA guarantees no conflicts on a static connected graph, convergence within N_min x D rounds and at least 50% of the optimum; it does not guarantee the optimum.
- In the lesson a full re-solve gives 3,479 m with 3 drones changing, re-solve with a switch cost 3,488 m (0.3% more) with 1, and local repair 3,550 m (2.0% more) with 1. With 5 drones and 6 tasks one task must be left. Each drone that changes needs a new command over a slow link that may be lost, and its new path may cross another drone's in mid-air.
Discussion questions
- If the link to the station is lost, how should the team allocate tasks, and what condition must the communication graph meet?
- For a container inspection that ends when the last drone finishes, which criterion fits, and what about a mission that must save total energy?
- Why does greedy look fine in some cases but poor in others?
Adapting to student background
- Upper secondary (M.6)
- Have them solve the 3 x 3 practice assignment by hand with greedy and minimum sum, and trace a few auction rounds by hand to see how prices rise.
- Vocational certificate
- Let them lead the position walk and convert coordinates with a spreadsheet template from the lecturer, then allocate with task cards on the desk before running the code.
- Diploma
- Extension: replace straight distances with travel times measured by walking at constant speed, and compare the allocation with the distance-matrix result.
8Worksheet 8 Designing the communication graph and holding a formation in simulation
Analysis activity · About 6 h of class time · CLO5
Objective: Design a communication graph using λ₂ and λ_max, test formation keeping when a drone fails, and set a gain that tolerates delay
Equipment
- Computer with Python (numpy) and the example code at /downloads/uat-461/
- The team's data-age table from worksheet 6
Safety
- Desk work with simulation code; no drone is flown
- The model assumes drones follow velocity commands instantly; results show trends, not the real values of any aircraft
Steps
- Build 3 communication graphs for 12 drones (path, lattice and one of your own); calculate λ₂, λ_max and d_max, predict the consensus steps and compare with simulation using the code of Example 1
- Set the formation you want and run Example 3 on your graph; measure RMS at 60 s
- Remove drones one at a time at 10 s and find the drone whose loss makes RMS at 60 s worst; check the graph stays connected with λ₂ > 0
- Calculate the delay limit from λ_max and simulate at 0.5, 1.0 and 1.5 times the limit to confirm
- Set a gain suited to a data age of 1.3 s and record what it costs in speed
Deliverables
- Table of λ₂ and predicted against measured steps
- Plot of RMS against time
- Table of results from removing drones one by one
- One-page proposal for the final graph
Checklist
- Table 1 has all three graphs, predicted steps use ε = 0.5/d_max and differ from the measured ones by no more than about 10%
- Table 2 removes all 12 drones in turn and states connectivity by λ₂ > 0 in every row
- Table 3 simulates at 0.5, 1.0 and 1.5 times the limit and at least two gains at a 1.3 s data age
- The RMS-against-time plot has axis units and marks when the drone failed
- The final graph proposal states the extra messages against the resilience gained
Instructor guide
Class timing
- Review the Laplacian, λ₂ and λ_max30 min
- Build three graphs and measure consensus steps (Table 1)75 min
- Hold the formation and remove drones one at a time (Table 2)105 min
- Test delay and gain (Table 3)75 min
- Write the graph proposal, answer the questions and run the checklist75 min
Expected results
- Table 1 (ε = 0.5/d_max): 12-drone path λ₂ 0.068, λ_max 3.932, d_max 2, predicted 268.0 steps, measured 261; wrap-around lattice (Example 1) λ₂ 1.268, λ_max 6.000, d_max 4, predicted 26.7, measured 25; non-wrapping lattice (Example 3) λ₂ 0.334, λ_max 6.000, d_max 4, predicted 108.1 steps. Your measured values should stay close to the predictions.
- Table 2: on the path, removing a middle drone cuts the graph in two, λ₂ = 0, and the part not connected to the leader is not pulled to the plan (the lesson's drone 5 gives RMS 11.8 m and worst 18.7 m at 60 s, against 4.5 m without failure). Removing an end drone keeps it connected, λ₂ = 0.081. On the lattice, removing drone 5 keeps it connected, λ₂ = 0.199, and RMS stays 1.6 m with worst 1.8 m. Removing the leader (drone 6) leaves the whole formation with no anchor to the plan.
- Table 3 (ring, λ_max = 4.00, τ* = 0.393 s): 0.5 times (0.196 s) converges to about 0.00004 m from a 22.1 m start; 1.0 times (0.393 s) sits on the boundary, decaying very slowly while oscillating, about 0.17 m after 40 s; 1.5 times (0.589 s) blows up to about 1.5 x 10⁸ m. At a 1.3 s data age, gain 0.5 blows up (64,398 m) and 0.25 converges (0.1885 m). The path has τ* = 0.400 s and the lattice 0.262 s.
- The wrap-around lattice agrees fastest per step but uses twice the ring's messages per step. Speed depends on both λ₂ and d_max because ε must stay below 1/d_max; the star has λ₂ = 1.000, more than the ring, yet takes 97 steps against 61 because d_max = 11.
- A middle drone of the path between the leader and the end is a cut vertex (λ₂ = 0 after removal); the cut-off part agrees among itself but is not pulled to the plan. The lattice has links that skip one drone, so λ₂ stays above 0. A strong answer says redundant links cost twice the messages.
- At 1.0 times the system is on the stability boundary and keeps oscillating without clearly decaying or growing; below the limit it converges and above it blows up, matching Olfati-Saber and Murray's result that consensus converges only when τ < π/(2λ_max).
- The gain must stay below π/(2 x 1.3 x λ_max): 0.30 for the ring, 0.31 for the path and 0.20 for the lattice. Choosing 0.25 on the ring slows agreement in proportion to the gain, 0.8/0.25 = 3.2 times, so fast data should go over the lower-delay short-range radio.
Discussion questions
- Why is the leader pinned to the plan a weak point, and how should a standby leader be designed?
- The model assumes drones follow velocity commands instantly. How would results change with the autopilot's response time added?
- What should a drone do when it has not heard its neighbours for longer than a set time?
Adapting to student background
- Upper secondary (M.6)
- Have them compute the Laplacian and eigenvalues of a 4-node graph by hand and derive the step formula ln(1/δ)/(-ln(1 - ελ₂)) before running the 12-drone case.
- Vocational certificate
- Have them draw the graphs as dots and lines on paper, count neighbours to find d_max, and remove drones one at a time on the drawing to see whether it breaks before looking at λ₂.
- Diploma
- Extension: add a 0.5 s first-order velocity-loop response to the Example 3 model and compare the RMS at 60 s with the instant-response model.
9Worksheet 9 Separation, ORCA and monitoring in simulation
Analysis activity · About 6 h of class time · CLO6
Objective: Calculate separation from data age, test ORCA and a symmetry-breaking mechanism, compare altitude layers with priority, and design fleet-state monitoring
Equipment
- Computer with Python (numpy) and the example code at /downloads/uat-461/
- Specifications of a department drone (braking deceleration, position error)
- The two allocation results from worksheet 7
Safety
- Desk work with simulation code; no drone is flown
- The vertical separation in the worksheet is assumed; real use needs downwash testing first
Steps
- Set the team's values from the drone data and calculate separation at data ages of 0.5, 1.3 and 4.0 s with the function of Example 1
- Build a random 12-drone scenario and count pairs that come closer than the separation within 20 s; change the data age and compare
- Run the ORCA of Example 2 with exactly opposite goals and goals turned by 5, 10 and 20 degrees; design and test one symmetry-breaking mechanism
- Allocate with the two methods of module 7 and count conflicting leg pairs and layers for each plan as in Example 3
- Inject three anomalies into fictional telemetry, tune thresholds and hysteresis until nothing flickers, and calculate the keep-out zone around a lost drone
Deliverables
- Separation table
- ORCA results table
- Table of layers and waiting
- Monitoring event log
Checklist
- Table 1 uses the department drone's position error, braking and reaction time, and splits all three parts
- Table 2 has exactly opposite goals, turns of 5, 10 and 20 degrees, and your symmetry-breaking mechanism
- CPA is checked along the whole track, not only at waypoints, and conflicting leg pairs are counted for both plans
- Table 3 shows LOST separately from OK and includes the keep-out zone calculation for the lost drone
- The one-page proposal states the assumed values (such as vertical separation) and what must be tested on real aircraft
Instructor guide
Class timing
- Review separation, CPA and ORCA30 min
- Compute separation and count conflicting pairs (Table 1)75 min
- Test ORCA and symmetry breaking (Table 2)90 min
- Altitude layers and priority for the two plans60 min
- Inject anomalies and tune monitoring thresholds (Table 3)75 min
- Write the proposal, answer the questions and run the checklist30 min
Expected results
- Table 1 (Example 1 values: size 1 m, σ = 1.5 m, closing 10 m/s, reaction 0.5 s, braking 4 m/s²): age 0.5 s gives 7 + 10 + 6.25 = 23.25 m, 1.3 s gives 7 + 18 + 6.25 = 31.25 m (shown as 31.2 in the lesson), 4.0 s gives 7 + 45 + 6.25 = 58.25 m. Conflicting pairs in the lesson (0.2, 1.3 and 4.0 s) are 2, 4 and 9 and must always rise with data age. Your values depend on the department drone's specifications.
- Table 2 (Example 2): no avoidance reaches all 12 in 24.0 s but collides (closest 0.00 m); ORCA with exactly opposite goals does not collide (8.00 m) but no drone arrives, 75.5 m left on average; ORCA with goals turned 20 degrees gets all 12 there in 24.5 s with a closest distance of 8.00 m. The lesson gives no results at 5 and 10 degrees, so the group reports them. A strong answer names the smallest turn that gets all drones there, and the group's mechanism must not bring the closest distance below 8 m.
- Table 3 (Example 4): D03 OK to LOST at 44 s and back to OK at 56 s; D07 WARN at 69 s and CRIT at 79 s; D09 WARN at 70 s; D11 LOST at 94 s. At 119 s: 9 OK, 1 WARN, 1 CRIT, 1 LOST, oldest data 30 s. All three of your anomalies must be detected with no state flipping back and forth.
- At 1.3 s the old-data and reaction part, 10 x (1.3 + 0.5) = 18 m of 31.25 m (58%), is largest, so cut the data age first (for example with the short-range radio): at 0.5 s it gives 23.25 m, while cutting σ from 1.5 to 0.5 m gives 27.25 m and braking at 6 m/s² gives 29.17 m.
- It should (lesson: list order 13 of 66 pairs, 3 layers, 28 s total wait, last arrival 115.9 s; minimum sum 2 pairs, 2 layers, 4 s wait, 114.2 s), because an allocation with the smallest total distance tends to keep legs from crossing. If your plans differ, a strong answer explains it from the task positions chosen.
- Radius by the Example 1 formula: a 30 s age gives 1 + 6 + 10 x (30 + 0.5) + 6.25 = 318.25 m (318 m in the lesson); 12 s gives 138.25 m. Behaviours that shrink the zone include hovering in place or returning along its own path and layer, because they narrow where the drone can be.
- The hysteresis clears a warning only when the value is 5 points past the threshold (battery 40% or 10 satellites), so a value wobbling around the threshold does not flip the state. Without it the warning flickers until operators stop believing it and miss a real one.
Discussion questions
- Why can vertical separation not use the same value as horizontal?
- ORCA gives safety but not progress. How should a real team handle deadlock?
- Why can ranking hazards by S x L hide a rare catastrophe?
Adapting to student background
- Upper secondary (M.6)
- Have them derive the CPA formula t* = -r·v/v·v by minimising the squared distance, and work the CPA practice question by hand (10 s and 20 m) before running the code.
- Vocational certificate
- Have them compute separation part by part in a fill-in table from the specifications of a drone they can handle, and trace the event log on a printed timeline with coloured pens.
- Diploma
- Extension: feed real telemetry from one department flight tlog into your monitoring system and check that your thresholds raise no false warnings over the whole flight.
10Worksheet 10 Designing a test plan and evaluating the reliability of a fictional team
Analysis activity · About 6 h of class time · CLO6
Objective: Design a simulation scenario with pass criteria fixed before running, inject failures, calculate mission reliability, and propose how many missions must be flown to show reliability
Equipment
- Computer with Python (numpy, scipy) and the example code at /downloads/uat-461/
- Failure-rate data from the manufacturer or the department's flight logs
- If available: a machine with ArduPilot SITL installed
Safety
- Desk work with simulation code; no real drone is flown
- If SITL is used, run it on the prepared machine and do not connect real drones or radios
Steps
- Define the scenario (initial state, disturbances, injected failures) and write the pass criteria as numbers before running; sign and date
- Sweep delay and message loss as in Example 1 with 10 random seeds, comparing two controllers
- Inject failures as in Example 2 and find the minimum number of drones that meets the time budget
- Calculate mission reliability as in Example 3, comparing beta of 0, 0.02 and 0.10, and check by Monte Carlo
- If SITL is available start 3 vehicles with --count and --auto-sysid, check the system IDs differ, and run one simple scenario
- Calculate the number of missions that must succeed to show the team's target reliability as in Example 4
Deliverables
- Dated scenario and pass criteria
- Pass-rate table of the sweep
- Failure table and reliability table
- One-page test-plan proposal with the number of missions and reasons
Checklist
- The scenario and numeric pass criteria are signed and dated before any results table
- Table 1 has all 9 conditions x 2 controllers, reported as passes out of 10 seeds, not a single run
- Table 3 has beta of 0, 0.02 and 0.10, and the Monte Carlo result agrees with the formula within random scatter
- The number of missions in the proposal counts team missions, not single-drone sorties
- The one-page test-plan proposal states the model's limits and the reason for the number of missions
Instructor guide
Class timing
- Review the simulation ladder and write the pass criteria before running30 min
- Sweep delay and message loss (Table 1)90 min
- Inject failures and find the minimum fleet (Table 2)60 min
- Compute reliability and check by Monte Carlo (Table 3)75 min
- Multi-vehicle SITL (if available) or review the staged test plan60 min
- Compute the number of missions, write the proposal and run the checklist45 min
Expected results
- Table 1 (Example 1, K = 0.4, 1.5 m noise): the raw controller never passes (0/10), errors 35.75 m to 206.59 m; the extrapolated controller passes 10/10 in every case at 0.2 s delay (1.11 to 2.11 m), 10, 10 and 9 of 10 at 1.0 s (1.63 to 2.81 m), and only 5, 4 and 1 of 10 at 3.0 s (5.24 to 6.96 m). Your scenario gives other values but must show the ceiling of extrapolation.
- Table 2 (Example 2, 24 blocks, 90 s each, 450 s budget): 0 lost, 2 rounds, 327 s, 100% in budget; 1 to 4 lost, 3 rounds, 430 to 433 s, worst 436 s, 100%; 5 lost, 4 rounds, 537 s, worst 540 s, 0%. Rounds are ⌈24/m⌉, for example 2 rounds with 12 drones, 3 with 8 and 4 with 7.
- Table 3 (Example 3, λ = 0.04 per hour, 0.5 hour, 9 of 12 needed): p = 1 - e^(-0.02) = 0.0198; independent: drone group 0.99993, network 0.99910, mission 0.99404 (6.0 per 1,000); beta 0.10: 0.99798 and 0.99209 (7.9); 14 drones 0.99214 (7.9); two stations 0.99705 (2.9); beta 0.02: 0.99365 (6.4). Monte Carlo over 200,000 missions gives 0.99220 against the formula's 0.99209.
- To stop the bar being set to match results already seen. In the lesson extrapolation stops being enough from about 1 s of delay (at 3.0 s only 5, 4 and 1 of 10 pass) because it uses the planned velocity, not the real velocity the controller commands while correcting, so the extrapolation error grows with data age. The raw controller fails because neighbour data lag by vτ = 5 x 1.0 = 5 m at 1 s.
- At least 8 drones, because ⌈24/8⌉ = 3 rounds still fits, while 7 drones need ⌈24/7⌉ = 4 rounds and the time jumps from about 433 s to 537 s, over the 450 s budget. Time depends on a whole number of rounds, so it is a staircase with a cliff, information that does not come from one drone's reliability.
- At beta 0.10 a common cause takes every drone down together, so 9-of-12 or 9-of-14 redundancy cannot help (0.99209 to 0.99214), while the station, in series, is the limit, so two stations cut failures from 7.9 to 2.9 per 1,000. A strong answer concludes that you must find which part is the limit and where the common cause lies.
- n = ln(1 - C)/ln R: 0.99 at 95% needs 299 missions, 0.98 at 95% needs 149, 0.95 at 95% needs 59, 0.95 at 90% needs 45. 25 missions with no failure only show a failure rate below 11.3% at 95% confidence. The unit is the team mission. A strong answer proposes combining several layers of evidence (component tests, simulation validated against reality, staged flights).
Discussion questions
- How does the numerical model differ from multi-vehicle SITL, and which scenarios should be rerun in SITL?
- Partly different firmware can lower beta, but what costs must be weighed?
- If the 12-aircraft stage has a 0.63 chance of at least one failure, what must the team prepare before flying?
Adapting to student background
- Upper secondary (M.6)
- Have them derive the k-out-of-n formula from the binomial distribution and work the 4-of-5 practice by hand (0.91854), and derive n = ln(1 - C)/ln R from R^n = 1 - C.
- Vocational certificate
- Have them draw the series, parallel and k-out-of-n block diagram with the real parts (station, radios, drones) on the board, then use a fill-in table for ⌈24/m⌉ and time per round.
- Diploma
- Extension: start 3 SITL vehicles with --count and --auto-sysid, check the system IDs, and compare the closest approach of a simple scenario with the numerical model within a tolerance set beforehand.
Scoring rubric
For worksheets and the mini-project. Each criterion scores level (1–4) ÷ 4 × weight.
| Criterion | Weight | Excellent (4) | Good (3) | Fair (2) | Needs work (1) |
|---|---|---|---|---|---|
| Accuracy of calculations and code | 30% | All computed values correct (age of data, time budget, NIS, confidence intervals, stretch factor) and the code reruns | Nearly all correct, method shown | Some errors or missing steps | Many errors or no method |
| Experiment design and comparison with data or simulation | 25% | R set by fix type, NIS checked, a systematic scenario set designed, and results compared correctly with recorded data or simulation with the differences explained | Nearly complete, explanation of differences shallow | Missing consistency checks or an unsystematic scenario set | No comparison with data or simulation |
| Safety and robustness assessment | 25% | Margins, injected faults, retry count and the way out of the red mode stated with numerical reasons, and failure rates reported with confidence intervals | Margins and main faults stated but numerical reasons incomplete | Only normal cases considered, or counts reported as rates | No safety or robustness assessment |
| Communication and reporting | 20% | Verification matrix and report clear, assumptions and uncertainty stated, figures correct, and a to-the-point recommendation to the acceptor | Mostly clear, some assumptions missing | Lacks structure or unclear figures | Unreadable or incomplete |
Assessment map: CLOs and how they are assessed Draft
The CLOs are a web-team draft; the course owner sets the final ones (curriculum book, part 4). This table is built from the worksheet and module-quiz data, so it follows any change to the CLOs.
| CLO | Worksheets | Module quizzes |
|---|---|---|
| CLO1 Explain autonomous navigation architecture, localization and sensor fusion | W 1W 2 | M1M2 |
| CLO2 Develop path planning, obstacle avoidance and trajectory tracking for ground vehicles and UAS | W 3W 4 | M3M4M5 |
| CLO3 Test and evaluate the accuracy, safety and robustness of navigation systems in simulation and in the field | W 1W 2W 4W 5 | M2M4M5 |
| CLO4 Explain and choose the architecture of a multi-UAV system, and design inter-vehicle communication to suit the mission and the radio limits | W 6 | M6 |
| CLO5 Develop and test coordination, task allocation, formation flight and distributed control of several aircraft in simulation | W 7W 8 | M7M8M10 |
| CLO6 Evaluate the safety of multi-UAV flight through inter-aircraft collision avoidance, fleet-state monitoring, simulation and reliability evaluation | W 9W 10 | M9M10 |