Skip to content

4.6 Autonomous Formation

Overview

Formation flight is one of aviation's most technically demanding disciplines — requiring precise coordination, reliable communication, and fast control loops. In this project, two GPS-equipped quadcopters fly in formation autonomously: a leader drone follows a pre-planned waypoint circuit while a wingman drone continuously calculates the required offset position and flies to it. This mirrors the multi-agent drone systems used for survey coverage, entertainment light shows, and military operations.

Required Components

Item Quantity Notes
Quadcopters (from Project 10, GPS-equipped) 2 Both must pass full pre-flight check individually
GPS + compass modules 2 Kit 11 – one per drone
LoRa or WiFi communication modules 2 Kit 11 – matched pair; one per drone
Laptops with Mission Planner 2 School – one per drone
USB telemetry radios (or WiFi) 2 Kit 11 – for in-flight monitoring
LiPo 3S batteries (charged) 2 Teacher-handled only
Open outdoor field (40 m × 40 m minimum) 1 Clear of people and obstacles

Step-by-Step Assembly

Phase 1: Setup & Communication (Lessons 1–2)

STEP 1 Individual Drone Verification
* Fly each drone individually to confirm GPS, hover stability, and return-to-launch * Both drones must pass the Project 10 pre-flight checklist independently * Assign roles: Drone 1 = Leader (callsign L); Drone 2 = Wingman (callsign W)
STEP 2 Communication Module Installation
* Install a LoRa or WiFi module on each drone — typically connected to a UART port * Configure the module baud rate to match the flight controller telemetry port * Test on the ground: power both drones; open a terminal on each laptop * Send a test GPS position string from L to W; confirm W receives it within 100 ms
STEP 3 Ground Station Setup
* Connect both drones to Mission Planner simultaneously using the telemetry radios * In Mission Planner: switch to multi-vehicle view; confirm both HUDs are active * Verify GPS position accuracy: both drones should show within 2 m of their actual position

Phase 2: Programming (Lessons 3–5)

STEP 4 Leader Mission Planning
* Plan a 4-waypoint rectangular mission for the Leader drone in Mission Planner * Waypoints: 20 m × 20 m square; altitude 10 m; loiter 3 s at each waypoint * Upload mission to Leader; read back to verify * Set Leader failsafe: RTL if communication lost
STEP 5 Wingman Offset Controller
* The Wingman controller receives Leader GPS position and adds the formation offset * V-formation offset: Wingman = Leader position + (–5 m North, +5 m East) * The Wingman then flies to that calculated target GPS position in GUIDED mode * Loop runs at 2 Hz: new Leader position → calculate offset target → send GUIDED command * Test on ground: move Leader drone by hand; Wingman should update its target position

Phase 3: Flight Testing (Lessons 6–8)

STEP 6 Individual Auto Flight Tests
* Fly the Leader drone solo through the complete 4-waypoint mission * Fly the Wingman drone solo in GUIDED mode with a simulated offset target (stationary) * Both must complete individual tests successfully before formation flight attempt
STEP 7 Formation Flight
* Teacher connects both batteries; both drones arm simultaneously * Leader arises first to 10 m; Wingman arms and rises to 10 m * Start the Leader autonomous mission; Wingman begins tracking * Record offset error at 30-second intervals in the data table * Emergency: if either drone behaves unexpectedly, teacher aborts both immediately

Power & Safety

For safety instructions and power requirements, please refer to Safety Notes.

Engineering Principles

Learn more about the theory and principles in Engineering Principles.

Data Collection

Time (s) Leader GPS (Lat) Wingman GPS (Lat) Offset Error (m) Notes
0
30
60
90
120

Expected Result

Outcome Success Criteria
Both drones functional Each drone passes full pre-flight check individually
Communication established Leader GPS position received by wingman within 100 ms
Leader follows waypoints Leader completes a 4-waypoint autonomous circuit
Wingman follows leader Wingman maintains offset within 2 m for 60+ consecutive seconds
Formation maintained V-formation held for a complete circuit of the waypoint course

Troubleshooting

For common errors and troubleshooting, please refer to Troubleshooting.

Upgrade & Extension Ideas

  • Three-Drone Formation – Add a third drone; programme both wingmen from a single leader
  • Dynamic Formation Change – Mid-flight formation change from V to Line Astern; programme the offset switch
  • Obstacle Avoidance – Add ultrasonic sensors to each drone; programme collision avoidance between formation members
  • Light Show Choreography – Programme a sequence of formation changes to create a coordinated light display