UAT 312 Mission Planning, Autonomous Operations and Beyond Visual Line of Sight

Worksheet 2 Simulated mission and RTL in SITL

Lab 4 hAssesses CLO1, CLO3

Objective

Build an automated mission, compute RTL energy and geofence margin, and compare behaviour with the failsafe off and on

Equipment and materials

  • ArduPilot SITL with QGroundControl or Mission Planner (instructor demo, or hands-on if computers are ready)
  • Lab guide L01 in the drone knowledge hub
  • Module 2 example code (m2_lesson_code.py)

Safety

  • Simulation only; no real flights
  • Do not connect the lab GCS to a real drone, and do not upload test missions or parameters to a real aircraft without review

Steps

  1. Build a 6–8 waypoint mission in the simulated area; save mission and parameters
  2. Compute RTL energy from the farthest point with Example 1
  3. Propose a low-battery threshold with reasons
  4. Compute the geofence margin with Example 2 and configure it in SITL
  5. Simulate GCS link loss with failsafe off and on; compare mode sequences in the logs

Record of results

Table 1 Mission item list
No.MAVLink commandDistance from home (m)Altitude and reference frameNotes
Table 2 RTL energy, battery threshold and geofence margin
QuantityFormula usedValues substitutedResult with unit
Table 3 Mode sequence from the log after GCS link loss
CaseParameter values setTime of link cut (s)Mode sequence read from the logFinal position of the drone

Questions

  1. How does your proposed low-battery threshold compare with PX4's 15% default? If the return headwind were 6 m/s, would your threshold still be enough?

  2. With the failsafe disabled, what did the drone do after the GCS link was cut? Is that safe or dangerous in your group's mission area? Explain from the log.

  3. If GNSS becomes unavailable during the mission, does the geofence you set still help? What procedure must the group prepare before flight?

  4. What do your SITL results confirm about the real flight, and what can they not confirm?

Check before you hand in

What to hand in

  • Mission and parameter files
  • RTL energy and battery threshold
  • Geofence margin
  • Two-case mode-sequence table

CLO1 Plan automated missions systematically. CLO3 Assess mission risk and contingency procedures. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack