Leader–Follower UAV Formation Control with Cost-Effective Coordination and Pre-Flight Simulation
Highlights
- The study designed and experimentally demonstrated a GPS-based leader–follower architecture for a small-scale (three-UAV) heterogeneous swarm, integrating different autopilots, Raspberry Pi onboard processors, and Wi-Fi ad hoc networking. Using real-time inter-UAV communication (UDP over Wi-Fi) and an embedded outer-loop PI controller, the system achieved stable wedge formation tracking with sub-meter-level horizontal and vertical formation errors under the tested conditions. The results provide initial experimental validation of the feasibility of heterogeneous UAV coordination, complementing prior simulation-based studies.
- A Python-based formation simulator, driven by recorded flight and environmental data with 3D visualization, was developed to support preliminary behavior prediction and control tuning. The simulator achieved approximately 93% agreement with observed formation error trends in the conducted trials. However, the validation is limited to the tested scenarios, and its general predictive accuracy across broader operating conditions or swarm scales has yet to be established.
- The results suggest that heterogeneous UAV formation control can be practically implemented at a small scale using off-the-shelf hardware, lightweight control (outer-loop PI), GPS positioning, and Wi-Fi networking. While interoperability via middleware (e.g., MAVLink) was demonstrated, scalability to larger swarms, robustness to communication loss, latency, and sensing degradation, and performance under disturbances remain open issues requiring further investigation.
- The use of a pre-flight simulator indicates a promising but preliminary engineering workflow for supporting field deployment by enabling data-driven tuning and risk reduction prior to experiments. Its applicability to safety-critical or large-scale swarm operations has yet to be validated, particularly under conditions involving packet loss, GPS denial, environmental disturbances, or more complex multi-agent interactions.
Abstract
1. Introduction
- Design and validation of a GPS-based small-scale leader–follower formation system for a heterogeneous UAV swarm, whose practical proof-of-concept feasibility is demonstrated through successful real-world implementation.
- Forming and controlling a wedge-shaped swarm of three heterogeneous UAVs under test conditions with different hardware/software by following MAVlink protocol and using an outer-loop PI controller and an ad hoc Wi-Fi network for real-time coordination.
- A customized Python-based pre-flight simulator for formation flight, which achieved 93% follow-error accuracy by incorporating experimental data and statistical analysis without resorting to models of detailed flight dynamics.
- Off-the-shelf and low-cost hardware and software implementation of controllers and a simulator.
2. Formation Control Problem Among Heterogeneous UAVs
2.1. UAV System and Control
2.2. Proportional–Integral–Derivative (PID) Control in Outer Loop
2.3. Leader–Follower Formation Control: Problem Definition
3. Outer-Loop Control Design for Leader–Follower Formation Control
3.1. Yaw Controller
3.2. Roll and Pitch Controller
3.3. Throttle Controller
3.4. Leader–Follower Formation Control
- (1)
- Manually piloting the leader UAV by an operator.
- (2)
- Periodic mission coordinate generation by the leader over its RPi computation for the two followers, respectively, of which the computation is based on the leader’s states and the formation requirements, and Algorithm 1 gives the details.
- (3)
- Periodic Wi-Fi communication by the leader to each follower the follower’s specific mission coordinates.
- (4)
- Tracking control via the outer-loop controller of each follower to track the specified mission trajectory.
| Algorithm 1: Mission Coordinate Generation Logic—From Leader to Follower. |
| Input: Leader UAV trajectory Output: Mission target for Follower |
|
4. Simulator for UAV Formation Control
4.1. Mission of UAV Formation
4.2. UAV Formation Control Simulator
| Algorithm 2: Simulator Trajectory and Heading Generation. |
|
| Algorithm 3: Follower Control Law Simulation. |
| Input: Target for Follower Follower UAV Position , Follower UAV heading , Frequency Output: Control Vectors |
| 1. Error Estimation Compute the spatial displacement vector between the follower and the target Vector: Update altitude error buffer with a sliding window of size . 2. Body Frame Projection Horizontal Projection: Project GPS errors into the UAV’s local frame using . in Figure 5b. Heading Error: Compute the relative bearing to . Target Bearing: Angular Difference: Altitude Error: 3. Command Mapping and Saturation Transform projected errors into PWM signals using bias : Pitch, Roll: Yaw: Throttle: Constraint: via saturation function . 4. Asynchronous Control Loop Update: Retrieve via non-blocking UDP telemetry. Execution: If autonomous mode is active, override RC channels at frequency . |
5. Experiment for UAV Formation Control
5.1. Experiment Scenario
5.2. Experimental Architecture
| Algorithm 4: Real-time Leader–Follower Controller Loop. |
|
5.3. Experimental Results
5.3.1. Step Response of Individual UAV Under Outer-Loop Control
5.3.2. Leader–Follower Operation
5.3.3. Formation Control Performance
6. Conclusions and Discussion
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Zhou, Y.; Rao, B.; Wang, W. UAV swarm intelligence: Recent advances and future trends. IEEE Access 2020, 8, 183856–183878. [Google Scholar] [CrossRef]
- Tang, J.; Duan, H.; Lao, S. Swarm intelligence algorithms for multiple unmanned aerial vehicles collaboration: A comprehensive review. Artif. Intell. Rev. 2023, 6, 4295–4327. [Google Scholar] [CrossRef]
- Alqudsi, Y.; Makaraci, M. UAV swarms: Research, challenges, and future directions. J. Eng. Appl. Sci. 2025, 72, 12. [Google Scholar] [CrossRef]
- Zeng, Y.; Zhang, R.; Lim, T.J. Wireless communications with unmanned aerial vehicles: Opportunities and challenges. IEEE Commun. Mag. 2016, 54, 36–42. [Google Scholar] [CrossRef]
- Vasisht, D.; Kumar, J.; Rahul, H.; Katabi, D. Decimeter-level localization with a single WiFi access point. In Proceedings of the 13th USENIX Symposium on Networked Systems Design and Implementation (NSDI), Santa Clara, CA, USA, 16–18 March 2016; pp. 165–178. [Google Scholar]
- Oh, K.-K.; Park, M.-C.; Ahn, H.-S. A survey of multi-agent formation control. Automatica 2015, 53, 424–440. [Google Scholar] [CrossRef]
- Do, H.T.; Hua, H.T.; Nguyen, M.T.; Nguyen, C.V.; Nguyen, H.T.; Nguyen, H.T.; Nguyen, N.T. Formation control algorithms for multiple-UAVs: A comprehensive survey. EAI Endorsed Trans. Ind. Netw. Intell. Syst. 2021, 8, e3. [Google Scholar] [CrossRef]
- Beard, R.W.; Lawton, J.; Hadaegh, F.Y. A coordination architecture for spacecraft formation control. IEEE Trans. Control. Syst. Technol. 2001, 9, 777–790. [Google Scholar] [CrossRef]
- Ren, W.; Beard, R.W. Distributed Consensus in Multi-Vehicle Cooperative Control; Springer: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
- Balch, T.; Arkin, R.C. Behavior-based formation control for multirobot teams. IEEE Trans. Robot. Autom. 1998, 14, 926–939. [Google Scholar] [CrossRef]
- Olfati-Saber, R. Flocking for multi-agent dynamic systems: Algorithms and theory. IEEE Trans. Autom. Control 2006, 51, 401–420. [Google Scholar] [CrossRef]
- Lewis, M.; Tan, K. High precision formation control of mobile robots using virtual structures. Auton. Robot. 1997, 4, 387–403. [Google Scholar] [CrossRef]
- Olfati-Saber, R.; Fax, J.; Murray, R. Consensus and cooperation in networked multi-agent systems. Proc. IEEE 2007, 95, 215–233. [Google Scholar] [CrossRef]
- Yuan, W.; Chen, Q.; Hou, Z.; Li, Y. Multi-UAVs formation flight control based on leader-follower pattern. In Proceedings of the 36th Chinese Control Conference (CCC), Dalian, China, 26–28 July 2017; IEEE: New York, NY, USA, 2017; pp. 1281–1286. [Google Scholar] [CrossRef]
- Ali, Z.A.; Israr, A.; Alkhammash, E.H.; Hadjouni, M. A leader-follower formation control of multi-UAVs via an adaptive hybrid controller. Complexity 2021, 2021, 9231636. [Google Scholar] [CrossRef]
- Ouyang, Q.; Wu, Z.; Cong, Y.; Wang, Z. Formation control of unmanned aerial vehicle swarms: A comprehensive review. Asian J. Control 2023, 25, 570–593. [Google Scholar] [CrossRef]
- Tognon, M.; Franchi, A. Omnidirectional aerial vehicles with unidirectional thrusters: Theory, optimal design, and control. IEEE Robot. Automat. Lett. 2018, 3, 2277–2282. [Google Scholar] [CrossRef]
- Svaty, Z.; Nouzovsky, L.; Micunek, T.; Frydryn, M. Evaluation of the drone-human collision consequences. Heliyon 2022, 8, e11677. [Google Scholar] [CrossRef]
- International Civil Aviation Organization (ICAO). ICAO Model UAS Regulations. Available online: https://www.icao.int/safety/UA/Pages/ICAO-Model-UAS-Regulations.aspx (accessed on 28 March 2026).
- Saska, M.; Kasl, Z.; Přeucil, L. Motion planning and control of formations of micro aerial vehicles. IFAC Proc. Vol. 2014, 47, 1228–1233. [Google Scholar] [CrossRef]
- Shi, G.; Hönig, W.; Shi, X.; Yue, Y.; Chung, S.-J. Neural-Swarm2: Planning and control of heterogeneous multirotor swarms using learned interactions. IEEE Trans. Robot. 2022, 38, 1063–1079. [Google Scholar] [CrossRef]
- Ardema, M.D. Newton-Euler Dynamics; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2004. [Google Scholar]
- Mahony, R.; Kumar, V.; Corke, P. Multirotor aerial vehicles: Modeling, estimation, and control of quadrotor. IEEE Robot. Automat. Mag. 2012, 19, 20–32. [Google Scholar] [CrossRef]
- Meier, L.; Honegger, D.; Pollefeys, M. PX4: A node-based multithreaded open source robotics framework for deeply embedded platforms. In Proceedings of the 2015 IEEE International Conference on Robotics and Automation (ICRA), Seattle, WA, USA, 26–30 May 2015; IEEE: New York, NY, USA, 2015; pp. 6235–6240. [Google Scholar] [CrossRef]
- Bouabdallah, S.; Noth, A.; Siegwart, R. PID vs. LQ control techniques applied to an indoor micro quadrotor. In Proceedings of the 2004 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) (IEEE Cat. No.04CH37566), Sendai, Japan, 28 September–2 October 2004; IEEE: New York, NY, USA, 2004; Volume 3, pp. 2451–2456. [Google Scholar] [CrossRef]
- Lee, T.; Leok, M.; McClamroch, N.H. Geometric tracking control of a quadrotor UAV on SE(3). In Proceedings of the 49th IEEE Conference on Decision and Control (CDC), Atlanta, GA, USA, 15–17 December 2010; IEEE: New York, NY, USA, 2010; pp. 5420–5425. [Google Scholar]
- Borase, R.P.; Maghade, D.K.; Sondkar, S.Y.; Bendre, M.R. A review of PID control, tuning methods and applications. Int. J. Dyn. Control 2021, 9, 818–827. [Google Scholar] [CrossRef]
- Hellerstein, J.L.; Diao, Y.; Parekh, S.; Tilbury, D.M. PID controllers. In Feedback Control of Computing Systems; IEEE: New York, NY, USA, 2004; pp. 293–335. [Google Scholar] [CrossRef]
- Amadi, C.A. Design and Implementation of Model Predictive Control on Pixhawk Flight Controller. Master’s Thesis, Department of Mechanical and Mechatronic Engineering, Stellenbosch University, Stellenbosch, South Africa, December 2018. Available online: https://www.researchgate.net/publication/329774661 (accessed on 28 March 2026).
- Biedenharn, L.C.; Louck, J.D.; Carruthers, P.A. Angular Momentum in Quantum Physics: Theory and Application; Cambridge University Press: Cambridge, UK, 1984; Available online: https://www.dji.com/tw/products/phantom-3 (accessed on 28 March 2026).
- Sui, Z.; Pu, Z.; Yi, J.; Wu, S. Formation control with collision avoidance through deep reinforcement learning using model-guided demonstration. IEEE Trans. Neural Netw. Learn. Syst. 2021, 32, 2358–2370. [Google Scholar] [CrossRef]
- He, L.; Zhang, J.; Hou, Y.; Liang, X.; Bai, P. Time-varying formation control for UAV swarm with directed interaction topology and communication delay. J. Beijing Univ. Aeronaut. Astronaut. 2020, 46, 314–323. [Google Scholar] [CrossRef]
- Ji, M.; Li, T.; Liao, J.; Yang, X. Dynamic event-triggered formation control for UAVs under communication delay and outside disturbances. Trans. Inst. Meas. Control 2023, 45, 1561–1572. [Google Scholar] [CrossRef]
- He, S.; Wang, M.; Dai, S.-L.; Luo, F. Leader-follower formation control of USVs with prescribed performance and collision avoidance. IEEE Trans. Ind. Inform. 2019, 15, 572–581. [Google Scholar] [CrossRef]
- Mellinger, D.; Kumar, V. Minimum snap trajectory generation and control for quadrotors. In Proceedings of the 2011 IEEE International Conference on Robotics and Automation, Shanghai, China, 9–13 May 2011; IEEE: New York, NY, USA, 2011; pp. 2520–2525. [Google Scholar] [CrossRef]
- Xu, T.; Liu, J.; Zhang, Z.; Chen, G.; Cui, D.; Li, H. Distributed MPC for trajectory tracking and formation control of multi-UAVs with leader-follower structure. IEEE Access 2023, 11, 128762–128773. [Google Scholar] [CrossRef]
- ArduPilot Dev Team. MAVLink RC Input. In ArduPilot Developer Documentation; ArduPilot Team: New York, NY, USA, 2025; Available online: https://ardupilot.org/dev/docs/mavlink-rcinput.html (accessed on 27 January 2026).
- Liu, H.; Ma, T.; Lewis, F.L.; Wan, Y. Robust formation trajectory tracking control for multiple quadrotors with communication delays. IEEE Trans. Control Syst. Technol. 2020, 28, 2633–2640. [Google Scholar] [CrossRef]
- Wang, B.; Ashrafiuon, H.; Nersesov, S. Leader–follower formation stabilization and tracking control for heterogeneous planar underactuated vehicle networks. Syst. Control Lett. 2021, 156, 105008. [Google Scholar] [CrossRef]
- Lin, P.-T. 3-UAV Leader-Follower Formation Control Experiment. Video Clip. Available online: https://youtu.be/Lkw3RAzS-Io?si=Shk48PQLNZEiFS97 (accessed on 28 March 2026).
- Walter, V.; Staub, N.; Franchi, A.; Saska, M. UVDAR system for visual relative localization with application to leader–follower formations of multirotor UAVs. IEEE Robot. Automat. Lett. 2019, 4, 2637–2644. [Google Scholar] [CrossRef]
- Gu, Z.; Song, B.; Fan, Y.; Chen, X. Design and verification of UAV formation controller based on leader-follower method. In Proceedings of the 7th International Conference on Automation, Control and Robotics Engineering (CACRE), Xi’an, China, 14–16 July 2022; IEEE: New York, NY, USA, 2022. [Google Scholar] [CrossRef]
















| Parameter | Lower | Hold | Upper | |
|---|---|---|---|---|
| Median | Dead Zone | |||
| Roll | 1100~1480 Roll Left | 1500 | 20 | 1520~1900 Roll Right |
| Pitch | 1100~1480 Forward | 1500 | 20 | 1520~1900 Backward |
| Throttle | 1100~1400 Downward | 1500 | 100 | 1600~1900 Upward |
| Yaw | 1100~1480 CCW * | 1500 | 20 | 1520~1900 CW * |
| Pitch Input | ||
|---|---|---|
| 0.625104 | 1.892197 | 1412 |
| 0.649005 | 1.884838 | 1412 |
| 0.647749 | 1.876625 | 1412 |
| 0.664954 | 1.872692 | 1412 |
| 0.705688 | 1.872692 | 1412 |
| 0.750713 | 1.858353 | 1412 |
| 0.807321 | 1.854006 | 1412 |
| 0.851602 | 1.845999 | 1412 |
| 0.892599 | 1.828891 | 1412 |
| 0.919797 | 1.838631 | 1412 |
| Parameter | Parameter to Acceleration | Parameter to Velocity |
|---|---|---|
| Roll | ||
| Pitch | ||
| Throttle | ||
| Yaw |
| Statistics of Position Errors (Unit: m) | Hexarotor | Quadrotor | |
|---|---|---|---|
| Position error without time delay compensation | MAE | 3.37 | 3.03 |
| RMSE | 4.35 | 4.16 | |
| 95% | 9.40 | 9.15 | |
| Spatial path fidelity error | MAE | 0.64 | 0.50 |
| RMSE | 0.75 | 0.65 | |
| 95% | 1.40 | 1.36 | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Lin, P.-T.; Wu, R.-B.; Chang, S.-C. Leader–Follower UAV Formation Control with Cost-Effective Coordination and Pre-Flight Simulation. Drones 2026, 10, 286. https://doi.org/10.3390/drones10040286
Lin P-T, Wu R-B, Chang S-C. Leader–Follower UAV Formation Control with Cost-Effective Coordination and Pre-Flight Simulation. Drones. 2026; 10(4):286. https://doi.org/10.3390/drones10040286
Chicago/Turabian StyleLin, Ping-Tse, Ruey-Beei Wu, and Shi-Chung Chang. 2026. "Leader–Follower UAV Formation Control with Cost-Effective Coordination and Pre-Flight Simulation" Drones 10, no. 4: 286. https://doi.org/10.3390/drones10040286
APA StyleLin, P.-T., Wu, R.-B., & Chang, S.-C. (2026). Leader–Follower UAV Formation Control with Cost-Effective Coordination and Pre-Flight Simulation. Drones, 10(4), 286. https://doi.org/10.3390/drones10040286

