UAT 312 Mission Planning, Autonomous Operations and Beyond Visual Line of Sight
Worksheet 2 Simulated mission and RTL in SITL
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
- Build a 6–8 waypoint mission in the simulated area; save mission and parameters
- Compute RTL energy from the farthest point with Example 1
- Propose a low-battery threshold with reasons
- Compute the geofence margin with Example 2 and configure it in SITL
- Simulate GCS link loss with failsafe off and on; compare mode sequences in the logs
Record of results
| No. | MAVLink command | Distance from home (m) | Altitude and reference frame | Notes |
|---|---|---|---|---|
| Quantity | Formula used | Values substituted | Result with unit |
|---|---|---|---|
| Case | Parameter values set | Time of link cut (s) | Mode sequence read from the log | Final position of the drone |
|---|---|---|---|---|
Questions
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?
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.
If GNSS becomes unavailable during the mission, does the geofence you set still help? What procedure must the group prepare before flight?
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