Teaching pack · UAT 366
A 15-week teaching plan, 5 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 9 of 9 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 |
|---|---|---|---|
| Localization in GNSS-denied environments | M1 | Module 1: the position data chain, the error budget, VIO drift, the building coordinate frame | Covered |
| Mapping and SLAM | M2 | Module 2: a two-state Kalman filter, graph-based SLAM and loop closure | Covered |
| Obstacle avoidance | M3 | Module 3: potential fields, vector field histogram and flight-controller systems (PX4 Collision Prevention) | Covered |
| Path planning | M3M4 | Module 3: Planning a path with A* (occupancy grid and inflation, f = g + h, admissible heuristic, comparison with Dijkstra, sampling-based RRT; Example 3 A* in a warehouse aisle blocked by a pallet) and 'Why this matters' (planning and reactive layers) · Module 4: Closest approach between waypoints | Covered |
| Multi-aircraft communication and coordination | M4 | Module 4: communication (Example 3 swarm bandwidth) | Covered |
| Task allocation | M4M5 | Module 4: task allocation (exhaustive versus greedy) · Module 5: splitting jobs with the LPT rule | Covered |
| Formation flight | M4 | Module 4: Formation flight (position-, displacement- and distance-based control, leader-follower, consensus formation and the step-size condition; Example 4 leader-follower slots and consensus formation) and Flocking and mutual avoidance (Boids, ORCA, Crazyswarm) | Covered |
| Collision prevention | M3M4M5 | Module 3: flight-controller systems · Module 4: closest approach, ORCA · Module 5: separating drones from forklifts and people | Covered |
| Testing of multi-UAS autonomous systems | M4M5 | Module 4: the two-drone lab (SITL or Crazyswarm2 before real flight) · Module 5: safety and requirements, and the whole-system test in the lab | Covered |
Weekly teaching plan
| Week | Topic | Pre-class | Lecture | Lab | Evidence |
|---|---|---|---|---|---|
| 1 M1 | The position data chain and building frame | Read module 1 position data chain and building frame sections | UWB, motion capture, AprilTag and feeding external position to PX4 | Worksheet 1 part A: set the room frame, survey anchors or cameras and tags, feed external position to PX4 and set EKF2_EV_CTRL | Lab notebook: room frame map and settings |
| 2 M1 | Error budget and position delay | Read the error budget section; run Example 1 | Combining error sources and the effect of delay on flight | Worksheet 1 part B: try three EKF2_EV_DELAY values, compare error on out-and-back flights, build the error budget | Lab notebook: error table and budget |
| 3 M1 | VIO drift | Read the VIO drift section; run Example 2; take the module 1 quiz | Drift with distance and the tag spacing needed | Worksheet 1 part C: fly a long line on VIO only, measure drift and set tag spacing | Lecturer-signed lab notebook and quiz result |
| 4 M2 | A two-state Kalman filter | Read module 2 Kalman filter section; run Example 1 | Predict with the IMU, correct with UWB; the role of SIGMA_A and SIGMA_Z | Worksheet 2 part A: log IMU and UWB while flying along the lab corridor | Lab notebook: log files and flight notes |
| 5 M2 | Tuning the filter on real data against EKF2 | Review Example 1 and the module 2 common mistakes | Velocity, variance and reading EKF2 output from PX4 logs | Worksheet 2 part B: run Example 1 on real data, tune SIGMA_A and SIGMA_Z and compare with EKF2 | Lab notebook: comparison plots and explanation |
| 6 M2 | Graph-based SLAM and loop closure | Read the graph SLAM section; run Example 2; take the module 2 quiz | Distributing loop-closure error by distance; trajectory evaluation from UAT 322 | Worksheet 2 part C: fly a closed loop on VIO, measure closure error, correct the path and compare with the lab SLAM system | Lab notebook: loop closure results and comparison; quiz result |
| 7 M3 | Potential fields | Read module 3 potential field section; run Example 1 | Attraction, repulsion and getting stuck in front of a pillar | Worksheet 3 part A: vary start position, k_rep and influence radius to find trap conditions | Lab notebook: trap condition table |
| 8 M3 | Vector field histogram | Read the VFH section; run Example 2 | Choosing a heading from LiDAR ranges and valley width | Worksheet 3 part B: record LiDAR ranges in a mock corridor, choose headings with Example 2 and add a valley-width rule | Lab notebook: range data and heading results |
| 9 M3 | Flight-controller systems and real tests | Read 'Flight-controller systems' and 'Planning a path with A*'; run Example 3; take the module 3 quiz | PX4 Collision Prevention, CP_DIST and behaviour when range data drops | Worksheet 3 part C: test two CP_DIST values in SITL, simulate 0.5 s and 5 s data loss, then test for real with soft obstacles | Lab notebook: SITL and real test results; quiz result |
| 10 M4 | Multi-drone task allocation | Read module 4 task allocation; run Example 1 | Exhaustive search versus greedy and when to use each | Worksheet 4 part A: allocate stock-counting jobs to two or three drones and compare with greedy | Lab notebook: allocation table |
| 11 M4 | Closest approach, flocking and mutual avoidance | Read the closest approach and flocking sections; run Example 2 | Closest approach between segments, Boids, ORCA and downwash | Worksheet 4 part B: plan each path, check closest approach, test in SITL or Crazyswarm2, then fly two drones slowly | Lab notebook: separation check and two-drone flight logs |
| 12 M4 | Swarm communication and downwash | Read the communication and 'Formation flight' sections; run Examples 3 and 4; take the module 4 quiz | Bandwidth needs as the fleet grows | Worksheet 4 part C: measure downwash at several separations and real network bandwidth in flight | Lab notebook: downwash and bandwidth tables; quiz result |
| 13 M5 | Splitting jobs with the LPT rule | Read module 5 LPT section; run Example 1 | Splitting 8 aisles among 3 drones | Worksheet 5 part A: time the scan per lab aisle and split jobs with LPT | Lab notebook: scan times and job split |
| 14 M5 | Separating drones from forklifts and people; safety and requirements | Read the separation and safety sections; run Example 2; take the module 5 quiz | Checking drone schedules against forklift jobs, zoning and failure behaviour | Worksheet 5 part B: check a mock forklift schedule, draw the zone plan and write the risk assessment | Zone plan, risk assessment and quiz result |
| 15 M5 | Practical exam: multi-drone stock count | Rehearse the worksheet 5 operations plan | Course wrap-up and practical exam criteria | Practical exam: whole-system test in the lab, flying several drones to plan, handling a lecturer-called failure and recording actual versus planned completion time | Practical exam score, results-versus-plan report and completed lab notebook, scored with the rubric |
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 An error budget in the lab
Lab · About 12 h of class time · CLO1
Objective: Set up indoor positioning, feed external position to PX4, measure each error source, build an error budget and set tag spacing
Equipment
- Indoor flight room with safety netting
- UWB anchors or motion-capture cameras and AprilTags
- PX4 training drone with a VIO camera
- Tape measure or laser rangefinder
- Computer with QGroundControl, Python and the module 1 example code
Safety
- Fly inside the netted room at low speed with a pilot ready to take manual control
- No people inside the flight area during tests
- Check the position-loss fallback mode before the first flight
Steps
- Define the room frame; survey UWB anchors or cameras and AprilTags
- Feed external position to PX4 per the guide; check the rate and set EKF2_EV_CTRL
- Try three EKF2_EV_DELAY values; compare error on constant-speed out-and-back flights
- Measure each source's error and build the budget with Example 1
- Fly a long line on VIO only, measure drift and set tag spacing with Example 2
Deliverables
- Room frame and anchor or camera positions
- Error table by EKF2_EV_DELAY
- Error budget with code
- Proposed tag spacing with reasons
Checklist
- Table 1 lists every anchor or camera and tag, surveyed twice in m, and states the room origin and axis directions
- Table 2 has all 3 EKF2_EV_DELAY values at the same speed and records the measured external position rate (Hz)
- Table 3 has the RSS total, the total after latency compensation and the proposed tag spacing, with the code attached
- The position-loss fallback was checked before the first flight, and every flight was in the netted room with nobody in the flight area
Instructor guide
Class timing
- Objectives, the position data chain and safety rules60 min
- Define the room frame and survey anchors, cameras and tags twice (Table 1)150 min
- Feed external position to PX4, set EKF2_EV_CTRL and fly out-and-back with three EKF2_EV_DELAY values (Table 2)210 min
- Measure each source and build the error budget with the Example 1 code90 min
- Fly a long line on VIO only, measure drift and set tag spacing (Table 3)150 min
- Wrap-up, questions and hand-in checklist60 min
Expected results
- Table 1: surveyed twice with a tape or laser rangefinder, differences should be at the centimetre level. The lesson assumes an anchor-survey error of 0.05 m; if a group's differences are clearly larger, survey again. The origin (for example the south-west corner, x along the aisles) must be stated, along with the conversion to NED.
- Table 2: uncompensated latency gives an error of v·Δt. If the lab's real latency is about 40 ms and the flight is at 1.5 m/s as in Example 1, EKF2_EV_DELAY = 0 ms gives about 0.06 m, with opposite signs outbound and on return, so the two legs differ by about 0.12 m. 40 ms gives a difference near zero, and 80 ms (overcompensated) gives about 0.12 m again with the sign reversed. The best value is the one with the smallest difference between legs. If all values differ by less than about 0.02 m, repeat at a higher speed inside the net.
- Table 3: with Example 1's values (UWB 0.10 m, anchor survey 0.05 m, latency 1.5 × 0.040 = 0.060 m, map-to-tag 0.03 m) the RSS total is 0.130 m, with UWB 59%, latency 21%, survey 15% and tags 5%; after latency compensation 0.116 m. With 1% VIO drift and a tag reset to 0.03 m, tags must be at most 17 m apart for 0.20 m and 7 m apart for 0.10 m. Group values may differ, but the total must be RSS, not a plain sum.
- The largest source (UWB, about 59% in the example) should be improved first, because RSS depends on each source squared. The 0.03 m source is only about 5% of the variance; even removing it entirely lowers the total from 0.130 m to only about 0.127 m. A strong answer quotes the group's own table.
- Yes, the two legs should have opposite signs, because the position used is a past position and always lags behind the drone in its direction of travel. Δt ≈ (difference between legs / 2) / v; for example 0.12 m at 1.5 m/s gives 0.06 / 1.5 = 0.040 s = 40 ms. The best setting is the one that brings the difference closest to zero. A strong answer notes that the lesson and the PX4 guide say this value is tuned by experiment.
- Maximum spacing = (acceptable error - error after a tag) / drift rate. With 1% drift and a 0.03 m reset this is 17 m and 7 m; with 2% drift it is 8.5 m for 0.20 m; with 0.5% drift 34 m. A strong answer points out that a tag every 7 m in a 60 × 30 m warehouse is too many, so UWB, which does not drift, is fused with VIO as in Module 2.
- Side margin = (2.5 - 0.8) / 2 = 0.85 m. With Example 1's values, three standard deviations are 3 × 0.130 = 0.39 m (0.35 m after compensation), so it still fits. Several standard deviations are needed because one covers only part of the flight time; the error exceeds it often, and control sway must be allowed for as well.
Discussion questions
- If external position can be sent at only 15 Hz, what happens in EKF2, and which part of the chain should be fixed?
- Between buying more accurate UWB anchors and surveying the anchors more carefully, which does our room's error budget point to?
- If one group uses ENU and another uses NED with the same tags, what symptoms would we see in flight?
Adapting to student background
- Upper secondary (M.6)
- Have them compute the RSS and tag spacing by hand before running code, and show why independent errors combine as a root sum square.
- Vocational certificate
- Provide a survey form and a fill-in error-budget script; focus on accurate anchor surveying and reading values in QGroundControl.
- Diploma
- Extension: measure the chain's real latency from log timestamps and compare it with the EKF2_EV_DELAY found from out-and-back flights.
2Worksheet 2 Fusion and loop closure
Lab · About 12 h of class time · CLO1
Objective: Fuse IMU and UWB with a Kalman filter on real data, compare with EKF2 and correct drift with loop closure
Equipment
- PX4 training drone with UWB and VIO
- The lab's SLAM system (e.g. ORB-SLAM3)
- Python and the module 2 example code
- Trajectory evaluation tools from UAT 322
Safety
- Fly in the netted room at low speed with a pilot ready to take over
- No people in the flight area
- Data analysis is desk work
Steps
- Log IMU and UWB position while flying along the lab corridor
- Run Example 1 on the real data; tune SIGMA_A and SIGMA_Z and note effects on velocity and variance
- Compare with EKF2 in the PX4 log and explain differences
- Fly a closed loop on VIO, measure closure error and correct the path with Example 2
- Compare with the lab SLAM system using the UAT 322 trajectory evaluation
Deliverables
- Log files
- Filter plots at different settings versus EKF2
- Loop closure error before and after correction
- Comparison table with the SLAM system
Checklist
- Table 1 has at least 5 SIGMA_A and SIGMA_Z settings with units, including Example 1's default 0.5 and 0.10
- Table 2 compares error numbers (such as RMS), not just plots, and states how IMU and UWB timestamps were synchronised
- Table 3 has every node, the first and last corrected points coincide, and the code is attached
- Log files are attached and named by date and settings, and every flight was in the netted room with a pilot ready to take over
Instructor guide
Class timing
- Review of the two-state Kalman filter, predict and update steps, and safety rules60 min
- Fly along the corridor and log IMU and UWB120 min
- Run Example 1 on the real data and tune SIGMA_A and SIGMA_Z (Table 1)180 min
- Compare with EKF2 in the PX4 log90 min
- Fly a closed loop on VIO, correct it with Example 2 and compare with the SLAM system (Tables 2 and 3)210 min
- Wrap-up, questions and hand-in checklist60 min
Expected results
- Table 1 (using Example 1's fixed data and noise as the reference, true speed 1.0 m/s): SIGMA_A 0.5, SIGMA_Z 0.10 gives velocity 0.61 m/s at 1 s and 0.92 m/s at 3 s, sigma_p 0.081 m, sigma_v 0.136 m/s. SIGMA_Z 0.03 gives sigma_p 0.028 m, below the real UWB error of 0.10 m, and 0.86 m/s at 3 s. SIGMA_Z 0.30 gives sigma_p 0.217 m and 0.95 m/s. SIGMA_A 2.0 gives sigma_v 0.354 m/s and 0.86 m/s (noise-sensitive). SIGMA_A 0.1 gives sigma_v 0.056 m/s and 0.96 m/s (smooth but slow to follow speed changes). Real data will give different numbers, but the trends must match.
- Table 2: once time is synchronised, the group's two-state filter should be within a few centimetres of EKF2. EKF2 differs because it estimates more states (attitude, IMU biases) and compensates latency with EKF2_EV_DELAY. A difference of ten centimetres or more that drifts with time means checking timestamp synchronisation first. The SLAM comparison uses the UAT 322 trajectory evaluation and must be reported as numbers.
- Table 3 (if using Example 2's path): loop-closure error (1.2, 0.8) m, magnitude 1.44 m over 80.4 m = 1.8%. Nodes at cumulative 20.3, 40.5 and 60.3 m have fractions 0.25, 0.50 and 0.75, giving corrected positions (20.00, 0.00), (20.00, 20.00) and (-0.10, 20.30), and the last point returns to (0.00, 0.00). Real lab loops are shorter; the error percentage should be of the same order as the VIO drift measured in worksheet 1.
- The reported sigma_p is lower than reality (0.028 m in the example while UWB is off by 0.10 m). The filter trusts UWB too much, the estimate jumps with the noise, and any system that uses sigma_p to judge clearance thinks it is safer than it is. A strong answer links this to the lesson's common mistake of setting the measurement variance below reality.
- The update uses the difference between measured and predicted position, and the position-velocity covariance in P lets it correct velocity too (gain k[1]). Successive positions reveal how fast the drone moves. In the example velocity rises from 0 to 0.61 m/s at 1 s and 0.92 m/s at 3 s while sigma_v falls from 1.0 to 0.136 m/s.
- Example 2 gives 1.8%. The last node moves most (the full 1.44 m), because distributing by cumulative distance gives nodes farther from the start a larger share, reflecting that odometry error accumulates with distance. A strong answer adds that real systems weight each edge by its uncertainty, not only by distance.
- A false loop closure forces two different places together, so the whole path and map warp (corners shrink or walls tilt). Check that the size of the correction is plausible for the VIO drift rate, compare with known tag or UWB positions, and look at the images that were actually matched.
Discussion questions
- If Q is zero the variance shrinks until the filter ignores new measurements. What would happen in a real warehouse when the drone turns or accelerates?
- When should UWB be trusted more than VIO, and when the reverse, in a warehouse with tall metal racks?
- Between a smooth-looking plot and error numbers, which should the team use to choose filter settings, and why?
Adapting to student background
- Upper secondary (M.6)
- Have them work one predict and update cycle by hand (for example the gain 0.04/(0.04+0.01) = 0.8) before running the code on real data.
- Vocational certificate
- Provide a script with SIGMA_A and SIGMA_Z as top-level variables that plots automatically; focus on reading trends from plots alongside numbers.
- Diploma
- Extension: add UWB latency compensation to the group filter and measure how much the gap to EKF2 shrinks.
3Worksheet 3 Avoidance in SITL and in the lab
Lab · About 12 h of class time · CLO2
Objective: Experiment with potential fields and VFH, find their limits, set up PX4 Collision Prevention and test it safely for real
Equipment
- Computer with PX4 SITL, Python and the module 3 example code
- Training drone with range sensor or LiDAR
- Soft obstacles such as foam boxes or curtains
- Netted flight room
Safety
- Pass in SITL before any real flight
- Real tests with soft obstacles, low speed, netting and a pilot ready to take over
- No people in the flight area
Steps
- Run Example 1; vary start, k_rep and influence radius to find trap conditions
- Record LiDAR ranges in a mock corridor; choose headings with Example 2 and add a valley-width rule
- Enable Collision Prevention in PX4 SITL; try two CP_DIST values flying at a wall in Position mode
- Simulate range data loss; check behaviour at 0.5 s and 5 s
- Test for real in the lab with soft obstacles at low speed
Deliverables
- Potential-field trap conditions table
- Heading results before and after the valley rule
- SITL results for CP_DIST and data loss
- Real test record
Checklist
- Table 1 has at least 6 cases, including starts on and off the line and at least two values each of k_rep and ρ0
- Table 2 states the valley-width rule used (number of adjacent free sectors) and the headings chosen before and after
- Table 3 has two CP_DIST values and both 0.5 s and 5 s dropouts from SITL before any real-test row
- The real test used soft obstacles at low speed in the netted room with a pilot ready to take over, and all settings are in the lab notebook
Instructor guide
Class timing
- Review of potential fields, VFH, Collision Prevention and safety rules60 min
- Run Example 1 and find trap conditions (Table 1)150 min
- Record LiDAR ranges in a mock corridor, choose headings with VFH and add the valley rule (Table 2)150 min
- Set up Collision Prevention in SITL; try two CP_DIST values and data dropout (Table 3)180 min
- Real test with soft obstacles at low speed120 min
- Wrap-up, questions and hand-in checklist60 min
Expected results
- Table 1 (pillar at (5, 0), goal at (10, 0) as in Example 1): start (0, 0), k_rep 5, ρ0 2.5 m sticks at (4.17, 0.00) after 88 steps; k_rep 10 sticks at (4.00, 0.00); k_rep 2 sticks at (4.36, 0.00); ρ0 4.0 m sticks at (4.13, 0.00). Start (0, 0.5) reaches the goal after 233 steps; start (0, 0.1) also reaches it after 239 steps; start (0, 0.5) with k_rep 10 and ρ0 4.0 m reaches it after 238 steps. A larger k_rep stops the drone farther from the pillar but does not free it.
- Table 2 (Example 2's ranges, 3 m threshold, goal at 0°): blocked headings are 0-40° and 310-350°. Without the valley rule the choice is 50°. Requiring the chosen sector and one on each side to be free (3 adjacent free sectors) gives 60°; requiring 5 adjacent free sectors gives 70°. Groups' own corridor data may give other headings, but the heading after the rule must always sit farther from the obstacle edge.
- Table 3: in Position mode the drone should slow and stop at about CP_DIST from the wall, and a larger value stops it farther away (the measured distance may differ slightly from CP_DIST with speed and CP_DELAY; record what you see). With a 0.5 s range-data dropout movement is restricted; with 5 s it switches to HOLD, as in the lesson. If the drone hits the wall in SITL, check that Collision Prevention is enabled and the mode really is Position.
- Exactly on the line the repulsive force points straight back against the attraction with no sideways part, so the resultant is zero at a point in front of the pillar every time (a local minimum). Changing k_rep or ρ0 only moves the stopping point (4.00-4.36 m). A 0.1-0.5 m offset creates a sideways force that carries the drone around. A strong answer says a real system needs a mechanism to detect being stuck and escape, for example by switching to a path planner.
- In the example the heading moves from 50° to 60° (3 sectors) or 70° (5 sectors). You gain a gap wide enough for the drone and more clearance from the box edge, but lose by heading farther from the goal, so the path is longer. A strong answer links this to the common mistake of choosing a gap narrower than the drone.
- At 0.5 s PX4 restricts movement; at 5 s it switches to HOLD. Without range data the system does not know what is ahead, so carrying on means flying with no collision protection; HOLD keeps the drone in place for the pilot to decide. A strong answer says the sensor-stops-sending case must always be tested before real flight.
- Once stopped in front of the pallet, the pallet is added to the occupancy grid, inflated by the drone radius plus a margin, and A* is run again for a detour, as in Example 3 where the route is 8.5 m instead of 6.5 m. The reactive layer stops the drone; the planning layer finds a new route. A strong answer adds that every segment's clearance is checked again before upload.
Discussion questions
- If you had to choose one of potential fields or VFH for a warehouse aisle, which limitation is less acceptable?
- How should CP_DIST be set in a narrow aisle, and what goes wrong if it is too large?
- How is a moving forklift different from a box standing still, and why does that call for the velocity obstacle idea?
Adapting to student background
- Upper secondary (M.6)
- Have them draw the attractive and repulsive vectors on paper at the stopping point and compute the forces from the formula to confirm they cancel.
- Vocational certificate
- Provide code with parameters at the top that plots the path automatically; focus on setting up Collision Prevention in QGroundControl and placing soft obstacles safely.
- Diploma
- Extension: add a stuck detector to the potential field (low resultant for too long) that switches to A* from Example 3, and test it in SITL.
4Worksheet 4 Two drones in the lab
Lab · About 12 h of class time · CLO3
Objective: Allocate tasks across drones, check path separation, fly two drones safely and measure downwash and real bandwidth
Equipment
- Two or three small drones (e.g. Crazyflie) or PX4 training drones
- PX4 SITL or Crazyswarm2
- Indoor positioning from worksheet 1
- Network bandwidth measurement tool
- Python and the module 4 example code
Safety
- Always pass simulation before real flight
- Real flights at low speed in the netted room with an emergency stop and one pilot per drone
- Test downwash from large to small vertical separation; stop when the lower drone sways beyond the limit
Steps
- Allocate stock-counting jobs to two or three drones with Example 1 and compare with greedy
- Plan each path; check closest approach on every segment with Example 2 and fix those below the limit
- Test in SITL or Crazyswarm2 first, then fly two drones at low speed
- Measure downwash by hovering one drone above another at several separations; record the lower drone's sway
- Measure real network bandwidth in flight and compare with Example 3
Deliverables
- Allocation table versus greedy
- Separation check before and after fixes
- Two-drone flight logs
- Downwash and bandwidth tables
Checklist
- Table 1 gives both totals in m and the drone and task coordinates used
- Table 2 checks every pair on every segment, not only waypoints, and every segment passes the group's threshold after fixes
- Simulation results from SITL or Crazyswarm2 precede every real flight, with one pilot per drone and an emergency stop
- Table 3 tested downwash from large to small separation and stopped at the sway limit, states the limit, and the two-drone logs are attached
Instructor guide
Class timing
- Review of allocation, closest approach, downwash and multi-drone safety rules60 min
- Allocate tasks with Example 1 and compare with greedy (Table 1)90 min
- Plan paths and check closest approach on every segment with Example 2 (Table 2)120 min
- Test in SITL or Crazyswarm2, then fly two real drones at low speed210 min
- Measure downwash and in-flight bandwidth (Table 3)180 min
- Wrap-up, questions and hand-in checklist60 min
Expected results
- Table 1 (if using Example 1's coordinates): optimal D1→T3, D2→T1, D3→T2, D4→T4 totals 81.9 m; greedy D1→T1, D2→T2, D3→T4, D4→T3 totals 131.0 m, 49.1 m more or about 1.6 times. With two or three lab drones every permutation can be tried (3 drones have 3! = 6). A group may find greedy equal to the optimum, which is acceptable if they show they checked.
- Table 2 (Example 2's cases, 2 s segments): swap on the same line, ends 2.0 m apart but closest 0.00 m at 1.0 s; swap 0.5 m apart sideways, ends 2.1 m apart, closest 0.50 m at 1.0 s; one above the other, 0.40 m apart the whole way. Example fix: a 1.0 m sideways offset gives a closest approach of 1.00 m at 1.0 s, or delay one drone's departure. Every segment must pass the group's threshold after fixes.
- Table 3: the lesson gives no downwash values for any particular model; they must come from testing. Expect the lower drone's sway to rise clearly as vertical separation falls, exceeding the limit at a vertical distance larger than the usable horizontal separation. Bandwidth per Example 3 (60 bytes, 30 Hz, overhead 1.3): 2 drones 37.4 kbit/s, 3 drones 56.2 kbit/s. Measured values are usually higher because messages other than position (status, heartbeat) are sent; record them separately.
- D1 takes its own nearest task (T1) first, which forces D2, close to T1, to travel far. Deciding one drone at a time ignores the total: 131.0 m versus 81.9 m. For dozens of drones use the Hungarian method (Kuhn, 1955), which finds the optimum without trying every permutation (5 drones already have 5! = 120, and the count grows very fast).
- Yes, for example the swap on the same line has ends 2.0 m apart but collides at 1.0 s. Checking at waypoints looks only at segment ends, while the distance between the drones changes continuously in between; the minimum over the whole segment must be found with u* and then d_min computed.
- It should be larger, because the lower drone sits in the upper drone's downwash; Hönig et al. (2018) model each drone as an ellipsoid longer vertically than horizontally. The 0.40 m vertical case looks safe by distance but the lower drone may sway. A strong answer sets the threshold from the separation where sway first exceeds the limit in Table 3, plus a margin, and says it applies only to the tested model.
- The computed 37.4 kbit/s (2 drones) or 56.2 kbit/s (3 drones) covers position messages only; measured values are usually higher because of other messages. If every drone streamed video, bandwidth would rise by hundreds of times, one network could not carry it, and the position messages used for coordination could be delayed or lost, so processing on board and sending only results is preferred.
Discussion questions
- If one drone's battery runs out mid-job, how should the remaining tasks be reallocated, and must separation be checked again?
- Which suits warehouse stock counting better: central planning or letting each drone avoid on its own (ORCA)?
- If the network is heavily delayed, how would consensus-based formation flight be affected?
Adapting to student background
- Upper secondary (M.6)
- Have them derive u* by minimising the squared distance, then check practice question 2 (1 m at x = 2) by hand.
- Vocational certificate
- Provide sample path files and a separation script that prints pass or fail; focus on preparing two drones, the emergency stop and measuring downwash safely.
- Diploma
- Extension: fly a three-drone leader-follower formation in SITL as in Example 4, turning offsets by the leader's heading, and check separation on every segment.
5Worksheet 5 A multi-drone stock-counting operations plan
Lab · About 12 h of class time · CLO2, CLO3
Objective: Plan a multi-drone stock count with balanced jobs, no conflicts with forklifts or people, a risk assessment and a whole-system test against the plan
Equipment
- Lab laid out as mock warehouse aisles
- Drones and systems from worksheets 1–4
- Stopwatch
- Python and the module 5 example code
Safety
- Set no-fly zones, fire exits and emergency landing spots before testing
- No people in the flight zone during tests
- Test position-loss, low-battery and link-loss behaviour in SITL before real flight
- One pilot per drone and an emergency stop
Steps
- Time the scan per aisle and split jobs among two or three drones with Example 1
- Build a mock forklift schedule, check it with Example 2 and adjust until nothing overlaps
- Draw the zone plan with charging pads, fire exits and no-fly areas
- Write the risk assessment and behaviour on position loss, low battery and link loss
- Test the whole system in the lab and record actual versus planned completion time
Deliverables
- LPT job split
- Conflict-free drone and forklift schedule
- Zone plan
- Risk assessment
- Whole-system test results against the plan
Checklist
- Table 1 has the measured scan time per aisle, planned and actual times, and the lower bound max(Σp/m, max p)
- Table 2 uses the same buffer on every row, and no row conflicts after the fixes
- The zone plan shows charging pads away from combustibles, fire exits, emergency landing spots and no-fly areas, and Table 3 covers position loss, low battery and link loss
- Failure behaviours were tested in SITL before real flight, with logs and settings attached so others can reproduce
Instructor guide
Class timing
- Objectives, review of LPT, time and space separation, and safety rules60 min
- Time the scan per aisle and split jobs with LPT (Table 1)120 min
- Build a mock forklift schedule and check for conflicts (Table 2)90 min
- Draw the zone plan, write the risk assessment and test failure behaviours in SITL (Table 3)180 min
- Whole-system test in the lab and record actual finish times210 min
- Wrap-up, questions and hand-in checklist60 min
Expected results
- Table 1 (if using Example 1's scan times: 14, 12, 11, 9, 8, 7, 6, 5 min): three drones give D1 = A1 + A6 = 21 min, D2 = A2 + A5 + A7 = 26 min, D3 = A3 + A4 + A8 = 25 min. Makespan 26 min, optimum 25 min, lower bound 24.0 min, ratio 1.040, within Graham's bound of 1.222. If the lab uses two drones with the same times, LPT gives 36 and 36 min, equal to the 36 min lower bound. Actual times are usually longer than planned because of take-off, landing and moving between aisles; a 10-20% gap is acceptable if the cause is explained.
- Table 2 (Example 2's schedule, 2 min buffer): A4 drone 11-20, forklift 18-25, conflict; A2 drone 0-12, forklift 30-40, ok; A5 drone 12-20, forklift 5-10, ok (separated by exactly the buffer). Example fixes: D3 flies A4 first (0-9) and then A3 (9-20), or the A4 forklift job starts at minute 22. Rechecked, no row conflicts.
- Table 3: at least position loss (land immediately), low battery (return to the charging pad or land, as set), link loss, collision with racks or people (Collision Prevention and geofence) and battery fire at the charging pads (a separate area away from combustibles). Likelihood and severity use the matrix following the ICAO SMS guidance in UAT 362. A strong answer considers effects on workers, goods and the fire-suppression system.
- LPT's 26 min is only 2 min above the 24 min lower bound and 1 min above the optimum (1.040 times), far below Graham's 1.222. Exhaustive search for 8 aisles and 3 drones has 3⁸ = 6,561 options, but hundreds of aisles give an enormous number. LPT is fast, explainable and has a guaranteed bound (splitting by count in order 3/3/2 gives 37 min, much worse).
- In the example A4 conflicts (drone 11-20, forklift 18-25); it is fixed by reordering D3's jobs or moving the forklift. The buffer covers deviations from the plan, such as a scan taking longer than measured or a forklift arriving early. Without it, back-to-back jobs can truly overlap after a small slip.
- Returning to base needs a position to fly back. After losing position the drone does not know where it is and could hit a rack on the way. Landing immediately uses little space and needs no position. A strong answer links this to the lesson's common mistake.
- The answer depends on the group's results. Common causes are take-off, landing and transit between aisles not counted in scan time, waiting for forklifts, Collision Prevention slowing the drone, and battery swaps. A strong answer proposes timing each aisle including transit, re-splitting the jobs, and sizing the buffer from the measured gap.
- The lesson states that no CAAT announcement was found that says clearly whether flight inside a closed building falls under its requirements, so the team should ask CAAT through the UAS Portal and always follow the factory's own safety rules. A strong answer does not assume indoor flight has no requirements and says to check the version in force before real use.
Discussion questions
- If the count must finish before the morning shift but LPT runs over, what options does the team have (more drones, split across nights, better routes)?
- The warehouse management system knows the forklift schedule, but what should protect against a worker walking into an aisle off-schedule?
- Between battery safety and integration with existing systems, which is the harder problem for our factory?
Adapting to student background
- Upper secondary (M.6)
- Have them run LPT by hand on practice question 1 (10, 8, 6, 4 min on two drones gives 14 min) and argue why the lower bound is max(Σp/m, max p) before using code.
- Vocational certificate
- Provide a zone-plan template and a risk table with headings; focus on timing real scans, placing charging pads safely and rehearsing the emergency stop.
- Diploma
- Extension: write a script that shifts drone jobs automatically to avoid forklifts and recomputes the finish time, tested on three forklift schedules.
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) |
|---|---|---|---|---|---|
| Positioning and fusion accuracy | 25% | Complete error budget, EKF2 settings justified by experiment, error within limits | Nearly complete, some settings weakly justified | Key error sources missing or error over limits | Positioning not working |
| Avoidance and multi-drone coordination | 30% | Limits of each method identified, every segment meets separation, multi-drone flight to plan with no near misses | Works, minor gaps in checks or timing | Plan changed mid-flight or a near miss | Avoidance or coordination fails |
| Test safety | 25% | Always simulated first; netting, pilots and emergency stop in place; clear risk assessment | Safe, one reminder needed | Skipped simulation or several reminders | Safety ignored |
| Lab notebook and reports | 20% | Every week recorded with logs, code and settings; others can reproduce | Nearly complete | Several weeks missing | No usable records |
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.