This study presents a leader–follower flight control architecture for a small-scale UAV swarm, demonstrated using a three-UAV system built on heterogeneous autopilots, GPS positioning, Raspberry Pi 3B+ units, and Wi-Fi communication. The follower UAVs autonomously maintain predefined formations while tracking the leader’s trajectory. During flight, each Raspberry Pi establishes inter-UAV communication via a Wi-Fi network using the UDP protocol, enabling real-time data exchange and attitude adjustments. An outer-loop proportional–integral control design implemented on the Raspberry Pi generates corrective commands to the corresponding autopilot to reduce the followers’ position errors. Under the tested conditions, the framework achieves formation tracking with horizontal and vertical errors of approximately 60 and 20 cm, respectively, providing initial experimental validation in a small-scale setting. In addition, a simulation environment based on pre-recorded UAV and environmental data with 3D visualization is developed to support behavior prediction, performance evaluation, and control tuning prior to real-world deployment, although its applicability beyond the tested scenarios remains to be established.
Lin et al. (Tue,) studied this question.