Design of Drone Formation Keeping Controller Based on Improved Consensus Algorithm

In recent years, the field of multi-drone cooperative control has witnessed rapid advancements, with applications ranging from surveillance to aerial displays. Among various control strategies, consensus-based algorithms have gained prominence for enabling scalable and distributed drone formation control. However, traditional consensus protocols often suffer from issues such as large-gain convergence oscillations and inadequate performance during simultaneous translational and rotational motions. In this paper, I address these challenges by proposing an improved consensus algorithm that enhances formation keeping for drone formations. The core innovations include the introduction of a virtual leader, a newly defined norm to mitigate oscillations, and a maximum-distance feedback module to maintain formation integrity under complex maneuvers. Through extensive simulations, including semi-physical tests using Ardupilot and AirSim, I demonstrate the efficacy of the proposed approach in achieving robust drone formation control.

The motivation for this work stems from the growing demand for reliable drone formation systems in applications such as search and rescue, environmental monitoring, and light shows. Drone formation control requires precise coordination among multiple agents, often in dynamic environments. Consensus algorithms, which enable agents to reach agreement on shared states through local communication, offer a distributed solution. However, as I will show, existing methods can lead to instability when gains are high or when formations undergo combined motions. My contributions focus on refining these algorithms to ensure smooth and accurate drone formation keeping.

To begin, I establish the mathematical foundation for drone formation modeling. A quadrotor drone is treated as a six-degree-of-freedom rigid body, with dynamics described by Newton-Euler equations. The translational and rotational motions are governed by:

$$ \mathbf{f} = m \mathbf{a} $$
$$ \boldsymbol{\tau} = \mathbf{I} \dot{\boldsymbol{\upsilon}} + \boldsymbol{\upsilon} \times (\mathbf{I} \boldsymbol{\upsilon}) $$

where $\mathbf{f}$ is the total external force, $m$ is the mass, $\mathbf{a}$ is the acceleration, $\boldsymbol{\tau}$ is the total external torque, $\boldsymbol{\upsilon} = [p, q, r]^T$ is the angular velocity vector with $p$, $q$, and $r$ denoting roll, pitch, and yaw rates, respectively, and $\mathbf{I}$ is the inertia matrix. For a quadrotor, the nonlinear dynamics can be expanded to account for thrust, gravity, and aerodynamic drag. The acceleration limits are critical for ensuring feasible maneuvers in drone formation control. For instance, the vertical acceleration is bounded by:

$$ \ddot{z}_{\text{max}} = \frac{f_{t,\text{max}} – k_{\text{aer},z} |\dot{z}| z}{m} – g $$
$$ \ddot{z}_{\text{min}} = \frac{f_{t,\text{min}} – k_{\text{aer},z} |\dot{z}| z}{m} – g = \frac{-k_{\text{aer},z} |\dot{z}| z}{m} – g $$

Similarly, bounds for horizontal accelerations depend on pitch and roll angles. These constraints are essential for the reference controller design in drone formation keeping.

Next, I model the distributed communication network for drone formation. Using graph theory, I represent the network with $n$ drones as nodes. To enhance the consensus algorithm, I introduce a virtual leader node that provides reference state information without being a physical drone. The adjacency matrix $\mathbf{A}$ is extended to $\mathbf{A}_{\text{VL}} \in \mathbb{R}^{(n+1) \times (n+1)}$ to include connections between the virtual leader and other nodes. This setup allows for a unified reference frame centered on the virtual leader, simplifying the management of desired positions in drone formation control. The communication topology ensures that each drone exchanges information only with its neighbors, promoting scalability and redundancy.

The improved consensus algorithm comprises three interconnected modules: the consensus algorithm module, the maximum-distance feedback module, and the reference controller module. First, I redesign the consensus protocol by incorporating the virtual leader and a new norm. The traditional linear consensus algorithm is prone to oscillations when gains are large. To address this, I propose the following extended form:

$$ \dot{\boldsymbol{\xi}}_i = \sum_{j=1}^{n} a_{ij} \left\| \boldsymbol{\xi}_i – \boldsymbol{\xi}_j \right\|_{\text{new}} \left[ \dot{\boldsymbol{\xi}}_j – k_1 (\boldsymbol{\xi}_i – \boldsymbol{\xi}_j) \right] + \frac{1}{\eta_i} a_{i(n+1)} \left[ \dot{\boldsymbol{\xi}}^r_{\text{contr}} – k_2 (\boldsymbol{\xi}_i – \boldsymbol{\xi}^r_{\text{contr}}) \right] $$

where $\boldsymbol{\xi}_i$ is the state vector of drone $i$, $\boldsymbol{\xi}^r_{\text{contr}}$ is the corrected reference state from the controller, $a_{ij}$ are adjacency matrix elements, $k_1$ and $k_2$ are positive gains, $\eta_i$ is the sum of the $i$-th row of $\mathbf{A}_{\text{VL}}$ for weight normalization, and $\left\| \cdot \right\|_{\text{new}}$ is the newly defined norm:

$$ \left\| \boldsymbol{\xi}_i – \boldsymbol{\xi}_j \right\|_{\text{new}} = \frac{1}{k_0} \left[ \sqrt{k_0 \left\| \boldsymbol{\xi}_i – \boldsymbol{\xi}_j \right\| + b^2} – b \right] $$

with $k_0 \in (0,1)$ and $b$ as tuning parameters. This norm limits abrupt changes in distance-based control terms, reducing oscillations in drone formation convergence.

The second module focuses on maximum-distance feedback to handle simultaneous translational and rotational motions. In drone formation keeping, when the formation moves with both translation and rotation, drones at the edges may experience excessive accelerations beyond physical limits, leading to formation errors. I define a maximum-distance vector for each drone based on its position relative to the formation edges. For drone $i$, the vector is:

$$ \boldsymbol{\zeta}_i = \left[ \mathbf{d}_{\text{max},i}^T, \mathbf{d}_{\text{min},i}^T \right]^T \in \mathbb{R}^6 $$

where $\mathbf{d}_{\text{max},i}$ and $\mathbf{d}_{\text{min},i}$ are the maximum positive and negative distances along coordinate axes. Through consensus, these vectors converge to a global maximum-distance reference $\boldsymbol{\zeta}^r$, which is fed to the reference controller. This feedback mechanism allows the system to anticipate acceleration limits during complex drone formation maneuvers.

The reference controller module corrects the desired reference trajectory $\boldsymbol{\xi}^r$ to ensure that acceleration constraints are not violated. It uses a PD controller combined with a correction vector $\mathbf{c}_a$ derived from a quadratic programming solution. The controller output is:

$$ \ddot{\boldsymbol{\xi}}^r_{\text{contr}} = \ddot{\boldsymbol{\xi}}^r + k^r_d (\dot{\boldsymbol{\xi}}^r – \dot{\boldsymbol{\xi}}^r_{\text{contr}}) + k^r_p (\boldsymbol{\xi}^r – \boldsymbol{\xi}^r_{\text{contr}}) + \mathbf{c}_a $$

The correction vector $\mathbf{c}_a$ is computed by solving:

$$ \min_{\mathbf{c}_a} \frac{1}{2} \mathbf{c}_a^T \mathbf{H}_a \mathbf{c}_a \quad \text{subject to} \quad \mathbf{G}_a \mathbf{c}_a \leq \mathbf{h}_a $$

where $\mathbf{H}_a$ is a weighting matrix, and the constraints $\mathbf{G}_a \mathbf{c}_a \leq \mathbf{h}_a$ encode acceleration limits based on the maximum-distance feedback. This ensures that the corrected reference $\boldsymbol{\xi}^r_{\text{contr}}$ keeps accelerations within feasible bounds, thereby maintaining drone formation integrity during aggressive motions.

To validate the proposed algorithm, I conduct numerical simulations in MATLAB and semi-physical simulations using Ardupilot and AirSim. The numerical simulations compare the traditional consensus algorithm with the improved version in a four-drone formation arranged in a diamond shape. Key performance metrics include height, speed, and yaw angle responses. The results are summarized in Table 1, which highlights the reduction in overshoot and oscillation with the improved algorithm.

Table 1: Comparison of Consensus Algorithms for Drone Formation Control
Metric Traditional Consensus Improved Consensus
Height Overshoot Significant oscillations Minimal overshoot
Speed Convergence Slow, with 0.6 m/s overshoot Fast, stable at 2.5 m/s
Yaw Angle Stability Oscillatory response Smooth convergence
Formation Tracking Error Large during combined motions Negligible

Further simulations involve an eight-drone formation in a horizontal line configuration, undergoing simultaneous translation and rotation. The improved algorithm successfully maintains formation, whereas the traditional approach shows significant tracking errors. The acceleration profiles, particularly in the $z$-direction, demonstrate that the corrected reference trajectory stays within limits, as shown in Figure 1 (though no explicit reference is made to figures in text). This underscores the effectiveness of the maximum-distance feedback in drone formation keeping.

For semi-physical validation, I integrate the algorithm with Ardupilot flight control software and AirSim simulation platform. The setup includes eight drones performing formation keeping tasks, such as transitioning from a line to a diamond formation while following a swinging trajectory. The results indicate stable control with minimal low-frequency oscillations, attributable to environmental noise and hardware limitations. Parameters like roll, pitch, and yaw angles remain consistent across drones, confirming the practicality of the approach for real-world drone formation applications. Additionally, a larger-scale test with 13 drones transforming from an “M” to an “A” formation shows smooth transitions, highlighting the scalability of the distributed consensus framework.

The improved consensus algorithm offers several advantages for drone formation control. First, the virtual leader and new norm reduce convergence oscillations, enabling smoother state agreement. Second, the maximum-distance feedback and reference controller ensure that acceleration constraints are respected during complex maneuvers, preventing formation breakdown. Third, the distributed nature of the algorithm enhances robustness and scalability, making it suitable for large-scale drone formations. These contributions are critical for applications requiring high-precision coordination, such as aerial displays or collaborative mapping.

In conclusion, I have presented an enhanced consensus-based controller for drone formation keeping. The algorithm addresses key limitations of traditional methods by incorporating a virtual leader, a novel norm, and a maximum-distance feedback mechanism. Extensive simulations, including semi-physical tests, validate its performance in maintaining formation under challenging conditions. Future work may explore adaptive gain tuning or integration with obstacle avoidance strategies to further improve drone formation autonomy. Overall, this research advances the state-of-the-art in distributed drone formation control, paving the way for more reliable and efficient multi-drone systems.

The mathematical formulations and simulation results collectively demonstrate that the proposed approach significantly improves drone formation keeping. By leveraging consensus principles with practical constraints, it offers a viable solution for real-world deployments. As drone technologies continue to evolve, such algorithms will play a pivotal role in enabling complex cooperative behaviors, ultimately expanding the horizons of autonomous aerial systems.

Scroll to Top