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.

Last updated: · 3(1-4-4) · Per week: lecture 1 h, lab 4 h, self-study 4 h; 75 contact hours per term

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 topicModulesWhere it is taughtStatus
Localization in GNSS-denied environmentsM1Module 1: the position data chain, the error budget, VIO drift, the building coordinate frameCovered
Mapping and SLAMM2Module 2: a two-state Kalman filter, graph-based SLAM and loop closureCovered
Obstacle avoidanceM3Module 3: potential fields, vector field histogram and flight-controller systems (PX4 Collision Prevention)Covered
Path planningM3M4Module 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 waypointsCovered
Multi-aircraft communication and coordinationM4Module 4: communication (Example 3 swarm bandwidth)Covered
Task allocationM4M5Module 4: task allocation (exhaustive versus greedy) · Module 5: splitting jobs with the LPT ruleCovered
Formation flightM4Module 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 preventionM3M4M5Module 3: flight-controller systems · Module 4: closest approach, ORCA · Module 5: separating drones from forklifts and peopleCovered
Testing of multi-UAS autonomous systemsM4M5Module 4: the two-drone lab (SITL or Crazyswarm2 before real flight) · Module 5: safety and requirements, and the whole-system test in the labCovered

Weekly teaching plan

WeekTopicPre-classLectureLabEvidence
1 M1The position data chain and building frameRead module 1 position data chain and building frame sectionsUWB, motion capture, AprilTag and feeding external position to PX4Worksheet 1 part A: set the room frame, survey anchors or cameras and tags, feed external position to PX4 and set EKF2_EV_CTRLLab notebook: room frame map and settings
2 M1Error budget and position delayRead the error budget section; run Example 1Combining error sources and the effect of delay on flightWorksheet 1 part B: try three EKF2_EV_DELAY values, compare error on out-and-back flights, build the error budgetLab notebook: error table and budget
3 M1VIO driftRead the VIO drift section; run Example 2; take the module 1 quizDrift with distance and the tag spacing neededWorksheet 1 part C: fly a long line on VIO only, measure drift and set tag spacingLecturer-signed lab notebook and quiz result
4 M2A two-state Kalman filterRead module 2 Kalman filter section; run Example 1Predict with the IMU, correct with UWB; the role of SIGMA_A and SIGMA_ZWorksheet 2 part A: log IMU and UWB while flying along the lab corridorLab notebook: log files and flight notes
5 M2Tuning the filter on real data against EKF2Review Example 1 and the module 2 common mistakesVelocity, variance and reading EKF2 output from PX4 logsWorksheet 2 part B: run Example 1 on real data, tune SIGMA_A and SIGMA_Z and compare with EKF2Lab notebook: comparison plots and explanation
6 M2Graph-based SLAM and loop closureRead the graph SLAM section; run Example 2; take the module 2 quizDistributing loop-closure error by distance; trajectory evaluation from UAT 322Worksheet 2 part C: fly a closed loop on VIO, measure closure error, correct the path and compare with the lab SLAM systemLab notebook: loop closure results and comparison; quiz result
7 M3Potential fieldsRead module 3 potential field section; run Example 1Attraction, repulsion and getting stuck in front of a pillarWorksheet 3 part A: vary start position, k_rep and influence radius to find trap conditionsLab notebook: trap condition table
8 M3Vector field histogramRead the VFH section; run Example 2Choosing a heading from LiDAR ranges and valley widthWorksheet 3 part B: record LiDAR ranges in a mock corridor, choose headings with Example 2 and add a valley-width ruleLab notebook: range data and heading results
9 M3Flight-controller systems and real testsRead 'Flight-controller systems' and 'Planning a path with A*'; run Example 3; take the module 3 quizPX4 Collision Prevention, CP_DIST and behaviour when range data dropsWorksheet 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 obstaclesLab notebook: SITL and real test results; quiz result
10 M4Multi-drone task allocationRead module 4 task allocation; run Example 1Exhaustive search versus greedy and when to use eachWorksheet 4 part A: allocate stock-counting jobs to two or three drones and compare with greedyLab notebook: allocation table
11 M4Closest approach, flocking and mutual avoidanceRead the closest approach and flocking sections; run Example 2Closest approach between segments, Boids, ORCA and downwashWorksheet 4 part B: plan each path, check closest approach, test in SITL or Crazyswarm2, then fly two drones slowlyLab notebook: separation check and two-drone flight logs
12 M4Swarm communication and downwashRead the communication and 'Formation flight' sections; run Examples 3 and 4; take the module 4 quizBandwidth needs as the fleet growsWorksheet 4 part C: measure downwash at several separations and real network bandwidth in flightLab notebook: downwash and bandwidth tables; quiz result
13 M5Splitting jobs with the LPT ruleRead module 5 LPT section; run Example 1Splitting 8 aisles among 3 dronesWorksheet 5 part A: time the scan per lab aisle and split jobs with LPTLab notebook: scan times and job split
14 M5Separating drones from forklifts and people; safety and requirementsRead the separation and safety sections; run Example 2; take the module 5 quizChecking drone schedules against forklift jobs, zoning and failure behaviourWorksheet 5 part B: check a mock forklift schedule, draw the zone plan and write the risk assessmentZone plan, risk assessment and quiz result
15 M5Practical exam: multi-drone stock countRehearse the worksheet 5 operations planCourse wrap-up and practical exam criteriaPractical exam: whole-system test in the lab, flying several drones to plan, handling a lecturer-called failure and recording actual versus planned completion timePractical 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

  1. Define the room frame; survey UWB anchors or cameras and AprilTags
  2. Feed external position to PX4 per the guide; check the rate and set EKF2_EV_CTRL
  3. Try three EKF2_EV_DELAY values; compare error on constant-speed out-and-back flights
  4. Measure each source's error and build the budget with Example 1
  5. 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 (Positioning and fusion accuracy)
  • Table 2 has all 3 EKF2_EV_DELAY values at the same speed and records the measured external position rate (Hz) (Positioning and fusion accuracy)
  • Table 3 has the RSS total, the total after latency compensation and the proposed tag spacing, with the code attached (Lab notebook and reports)
  • The position-loss fallback was checked before the first flight, and every flight was in the netted room with nobody in the flight area (Test safety)

Instructor guide

Class timing 720 min

  1. Objectives, the position data chain and safety rules60 min
  2. Define the room frame and survey anchors, cameras and tags twice (Table 1)150 min
  3. Feed external position to PX4, set EKF2_EV_CTRL and fly out-and-back with three EKF2_EV_DELAY values (Table 2)210 min
  4. Measure each source and build the error budget with the Example 1 code90 min
  5. Fly a long line on VIO only, measure drift and set tag spacing (Table 3)150 min
  6. Wrap-up, questions and hand-in checklist60 min

Expected results

  1. Record: Table 1 Room frame and surveyed anchor, camera and tag positionsTable 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.
  2. Record: Table 2 Error by EKF2_EV_DELAY on constant-speed out-and-back flightsTable 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.
  3. Record: Table 3 Error budget and tag spacingTable 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.
  4. Question 1: From Table 3, which source has the largest share of variance? If you could improve only one source, which would you pick, and why does shrinking the smallest source barely help?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.
  5. Question 2: In Table 2, do the outbound and return errors have opposite signs? Use e = v·Δt to estimate the uncompensated latency from the difference between the two legs, and say which EKF2_EV_DELAY value is best.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.
  6. Question 3: From the VIO drift you measured (percent of distance), how far apart may tags be to keep the error below 0.20 m and below 0.10 m? Why does the lesson recommend fusing with UWB instead of adding more tags?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.
  7. Question 4: If the aisle is 2.5 m wide and the drone 0.8 m wide, is three times your total standard deviation still inside the margin on each side? Why compare against several standard deviations rather than one?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.

Common student mistakes: Common mistakes in the module 1 lesson

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

  1. Log IMU and UWB position while flying along the lab corridor
  2. Run Example 1 on the real data; tune SIGMA_A and SIGMA_Z and note effects on velocity and variance
  3. Compare with EKF2 in the PX4 log and explain differences
  4. Fly a closed loop on VIO, measure closure error and correct the path with Example 2
  5. 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 (Positioning and fusion accuracy)
  • Table 2 compares error numbers (such as RMS), not just plots, and states how IMU and UWB timestamps were synchronised (Positioning and fusion accuracy)
  • Table 3 has every node, the first and last corrected points coincide, and the code is attached (Lab notebook and reports)
  • 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 (Test safety)

Instructor guide

Class timing 720 min

  1. Review of the two-state Kalman filter, predict and update steps, and safety rules60 min
  2. Fly along the corridor and log IMU and UWB120 min
  3. Run Example 1 on the real data and tune SIGMA_A and SIGMA_Z (Table 1)180 min
  4. Compare with EKF2 in the PX4 log90 min
  5. Fly a closed loop on VIO, correct it with Example 2 and compare with the SLAM system (Tables 2 and 3)210 min
  6. Wrap-up, questions and hand-in checklist60 min

Expected results

  1. Record: Table 1 Effect of SIGMA_A and SIGMA_Z on the filterTable 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.
  2. Record: Table 2 Group filter versus EKF2 and the lab SLAM systemTable 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.
  3. Record: Table 3 Path correction by loop closureTable 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.
  4. Question 1: From Table 1, when SIGMA_Z is set below the real UWB error, what sigma_p does the filter report, and why is that dangerous even if the plot looks smooth?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.
  5. Question 2: The filter never measures velocity directly. How does its velocity estimate approach the true value? Use the 1 s and 3 s values in Table 1.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.
  6. Question 3: From Table 3, what percentage of the distance is the loop-closure error, which node moves the most, and why?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.
  7. Question 4: If the system matched a loop closure to the wrong place, what would happen to the path in Table 3, and how could the group check before trusting the result?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.

Common student mistakes: Common mistakes in the module 2 lesson

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

  1. Run Example 1; vary start, k_rep and influence radius to find trap conditions
  2. Record LiDAR ranges in a mock corridor; choose headings with Example 2 and add a valley-width rule
  3. Enable Collision Prevention in PX4 SITL; try two CP_DIST values flying at a wall in Position mode
  4. Simulate range data loss; check behaviour at 0.5 s and 5 s
  5. 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 (Avoidance and multi-drone coordination)
  • Table 2 states the valley-width rule used (number of adjacent free sectors) and the headings chosen before and after (Avoidance and multi-drone coordination)
  • Table 3 has two CP_DIST values and both 0.5 s and 5 s dropouts from SITL before any real-test row (Test safety)
  • 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 (Lab notebook and reports)

Instructor guide

Class timing 720 min

  1. Review of potential fields, VFH, Collision Prevention and safety rules60 min
  2. Run Example 1 and find trap conditions (Table 1)150 min
  3. Record LiDAR ranges in a mock corridor, choose headings with VFH and add the valley rule (Table 2)150 min
  4. Set up Collision Prevention in SITL; try two CP_DIST values and data dropout (Table 3)180 min
  5. Real test with soft obstacles at low speed120 min
  6. Wrap-up, questions and hand-in checklist60 min

Expected results

  1. Record: Table 1 Potential-field trap conditionsTable 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.
  2. Record: Table 2 VFH heading before and after the valley-width ruleTable 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.
  3. Record: Table 3 Collision Prevention results in SITL and in the real testTable 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.
  4. Question 1: From Table 1, why does starting exactly on the line get stuck every time, whatever k_rep or influence radius you choose, and how does a small offset help?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.
  5. Question 2: From Table 2, how much did the valley-width rule change the chosen heading, and what do you gain and lose?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.
  6. Question 3: In Table 3, what did PX4 do when range data stopped for 0.5 s and for 5 s, and why is switching to HOLD safer than carrying on?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.
  7. Question 4: Collision Prevention stops the drone in front of an obstacle but does not plan a detour. If a pallet not on the map blocks an aisle, what should the system do next? Refer to the A* planning layer in the lesson.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.

Common student mistakes: Common mistakes in the module 3 lesson

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

  1. Allocate stock-counting jobs to two or three drones with Example 1 and compare with greedy
  2. Plan each path; check closest approach on every segment with Example 2 and fix those below the limit
  3. Test in SITL or Crazyswarm2 first, then fly two drones at low speed
  4. Measure downwash by hovering one drone above another at several separations; record the lower drone's sway
  5. 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 (Avoidance and multi-drone coordination)
  • Table 2 checks every pair on every segment, not only waypoints, and every segment passes the group's threshold after fixes (Avoidance and multi-drone coordination)
  • Simulation results from SITL or Crazyswarm2 precede every real flight, with one pilot per drone and an emergency stop (Test safety)
  • 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 (Lab notebook and reports)

Instructor guide

Class timing 720 min

  1. Review of allocation, closest approach, downwash and multi-drone safety rules60 min
  2. Allocate tasks with Example 1 and compare with greedy (Table 1)90 min
  3. Plan paths and check closest approach on every segment with Example 2 (Table 2)120 min
  4. Test in SITL or Crazyswarm2, then fly two real drones at low speed210 min
  5. Measure downwash and in-flight bandwidth (Table 3)180 min
  6. Wrap-up, questions and hand-in checklist60 min

Expected results

  1. Record: Table 1 Optimal allocation versus greedyTable 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.
  2. Record: Table 2 Closest approach on every segment before and after fixesTable 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.
  3. Record: Table 3 Downwash and bandwidthTable 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.
  4. Question 1: From Table 1, why does greedy give a larger total distance than the optimum, and what should be used instead of trying every permutation when there are dozens of drones?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).
  5. Question 2: In Table 2, is there a pair that is far enough apart at the segment ends but very close in between? Explain why checking only at waypoints is not enough.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.
  6. Question 3: From the downwash results in Table 3, should vertical separation be larger than horizontal separation, and what threshold will the group use for its drone model?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.
  7. Question 4: How does the bandwidth measured in flight compare with B = N × f × b? What would happen if every drone streamed video?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.

Common student mistakes: Common mistakes in the module 4 lesson

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

  1. Time the scan per aisle and split jobs among two or three drones with Example 1
  2. Build a mock forklift schedule, check it with Example 2 and adjust until nothing overlaps
  3. Draw the zone plan with charging pads, fire exits and no-fly areas
  4. Write the risk assessment and behaviour on position loss, low battery and link loss
  5. 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) (Avoidance and multi-drone coordination)
  • Table 2 uses the same buffer on every row, and no row conflicts after the fixes (Avoidance and multi-drone coordination)
  • 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 (Test safety)
  • Failure behaviours were tested in SITL before real flight, with logs and settings attached so others can reproduce (Lab notebook and reports)

Instructor guide

Class timing 720 min

  1. Objectives, review of LPT, time and space separation, and safety rules60 min
  2. Time the scan per aisle and split jobs with LPT (Table 1)120 min
  3. Build a mock forklift schedule and check for conflicts (Table 2)90 min
  4. Draw the zone plan, write the risk assessment and test failure behaviours in SITL (Table 3)180 min
  5. Whole-system test in the lab and record actual finish times210 min
  6. Wrap-up, questions and hand-in checklist60 min

Expected results

  1. Record: Table 1 LPT job split and actual against planned finish timeTable 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.
  2. Record: Table 2 Drone schedule checked against forklift jobsTable 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.
  3. Record: Table 3 Risk assessment and failure behaviourTable 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.
  4. Question 1: From Table 1, how far is the LPT finish time from the lower bound and from Graham's bound, and why use LPT in a warehouse with hundreds of aisles instead of trying every assignment?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).
  5. Question 2: In Table 2, which jobs overlapped, how did the group fix it, and why is a buffer needed even when slots do not exactly overlap?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.
  6. Question 3: Why should the behaviour on loss of position indoors be to land immediately rather than return to base?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.
  7. Question 4: How far was the actual finish time from the plan, and why? How should the plan be adjusted next time?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.
  8. Question 5: Before using the system in a real factory, what must the team do about indoor flight requirements, as summarised in the lesson?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.

Common student mistakes: Common mistakes in the module 5 lesson

Scoring rubric

For worksheets and the mini-project. Each criterion scores level (1–4) ÷ 4 × weight.

CriterionWeightExcellent (4)Good (3)Fair (2)Needs work (1)
Positioning and fusion accuracy25%Complete error budget, EKF2 settings justified by experiment, error within limitsNearly complete, some settings weakly justifiedKey error sources missing or error over limitsPositioning not working
Avoidance and multi-drone coordination30%Limits of each method identified, every segment meets separation, multi-drone flight to plan with no near missesWorks, minor gaps in checks or timingPlan changed mid-flight or a near missAvoidance or coordination fails
Test safety25%Always simulated first; netting, pilots and emergency stop in place; clear risk assessmentSafe, one reminder neededSkipped simulation or several remindersSafety ignored
Lab notebook and reports20%Every week recorded with logs, code and settings; others can reproduceNearly completeSeveral weeks missingNo 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.

CLOWorksheetsModule quizzes
CLO1 Configure navigation in GNSS-denied areasW 1W 2M1M2
CLO2 Develop indoor avoidance and autonomous missionsW 3W 5M3M5
CLO3 Control and coordinate multiple UAS safelyW 4W 5M4M5