Teaching pack · UAT 207

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(2-2-5) · Per week: lecture 2 h, lab 2 h, self-study 5 h; 60 contact hours per term

Coverage of the course description

The lessons fully teach 11 of 11 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
Signals and communicationsM1M2Module 1: Fresnel zones and antenna radiation patterns · Module 2: Shannon capacityCovered
Wireless channelsM1M2Module 1: Fresnel zones, mast height and polarization · Module 2: capacity of a 2.4 GHz video link against distanceCovered
TelemetryM2M3Module 2: telemetry bandwidth budget · Module 3: wrapping sequence numbers and splitting frames from a byte streamCovered
Data linksM2M4Module 2: C2 links, telemetry and video · Module 4: different kinds of failsafe and a link state machineCovered
IP networkingM3Module 3: IP addresses, subnets and routing (Example 3: a field station subnet plan and longest-match routing per RFC 791, 1918 and 4632) and Analysis in simulation (SITL sending UDP through MAVProxy endpoints and ports)Covered
Communication protocolsM3M5Module 3: MAVLink sequence numbers, framing and CRC · Module 5: LoRa parameters and mesh networksCovered
Short- and long-range communicationsM1M2M5Module 1: Fresnel zones (a 5 km link) · Module 2: Shannon capacity and video links · Module 5: Short-range and long-range communications (Wi-Fi, 433 MHz telemetry, LoRa, cellular and LEO/GEO satellite compared; Example 3, loss and latency by distance; box on frequencies allowed in Thailand)Covered
Quality of serviceM2Module 2: latency, quality of service and reliabilityCovered
LatencyM2M4Module 2: Example 3, a latency budget and failsafe timing · Module 4: choosing a timeout with numbersCovered
ReliabilityM2M4M5Module 2: link reliability · Module 4: chance of a false failsafe per flight · Module 5: delivery ratio in a meshCovered
Data securityM4M5Module 4: Data security and MAVLink 2 message signing (confidentiality, integrity and authentication, availability; AES encryption; limits of Meshtastic encryption; Example 3, signing a command and catching altered, replayed and wrong-key frames) · Module 5: the mistake of sending personal data unencryptedCovered

Weekly teaching plan

WeekTopicPre-classLectureLabEvidence
1 M1Fresnel zones and mast heightRead module 1 to the Fresnel zone section; run Example 1Line of sight is not enough: Fresnel clearance and earth curvatureWorksheet 1 part A: draw a path profile from elevation data; find the required mast heightPath profile and mast-height calculation
2 M1Antenna radiation patternsRead the radiation pattern section; run Example 2The null above the station, gain and antenna choiceWorksheet 1 part B: fly over the station at constant height and log RSSI from telemetryRSSI plot against Example 2
3 M1Polarization and spectrum rulesRead the polarization section; take the module 1 quizPolarization mismatch loss and transmit power under Thai rulesWorksheet 1 part C: rotate the ground antenna 0°, 45°, 90° and log signal strengthWorksheet 1 short report and quiz result
4 M2Telemetry bandwidth budgetRead module 2 to the bandwidth budget section; run Example 1MAVLink message sizes, rates and SiK AIR_SPEED and ECC settingsWorksheet 2 part A: read message rates from the GCS or SITL; compute the share of radio capacity usedBandwidth budget table
5 M2Shannon capacity and video linksRead the Shannon capacity section; run Example 2SNR with distance and where video bit rate starts to fall shortWorksheet 2 part B: raise the ATTITUDE rate in SITL; apply Example 2 to the lab's video linkNotes on the rate change and the predicted problem range
6 M2Latency, quality of service and reliabilityRead the latency section; run Example 3; take the module 2 quizLatency budget from sensor to operator and failsafe timingWorksheet 2 part C: log RSSI and video bit rate flying out in a straight line; compare with calculationsWorksheet 2 short report and quiz result
7 M3Wrapping sequence numbers and packet lossRead module 3 to the sequence-number section; run Example 1Sequence numbers wrapping 0 to 255 and separating senders by system IDWorksheet 3 part A: start SITL and MAVProxy; record endpoints, ports and system IDsConnection diagram
8 M3Splitting frames from a byte streamRead the framing section; run Example 2Start byte, length and CRC for catching bad framesWorksheet 3 part B: pymavlink script reading ATTITUDE, logging sequence and time to CSV; loss per senderCSV file and packet-loss table
9 M3Analysis in simulation; midtermReview modules 1–3; take the module 3 quizMidterm examination (modules 1–3)Worksheet 3 part C: capture loopback packets with Wireshark and compare with the scriptWorksheet 3 report and midterm score
10 M4Different kinds of failsafeRead module 4 to the failsafe types sectionTelemetry loss, GCS failsafe and RC loss, and the available actionsWorksheet 4 part A: record all failsafe parameters in SITL before startingFailsafe parameter table
11 M4A link state machineRead the state machine section; run Example 1Link state from heartbeat times and recoveryWorksheet 4 part B: enable GCS failsafe, stop MAVProxy forwarding; log stop time and mode changeTimed event sequence
12 M4Choosing a timeout with numbersRead the timeout section; run Example 2; take the module 4 quizTrading false failsafes against slow responseWorksheet 4 part C: restore the link, record behaviour and compare with Example 1Worksheet 4 short report and quiz result
13 M5LoRa parametersRead module 5 to the LoRa parameters section; run Example 1SF, bandwidth, time on air and duty cycleWorksheet 5 part A: choose SF and position rate for a 20-person team; check NBTC rules for 920–925 MHzSettings table with reasons
14 M5Mesh networksRead the mesh section; run Example 2; take the module 5 quizDelivery probability by hop count and retransmissionWorksheet 5 part B: set up three LoRa nodes, measure delivery with one and two hops, try a drone-borne relayMeasured results against Example 2
15 M5Mini-project presentationsPrepare the group's field network designCourse wrap-up and project criteriaPresent a UAS mission data network covering C2, video and the field networkMini-project report and presentation, 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 Path survey and antenna tests
Lab · About 6 h of class time · CLO1

Objective: Analyse the path profile and Fresnel zone of a real link and measure the effects of antenna pattern and polarization

Equipment

  • Terrain elevation map or field survey data
  • Computer with Python and the module 1 example code
  • Drone with telemetry radio and ground station
  • Rotatable ground antenna

Safety

  • Fly within CAAT conditions in visual line of sight; keep people clear
  • Use frequencies and transmit power allowed in Thailand for every test
  • Do not touch or stand in front of an antenna while it transmits at high power

Steps

  1. Draw the path profile from the station to the farthest flight point
  2. Use Example 1 to find the required mast height; compare with the existing mast
  3. Fly over the station at constant height and log RSSI from telemetry
  4. Compare RSSI with the Example 2 result
  5. Rotate the ground antenna 0°, 45° and 90° and log the signal
  6. Summarise and explain differences from the calculations

Deliverables

  • Path profile and mast-height calculation
  • RSSI plot during the overflight
  • Signal table by polarization angle
  • Conclusions and reasons for differences

Checklist

  • Table 1 uses GHz and km in the F1 formula and shows results for both 1.0 F1 and 0.6 F1 (Accuracy of link calculations)
  • Table 2 has all 6 ranges with both calculated values and measured RSSI, with units (Measurement and analysis of real data)
  • Table 3 has all 3 angles measured, with the drop from 0° computed (Measurement and analysis of real data)
  • The RSSI plot has labelled axes with units and the calculated curve overlaid for comparison (Communication and reporting)
  • Frequency, transmit power and flight height used are recorded and confirmed within CAAT and NBTC rules (Network and failsafe design)

Instructor guide

Class timing 360 min

  1. Objectives, flight safety and frequency rules briefing30 min
  2. Draw the path profile and compute mast height with Example 190 min
  3. Overflight and RSSI logging90 min
  4. Rotate the ground antenna and measure the signal60 min
  5. Compare measurements with calculations and plot60 min
  6. Wrap-up, questions and hand-in checklist30 min

Expected results

  1. Record: Table 1 Path profile and mast heightTable 1 (numbers depend on the real path; with Example 1 values, 915 MHz, 5 km, 15 m mangroves at 3 km): F1 at 0.5, 1.25, 2.5 and 3 km is 12.13, 17.51, 20.22 and 19.81 m; Earth bulge 0.13, 0.28, 0.37 and 0.35 m; masts at least 36 m for 1.0 F1 (28 m for 0.6 F1). Accept ±0.05 m from rounding. An F1 of hundreds of metres means MHz was entered instead of GHz.
  2. Record: Table 2 RSSI during the overflight at constant heightTable 2 (if the lab flies at 60 m to stay under the CAAT 90 m limit, using the Example 2 formula with vertical dipoles at both ends at 915 MHz): at ground ranges 500, 200, 100, 50 and 10 m the elevation is 6.8, 16.7, 31.0, 50.2 and 80.5 degrees and the total loss 85.9, 79.2, 76.8, 79.7 and 102.8 dB, so RSSI relative to 500 m should be about 0, +6.7, +9.1, +6.2 and -16.9 dB. The expected shape: RSSI rises on approach, peaks around 100 m, then drops sharply almost overhead. Absolute dBm depends on the radio; accept about ±6 dB from the calculation because of ground reflections and drone tilt.
  3. Record: Table 3 Signal by ground antenna tiltTable 3: theory gives no loss at 0°, 3.0 dB (half the power) at 45° and, in theory, no signal at 90°. The measured drop at 45° should be about 2-5 dB; at 90° it drops a lot but remains measurable, not the infinite theoretical value.
  4. Question 1: Is the existing station mast high enough for the 1.0 F1 criterion? If not, what happens to the signal when the drone descends below the mangrove tree line?Depends on the real mast, compared with 36 m (or 28 m at 0.6 F1). If the mast is shorter, the mangroves intrude into the Fresnel zone and the signal weakens even with line of sight; when the drone descends behind the tree line, line of sight itself is blocked and the link may drop. A strong answer proposes a fix, such as raising the mast, moving the station or setting a minimum flight height in that area.
  5. Question 2: In Table 2, at which ground range was RSSI strongest and weakest? Does this match the vertical dipole pattern? Explain using the elevation angle.RSSI is strongest at mid range (about 100-200 m at 60 m height) and weakest almost directly over the mast, because the elevation approaches 90°, the null direction of both vertical dipoles. Far away the elevation is low and pattern loss is near zero, but FSPL is larger. A strong answer points out that the signal near the station can be worse than far away.
  6. Question 3: How close are the measured drops at 45° and 90° to the cos²ψ theory? Why does the signal not vanish completely at 90°?At 45° the drop should be close to 3 dB; at 90° it is large but not total, because real antennas are not perfectly polarized, reflections from the ground and nearby objects partly change the polarization, and the drone tilts in flight. A strong answer links this to why video links often use circularly polarized antennas.
  7. Question 4: If the link used 433 MHz, the band drones in Thailand may actually use, how would F1 and the mast height in Table 1 change? Show the calculation.F1 is inversely proportional to the square root of frequency, so it grows by √(0.915/0.433) ≈ 1.45 times: at 3 km F1 rises from 19.81 to 28.80 m and the masts must be at least 45 m for 1.0 F1 (33 m for 0.6 F1), in exchange for lower FSPL. The formula and units must be shown.

Discussion questions

  • If the trees do not block the line of sight at all, why can reception still get worse, and would the rainy season make this better or worse?
  • If the drone often has to pass over the station, how would you site the station or mount the antennas so the link does not drop there?
  • If you calculated at 915 MHz but the real radio is 433 MHz, what must be recalculated?

Adapting to student background

Upper secondary (M.6)
Have them predict the RSSI curve from the pattern formula before the flight and compare with the real data; give extra time rotating and fixing the real antenna, paired with a hands-on peer.
Vocational certificate
Let them change only three values in the Example 1 code (distance, tree height, frequency) instead of writing the formula, with a fill-in table converting MHz to GHz and m to km before running it.
Diploma
Extension: repeat the overflight with the ground antenna tilted towards the flight area, or with antennas at different angles on the drone, and measure how many dB the null over the station improves.

Common student mistakes: Common mistakes in the module 1 lesson

2Worksheet 2 Bandwidth budget and link quality
Lab · About 6 h of class time · CLO1, CLO2

Objective: Compute the telemetry bandwidth budget, estimate video link capacity with distance, and measure real link quality against calculations

Equipment

  • ArduPilot SITL and a GCS
  • Lab SiK radios
  • Drone with a video link
  • Python and the module 2 example code

Safety

  • The SITL part is simulation only
  • Fly within CAAT conditions in visual line of sight; return as soon as the signal drops below the set threshold

Steps

  1. Read message rates from the GCS or SITL into Example 1
  2. Read the SiK AIR_SPEED and ECC settings; compute the share used
  3. Raise the ATTITUDE rate in SITL and see whether other messages slow down
  4. Apply Example 2 to the lab video link spec; find the range where problems should start
  5. Log RSSI and video bit rate while flying out in a straight line; compare with calculations

Deliverables

  • Bandwidth budget table
  • Notes on the message-rate change
  • RSSI and bit rate against distance versus calculation

Checklist

  • Every row of Table 1 adds the 12-byte header and CRC before multiplying by 8 and the rate, and the total is in kbit/s (Accuracy of link calculations)
  • The share is computed against both the lab's real AIR_SPEED and the ECC-on case (half) (Accuracy of link calculations)
  • Table 3 has measured values at 5 or more distances next to the calculated values in the same row (Measurement and analysis of real data)
  • The RSSI and bit-rate plot has labelled axes, units and the calculated limit line (Communication and reporting)
  • The signal threshold for returning is stated and its use during the flight is recorded (Network and failsafe design)

Instructor guide

Class timing 360 min

  1. Objectives and safety; set the return-signal threshold30 min
  2. Read message rates and SiK settings; build the bandwidth budget90 min
  3. Raise the ATTITUDE rate in SITL60 min
  4. Compute video link capacity from the lab spec45 min
  5. Fly out in a straight line, logging RSSI and bit rate105 min
  6. Wrap-up, questions and hand-in checklist30 min

Expected results

  1. Record: Table 1 Telemetry bandwidth budgetTable 1 (if the rates match the lesson's Example 1; real values depend on the GCS or SITL): HEARTBEAT 168, SYS_STATUS 880, ATTITUDE 3,200, GLOBAL_POSITION_INT 1,600, VFR_HUD 1,024, GPS_RAW_INT 1,024, RC_CHANNELS 864 bit/s; total 8.76 kbit/s, 14% of AIR_SPEED 64 and 27% with ECC on (32 kbit/s). With different real rates, check the method (payload + 12) × 8 × rate.
  2. Record: Table 2 Effect of changing the ATTITUDE rate in SITLTable 2 (from the Example 1 code): ATTITUDE 50 Hz alone gives 21.56 kbit/s = 34% of 64 (67% of 32); ATTITUDE 50 Hz with position 25 Hz gives 27.96 kbit/s = 44% of 64 (87% of 32). In SITL with no real radio, other messages usually do not slow down because no air rate limits them; recording no slowdown is correct, provided the student explains how a real radio would differ.
  3. Record: Table 3 Video link quality against distanceTable 3 (if the lab uses the Example 2 spec: 20 dBm, 2 dBi antennas at both ends, 20 MHz bandwidth, 6 dB NF at 2.44 GHz): noise floor -95.0 dBm; at 200 m and 500 m SNR is 32.8 and 24.8 dB with limits of 217.7 and 164.9 Mbit/s; at 1 km SNR 18.8 dB, 125.2 Mbit/s. The measured bit rate should be far below the limit (about half or less), and RSSI should fall about 6 dB each time the distance doubles. Accept ±6 dB.
  4. Question 1: What share of the SiK air rate does the lab telemetry use? If the team raises ATTITUDE to 50 Hz and position to 25 Hz during tuning with ECC still on, what happens?With the example rates, 14% of 64 kbit/s, so normal settings leave plenty of room. Raising rates for tuning with ECC on uses about 87% of 32 kbit/s, leaving very little for uplink data from the GCS, so important messages are delayed or lost. Turn ECC off (the guide no longer recommends it) or raise rates only while tuning and then lower them.
  5. Question 2: When you raised the ATTITUDE rate, did other messages slow down? Explain what you saw with the bandwidth budget and queuing.In SITL other messages usually do not slow down, because the simulated link has no radio air-rate limit. On a real radio, once demand approaches the air rate, messages queue and others arrive late or are dropped. A strong answer separates the simulator result from real radio behaviour.
  6. Question 3: How many times lower than the Shannon limit at the same distance was the measured video bit rate? Why can a real system not reach the limit?Depends on the measurements; usually several times below the limit, because Shannon is a theoretical upper bound, real modulation and error correction are imperfect, protocols add overhead, and the video encoder is set to the bit rate it needs rather than the full capacity. A strong answer does not treat the Shannon limit as the achievable rate.
  7. Question 4: A 40-byte command at 64 kbit/s takes only 5 ms to send, yet one-way latency is about 65 ms. Which part should be cut first, and how?Queuing behind telemetry (50 ms) is the largest part, against 5.0 ms serialisation and 10 ms processing: 65 ms one way, 130 ms round trip. Cut the queue first, for example by lowering unneeded telemetry rates or giving control commands their own priority queue (QoS).

Discussion questions

  • How do C2, telemetry and video differ in what they need, and how would you set priorities if they share one link?
  • If the video starts stuttering much closer than calculated, what could the causes be?
  • Knowing a real system reaches about half the limit, where should the return-signal threshold be set?

Adapting to student background

Upper secondary (M.6)
Have them compute one budget row by hand and explain the Shannon formula and log2 before running the code; pair them with a peer confident at radio setup for the flight part.
Vocational certificate
Let them fill Table 1 in a spreadsheet with formulas prepared, and focus on reading AIR_SPEED and ECC from the real radio and logging during the flight, skipping the formula derivation.
Diploma
Extension: enable adaptive video bit rate (if the lab video system supports it), repeat the flight and compare whether freezes are reduced.

Common student mistakes: Common mistakes in the module 2 lesson

3Worksheet 3 Capturing and analysing MAVLink
Lab · About 6 h of class time · CLO2

Objective: Read MAVLink messages with a script, compute packet loss from sequence numbers and detect bad frames in a byte stream

Equipment

  • ArduPilot SITL and MAVProxy
  • Python with pymavlink
  • Wireshark
  • Telemetry radio on a serial port (if available)

Safety

  • Simulation and bench work only; no flying

Steps

  1. Start SITL and MAVProxy; record endpoints, ports and system IDs
  2. Write a pymavlink script that reads ATTITUDE and logs sequence and time to CSV
  3. Use Example 1 to compute packet loss per sender
  4. Capture loopback packets with Wireshark; compare the rate with the script
  5. If a radio is available, record raw serial bytes and count bad frames with Example 2

Deliverables

  • Connection diagram
  • Script and CSV file
  • Packet-loss table against Wireshark
  • Bad-frame count with explanation

Checklist

  • Table 1 lists the endpoint, port and system ID of every component in the connection diagram (Communication and reporting)
  • The script counts loss modulo 256, separately per sender, and the CSV file is attached (Accuracy of link calculations)
  • Table 2 has both the Wireshark rate and the script rate over the same time window (Measurement and analysis of real data)
  • Box 3 gives good and bad frame counts, or states that no radio was available and the Example 2 stream was used (Measurement and analysis of real data)

Instructor guide

Class timing 360 min

  1. Objectives; review the MAVLink 2 frame structure30 min
  2. Start SITL and MAVProxy; draw the connection diagram60 min
  3. Write the pymavlink script, log sequences to CSV and compute loss120 min
  4. Capture with Wireshark and compare rates60 min
  5. Count bad frames in the byte stream60 min
  6. Wrap-up, questions and hand-in checklist30 min

Expected results

  1. Record: Table 1 Connections in the experimentTable 1: at least SITL, MAVProxy, the GCS and the Python script, with UDP endpoints on 127.0.0.1 and the ports actually used (the GCS usually uses 14550). The SITL autopilot is normally system 1 component 1 and the GCS often system 255; accept other values if they match the real setup.
  2. Record: Table 2 Packet loss per sender against WiresharkTable 2: on loopback within one machine loss should be close to 0%. The script's ATTITUDE rate should equal the rate set in SITL, while Wireshark counts every UDP packet, so it is higher when several message types flow. Tested on the Example 1 sequence, the script must give 16 received, 4 lost, 20.0% loss (a direct subtraction gives 259).
  3. Record: Box 3 Good and bad frame counts from the byte stream, with explanationBox 3: with the Example 2 stream, 3 good frames (HEARTBEAT 2, ATTITUDE 1) and 1 bad frame, seq 12. With a real radio on the bench, bad frames should be very few or zero. The explanation must say the receiver steps one byte at a time to find a new 0xFD.
  4. Question 1: What packet loss did you compute in SITL? If it is unusually high, check whether you merged several senders or forgot the wrap after 255.SITL on one machine should give about 0%. If it is unusually high, the usual causes are merging several senders into one sequence, or subtracting directly so that the wrap from 255 to 0 counts as 255 lost. The correct formula is (s_k - s_(k-1) - 1) mod 256, per system ID and component ID.
  5. Question 2: Did the Wireshark packet rate differ from the rate the script read? If packets arrive often but the position value never changes, what does that tell you?Wireshark counts every packet on the network while the script counts only the chosen messages, so the numbers can differ. Packets arriving often with an unchanged value means the link works but the data is stale, for example a sensor or estimator stopped updating: packet rate is not data freshness.
  6. Question 3: When a frame fails its CRC, what does the receiver do next, and why is that better than passing the frame's values to the application?The receiver discards the frame and steps one byte at a time to find a new 0xFD start byte, so junk bytes do not spoil the next frame. Discarding is better because the values in a bad frame may be wrong, such as a wrong attitude or position, which could lead to wrong decisions. A strong answer adds that CRC_EXTRA also catches mismatched message definitions.
  7. Question 4: The companion computer at 192.168.10.70 cannot get heartbeats to the GCS at 192.168.10.10/26 although the radio works. What do you check before blaming the radio?With /26, .10 is in 192.168.10.0/26 and .70 is in 192.168.10.64/26, different subnets, so a route through the radio bridge is needed. Check the address, subnet mask and routing table of every device first; without the route, packets go to the default route and vanish.

Discussion questions

  • Which is more dangerous: a link with 5% loss whose data is always fresh, or a link with no loss whose data is stale?
  • Why is exposing MAVLink control ports to the internet during experiments risky?
  • A CRC catches errors from noise, but does it protect against someone who deliberately alters a message?

Adapting to student background

Upper secondary (M.6)
Have them work the sequence wrap by hand from Figure 1 before scripting and explain the frame structure byte by byte; let them follow a tool-confident peer for the MAVProxy setup.
Vocational certificate
Give them a starter pymavlink script where they only add the CSV writing, use the Example 1 code for the calculation, and focus on connecting the radio to the serial port and capturing with Wireshark.
Diploma
Extension: use a smaller antenna or increase the bench radio distance until bad frames appear, then compare the bad-frame rate with the sequence-based loss rate.

Common student mistakes: Common mistakes in the module 3 lesson

4Worksheet 4 Cutting and restoring the link in SITL
Lab · About 6 h of class time · CLO2, CLO3

Objective: Test failsafe behaviour when the link drops and returns, set the timeout from calculation and separate each failsafe type

Equipment

  • ArduPilot SITL, MAVProxy and a GCS
  • Python and the module 4 example code

Safety

  • Simulation only; never cut the link on a real drone without a plan and a backup pilot

Steps

  1. Start SITL and the GCS; record all failsafe parameters first
  2. Enable GCS failsafe with the team's chosen action; set the timeout from Example 2
  3. Stop MAVProxy forwarding; record the stop time and the mode-change time
  4. Restore the link, record the behaviour and compare with Example 1
  5. Separate telemetry loss, GCS failsafe and RC loss in the report

Deliverables

  • Parameter table before and after
  • Timed event sequence
  • Justification of the timeout
  • Report separating failsafe types

Checklist

  • Table 1 records the starting values of FS_GCS_ENABLE, FS_GCS_TIMEOUT, FS_THR_ENABLE and FS_THR_VALUE from the real firmware (Network and failsafe design)
  • Table 2 has the last heartbeat time, stop time, mode-change time and restore time, all in seconds (Measurement and analysis of real data)
  • Box 3 shows the false failsafe chance from Example 2 for at least two timeouts, and the distance flown on (Accuracy of link calculations)
  • The report separates telemetry loss, GCS failsafe and RC loss into their own sections (Communication and reporting)

Instructor guide

Class timing 360 min

  1. Objectives and the difference between failsafe types30 min
  2. Start SITL and the GCS; record all parameters45 min
  3. Compute the timeout with Example 2 and enable GCS failsafe75 min
  4. Cut and restore the link, timing events; repeat at least 3 times120 min
  5. Compare with the Example 1 state machine and write the report by type60 min
  6. Wrap-up, questions and hand-in checklist30 min

Expected results

  1. Record: Table 1 Failsafe parameters before and afterTable 1 (values from the documentation version the lesson checked; verify against the real firmware): FS_GCS_ENABLE off by default, FS_GCS_TIMEOUT 5 s, FS_THR_ENABLE set to RTL, FS_THR_VALUE 975 PWM. After setup FS_GCS_ENABLE must be on with the team's chosen action, such as RTL or land. If a student records GCS failsafe as already on from the start, ask whether it was read from the real firmware or assumed.
  2. Record: Table 2 Event sequence when the link is cut and restoredTable 2 (with a 5 s timeout and 1 Hz heartbeats): the mode changes about 5 s after the last heartbeat, which is 4-5 s after forwarding stops, because the last heartbeat can arrive up to 1 s before the stop. Accept 4-6 s including the software check cycle. On restore, the GCS should show connected within about 1 s, but the mode stays in the failsafe mode until the pilot changes it (depending on settings). All 3 runs should be close.
  3. Record: Box 3 Timeout justification (false failsafe chance and distance flown on)Box 3 (from the Example 2 code, 30-minute flight, 1 Hz heartbeats): at p = 0.1, timeouts of 3, 5 and 10 s give a false failsafe chance of 8.03e-01, 1.60e-02 and 1.61e-07 per flight; at 20 m/s the drone flies on 60, 100 and 200 m before the failsafe starts. A strong answer picks a balanced value and notes that the model assumes independent losses, while real losses often come in bursts.
  4. Question 1: Did the measured time from stopping forwarding to the mode change match the timeout you set? If not, where did the difference come from?It should differ from the timeout by no more than about 1 s. The difference comes from the last heartbeat arriving before the stop (sent every 1 s), the software check cycle and timing by hand. If it differs by several seconds, check the parameters and that the GCS heartbeat really goes through the path that was stopped.
  5. Question 2: If the lab link loses about 10% of packets, would you choose a 3, 5 or 10 s timeout? Justify it with the false failsafe chance and the distance flown on at 20 m/s.At 10%, a 3 s timeout gives about an 80% false failsafe chance per flight, far too high; 5 s about 2%, with 100 m flown on; 10 s almost no false failsafes but 200 m flown on. Most strong answers choose 5 s or close to it, and say the flight area must allow 100-200 m of uncontrolled flight safely.
  6. Question 3: When the link returned, did the drone resume the old mission on its own? What procedure should the team follow after the link returns?Depends on the settings; usually the drone stays in the failsafe mode, such as RTL, and does not resume the old mission by itself. A strong answer says to check the mode changes in the log and to set a team procedure, such as the pilot confirming drone and link status before resuming the mission or letting it continue home.
  7. Question 4: In this experiment, how do telemetry loss, GCS failsafe and RC loss differ? Which of them can stopping MAVProxy test?Telemetry loss means the GCS stops receiving data from the drone; GCS failsafe means the drone has not received a GCS heartbeat for longer than FS_GCS_TIMEOUT; RC loss means the transmitter signal is lost and uses FS_THR_ENABLE and FS_THR_VALUE. Stopping MAVProxy tests telemetry loss and GCS failsafe, but not RC loss, which must be simulated separately.

Discussion questions

  • Should the timeout be the same over open land and near a community? Why?
  • Why should you not cut the link on a real drone before testing in simulation?
  • If someone sends a fake RTL or replays an old command, how does MAVLink 2 signing help, and what does it still not protect?

Adapting to student background

Upper secondary (M.6)
Have them explain why the per-flight chance exceeds p^N by computing 0.1^3 = 0.001 by hand before reading the code output, and draw the state machine on paper before the test.
Vocational certificate
Let them use the printed Example 2 table to pick the timeout, and focus on setting parameters in the GCS, timing events and reading mode changes in the log.
Diploma
Extension: simulate RC loss in SITL separately and compare its event sequence with the GCS failsafe in the same table.

Common student mistakes: Common mistakes in the module 4 lesson

5Worksheet 5 Designing a field network
Lab · About 6 h of class time · CLO3

Objective: Choose LoRa settings within the duty-cycle limit, measure mesh delivery and configure lawfully

Equipment

  • Three LoRa nodes, e.g. Meshtastic set to region TH
  • Drone able to carry a relay node
  • Python and the module 5 example code
  • The actual NBTC notice for 920–925 MHz

Safety

  • Fly within CAAT conditions in visual line of sight; fix the node firmly so it cannot fall
  • Set power and frequency according to NBTC rules
  • Do not send personal data over an open network without encryption
  • Mount the LoRa node on the drone only after the instructor has confirmed that the NBTC notice in force allows that band for drones; until then, put the relay node on a ground mast instead

Steps

  1. Use Example 1 to choose SF and position rate for a 20-person team within half the duty cycle
  2. Configure three LoRa nodes in region TH
  3. Measure delivery with one and two hops
  4. Compare with Example 2 and explain differences
  5. Hover a drone carrying a relay node and observe message rerouting
  6. Check the NBTC rules and record the power and settings used

Deliverables

  • Settings and duty-cycle calculation
  • Measured delivery against calculation
  • Relay experiment notes
  • Regulatory compliance checklist

Checklist

  • Table 1 uses a 20-byte payload, 125 kHz BW and CR 4/5 as in Example 1, compared with half the configured duty cycle (180 s per hour at 10%) (Accuracy of link calculations)
  • Table 2 sends at least 50 messages per case and has both measured and calculated values (Measurement and analysis of real data)
  • Table 3 records region, frequency, power and duty cycle, naming the source checked (the actual NBTC notice, not a secondary source) (Network and failsafe design)
  • The relay notes include a route diagram before and after the relay node is added (Communication and reporting)

Instructor guide

Class timing 360 min

  1. Objectives, flight safety and the frequency rules to check30 min
  2. Compute time on air and choose SF and rate60 min
  3. Configure three LoRa nodes and measure one- and two-hop delivery120 min
  4. Relay node experiment60 min
  5. Check the NBTC rules and compare results with Example 260 min
  6. Wrap-up, questions and hand-in checklist30 min

Expected results

  1. Record: Table 1 Choosing SF and position rate for a 20-person teamTable 1 (per Example 1, Meshtastic's 10% duty cycle for TH, half being 180 s per hour, 20 people): SF7 56.6 ms every 1 min, 1,200 messages, 68 s (1.9%), within; SF9 185.3 ms every 1 min uses 222 s (6.2%), over, every 2 min 600 messages 111 s (3.1%), within; SF10 370.7 ms every 3 min 148 s (4.1%), within; SF11 741.4 ms needs every 5 min, 178 s (4.9%); SF12 1,318.9 ms still uses 317 s (8.8%) every 5 min, over. Several answers are correct as long as channel use stays at or below 5% and range is considered.
  2. Record: Table 2 Delivery by hop countTable 2 (per Example 2, each hop succeeds 90%, no retries): one hop 90.0%, two hops 81.0%; with 2 retries 99.9% and 99.8%. Real results depend on distance and obstacles; at close range on a bench delivery may be near 100%, which is acceptable if the student explains how it differs from the 90% per hop assumption.
  3. Record: Table 3 Settings and regulatory checkTable 3: region TH, 920-925 MHz (AS923-1 channels), power within what the actual NBTC notice sets (the lesson cites a secondary source saying IoT devices may use up to 500 mW e.i.r.p. without a licence, to be checked against the Royal Gazette); the 10% duty cycle is Meshtastic's setting, not a checked requirement. The student must also record that a node carried on the drone counts as a drone radio, and that permission under the notice in force still has to be confirmed.
  4. Question 1: Which SF and position rate did the team choose? If everyone used SF12 and sent every minute, what would happen to the channel?Depends on the choice. A good example: SF9 every 2 min, using 3.1% of the hour. If everyone used SF12 every minute, time on air would be 1,583 s per hour (44%), several times the 10% duty cycle (360 s); messages would collide and be dropped. Fixes: lower the rate, lower SF where the signal is good, or split channels.
  5. Question 2: How did the measured delivery for one and two hops differ from the calculation? Explain using the calculation's assumptions.Measured delivery can be higher or lower than calculated. The calculation assumes each hop succeeds 90% independently and leaves out collisions; close nodes on a bench give higher values, a busy network or obstacles give lower ones. A strong answer says delivery falls exponentially with hops and retries help a lot.
  6. Question 3: When the relay node was added, how did message routes change? What do you gain and lose by adding a hop on the same channel?A relay node opens a new route over obstacles, so messages from far nodes get through, but every hop adds loss and delay and reuses the same channel, so total chain throughput falls (ideally about 1/4 of a single link per Li et al.). A strong answer mentions Meshtastic's hop limit (default 3).
  7. Question 4: If the drone must fly beyond the 433 MHz link range in the mangroves, which backup link would you choose, and why is a GEO satellite unsuitable for flying by hand?A suitable backup does not depend on the team's own radio, for example a LEO satellite link, since there is no mobile coverage in the mangroves (check real coverage). GEO is unsuitable because the signal travels about 4 × 35,786 km for a command and its acknowledgement, about 477 ms before any queuing, roughly 3.7 times the 130 ms budget.

Discussion questions

  • If the team grows from 20 to 40 people, which settings must change?
  • Is team members' position data personal data, and does Meshtastic channel encryption with the default key really protect it?
  • While waiting for confirmation on the drone node's frequency, how could the team design a backup network without using the drone as a relay?

Adapting to student background

Upper secondary (M.6)
Have them explain from 2^SF/BW why one SF step doubles the symbol time and compute SF10 by hand (8.19 ms) before using the code; pair them with a hands-on peer for node setup.
Vocational certificate
Let them pick SF from the Example 1 table and only multiply messages per hour by time on air with a calculator; focus on Meshtastic node setup, fixing the node firmly and logging results.
Diploma
Extension: measure three-hop delivery with retries on (if the firmware supports it), compare with the Example 2 table and measure end-to-end message time.

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)
Accuracy of link calculations30%Link, bandwidth and latency budgets all correct; reproducible codeNearly all correct, method shownSome errors or missing stepsMany errors or no method
Measurement and analysis of real data25%Complete measurements compared with calculations; differences explained correctlyComplete measurements, partly explainedIncomplete data or no comparisonNo usable measurements
Network and failsafe design25%Settings and timeouts chosen with numbers, link loss covered, spectrum rules metGood design with some unjustified choicesLink-loss cases or rules missingNo justification for the design
Communication and reporting20%Clear, concise, with readable diagrams and plotsClear with minor flawsHard to follow or missing partsDoes not communicate results

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 Explain wireless communication principles and link budgetsW 1W 2M1M2M5
CLO2 Analyse telemetry and the MAVLink protocolW 2W 3W 4M2M3M4
CLO3 Design data networks for UAS missionsW 4W 5M3M4M5