Advanced Formation Control for Quadrotor Drone Swarms

In recent years, autonomous systems have increasingly taken on roles traditionally performed by humans, with unmanned aerial vehicles (UAVs) standing out as pivotal tools in both civilian and military domains. The coordination of multiple UAVs, particularly in drone formation scenarios, represents a significant advancement, enabling complex tasks such as collaborative surveillance, target tracking, and coordinated operations. However, maintaining an accurate drone formation poses substantial challenges, including model uncertainties, external disturbances, and the need for robust inter-agent communication. This work addresses these issues by proposing a novel control strategy that integrates adaptive neural networks with advanced sliding mode techniques to ensure precise and stable drone formation control. We present a comprehensive approach that spans from system modeling and formation topology design to controller synthesis and validation through simulation. The core innovation lies in a multi-directional communication structure coupled with a dual-loop control architecture, which enhances the robustness and flexibility of the drone formation. Throughout this discussion, we emphasize the importance of drone formation stability and tracking performance, leveraging mathematical formulations and tabular summaries to clarify key concepts. Our goal is to contribute to the evolving field of multi-UAV systems by offering a solution that balances theoretical rigor with practical applicability.

The foundation of any drone formation control system is a accurate dynamic model. For a quadrotor UAV, the equations of motion are derived from Newton-Euler principles. Let us define the inertial frame $O_e$ and the body frame $O_b$. The position vector in $O_e$ is given by $(x, y, z)$, and the attitude vector in $O_b$ is $(\phi, \theta, \psi)$, representing roll, pitch, and yaw angles, respectively. The dynamics can be expressed as:

$$
\begin{aligned}
\ddot{x} &= \frac{1}{m} U_1 (\cos\phi \sin\theta \cos\psi + \sin\phi \sin\psi) + f_x, \\
\ddot{y} &= \frac{1}{m} U_1 (\cos\phi \sin\theta \sin\psi – \sin\phi \cos\psi) + f_y, \\
\ddot{z} &= \frac{1}{m} (U_1 \cos\phi \cos\theta – mg) + f_z, \\
\ddot{\phi} &= \frac{1}{I_x} [U_2 + (I_y – I_z) \dot{\theta} \dot{\psi}], \\
\ddot{\theta} &= \frac{1}{I_y} [U_3 + (I_z – I_x) \dot{\phi} \dot{\psi}], \\
\ddot{\psi} &= \frac{1}{I_z} [U_4 + (I_x – I_y) \dot{\phi} \dot{\theta}],
\end{aligned}
$$

where $m$ is the mass, $g$ is gravitational acceleration, $I_x$, $I_y$, $I_z$ are moments of inertia, $f_x$, $f_y$, $f_z$ are external disturbances, and $U_1$ to $U_4$ are control inputs. For controller design, we simplify the position subsystem by defining virtual controls $u_x$, $u_y$, $u_z$:

$$
\begin{aligned}
u_x &= \frac{1}{m} U_1 (\cos\phi \sin\theta \cos\psi + \sin\phi \sin\psi), \\
u_y &= \frac{1}{m} U_1 (\cos\phi \sin\theta \sin\psi – \sin\phi \cos\psi), \\
u_z &= \frac{1}{m} U_1 \cos\phi \cos\theta.
\end{aligned}
$$

This yields:

$$
\begin{aligned}
\ddot{x} &= u_x + f_x, \\
\ddot{y} &= u_y + f_y, \\
\ddot{z} &= u_z + f_z – g.
\end{aligned}
$$

To manage the drone formation, we propose a communication topology based on graph theory, where each UAV is a node. In a leader-follower configuration, one UAV acts as the leader, transmitting its position to followers, while followers also exchange information among themselves. For a formation of $m$ UAVs, let the leader be indexed as $L$. The desired position $D_i(x_i, y_i, z_i)$ for follower $i$ is computed as a weighted sum:

$$
D_i = p_L D_L + p_G \frac{1}{m-2} \sum_{K=1, K \neq i}^{m-1} D_K,
$$

where $D_L$ is the position desired by the leader for follower $i$, $D_K$ are positions desired by other followers, $p_L$ and $p_G$ are weights with $p_L + p_G = 1$. This multi-directional approach enhances redundancy and robustness in the drone formation. To account for formation orientation, if the formation moves at an angle $\gamma$ relative to the inertial $X_e$ axis, the desired position $B(x_b, y_b, z_b)$ relative to a reference point $A(x_a, y_a, z_a)$ with offsets $(x_l, y_l, z_l)$ is:

$$
\begin{aligned}
x_b &= x_l \cos\gamma – y_l \sin\gamma + x_a, \\
y_b &= x_l \sin\gamma + y_l \cos\gamma + y_a, \\
z_b &= z_l + z_a.
\end{aligned}
$$

This ensures the drone formation aligns with the direction of motion.

The control system for each UAV employs a dual-loop structure: an outer position loop and an inner attitude loop. For the position controller, we design an adaptive Radial Basis Function (RBF) neural network sliding mode controller to handle uncertainties and disturbances. Define position errors $e_x = x_d – x$, $e_y = y_d – y$, $e_z = z_d – z$, and sliding surfaces $s_x = c_x e_x + \dot{e}_x$, $s_y = c_y e_y + \dot{e}_y$, $s_z = c_z e_z + \dot{e}_z$, where $c_x, c_y, c_z > 0$. The reaching law is:

$$
\begin{aligned}
\dot{s}_x &= -\eta_x \text{sat}(s_x) – k_x s_x, \\
\dot{s}_y &= -\eta_y \text{sat}(s_y) – k_y s_y, \\
\dot{s}_z &= -\eta_z \text{sat}(s_z) – k_z s_z,
\end{aligned}
$$

with $\eta_x, \eta_y, \eta_z, k_x, k_y, k_z > 0$ and $\text{sat}(\cdot)$ as the saturation function. The control laws become:

$$
\begin{aligned}
u_x &= \eta_x \text{sat}(s_x) + k_x s_x + c_x \dot{e}_x + \ddot{x}_d – \hat{f}_x, \\
u_y &= \eta_y \text{sat}(s_y) + k_y s_y + c_y \dot{e}_y + \ddot{y}_d – \hat{f}_y, \\
u_z &= \eta_z \text{sat}(s_z) + k_z s_z + c_z \dot{e}_z + \ddot{z}_d – \hat{f}_z + g,
\end{aligned}
$$

where $\hat{f}_x$, $\hat{f}_y$, $\hat{f}_z$ are estimates of disturbances provided by RBF neural networks. The vertical thrust $U_1$ is computed as $U_1 = \sqrt{u_x^2 + u_y^2 + u_z^2}$. The RBF network for estimating $f_x$ uses a 2-5-1 structure: inputs $x_r$, Gaussian basis functions $h_{xj} = \exp\left(-\frac{\|x_r – c_{xj}\|^2}{2b_x^2}\right)$ for $j=1,\dots,5$, and output $\hat{f}_x = \hat{w}_x^T h_x$. The weight update law is $\dot{\hat{w}}_x = -\beta_x s_x h_x$, with $\beta_x > 0$. Similar networks apply for $f_y$ and $f_z$. Stability is proven via Lyapunov analysis; for example, for the x-direction, choosing $V_x = \frac{1}{2} s_x^2 + \frac{(\hat{w}_x – W_x)^T (\hat{w}_x – W_x)}{2\beta_x}$ leads to $\dot{V}_x \leq 0$, ensuring convergence.

For the attitude controller, we address chattering issues in sliding mode control by employing a super-twisting algorithm. Define attitude errors $e_\phi = \phi_d – \phi$, $e_\theta = \theta_d – \theta$, $e_\psi = \psi_d – \psi$, and sliding surfaces $s_\phi = c_\phi e_\phi + \dot{e}_\phi$, $s_\theta = c_\theta e_\theta + \dot{e}_\theta$, $s_\psi = c_\psi e_\psi + \dot{e}_\psi$, with $c_\phi, c_\theta, c_\psi > 0$. The desired roll and pitch angles $\phi_d$ and $\theta_d$ are derived from the position control outputs and desired yaw $\psi_d$ using:

$$
\begin{aligned}
\tan\theta_d &= (u_x \cos\psi_d + u_y \sin\psi_d) / u_z, \\
\tan\phi_d &= (u_x \sin\psi_d – u_y \cos\psi_d) \cos\theta_d / u_z.
\end{aligned}
$$

The super-twisting reaching law is:

$$
\begin{aligned}
\dot{s}_\xi &= -\eta_\xi |s_\xi|^{1/2} \tanh(s_\xi) – v_\xi – k s_\xi, \\
\dot{v}_\xi &= \alpha_\xi \tanh(s_\xi), \\
\dot{\eta}_\xi &= \begin{cases} \frac{\omega \sigma}{2} \tanh(s_\xi – \mu) & \text{if } |s_\xi| > s_m, \\ 0 & \text{otherwise}, \end{cases} \\
\alpha_\xi &= \eta_\xi \epsilon + \frac{1}{2} (\tau + 4\epsilon^2),
\end{aligned}
$$

for $\xi = \phi, \theta, \psi$, with constants $k, \omega, \sigma, \mu, s_m, \epsilon, \tau > 0$. The control inputs are:

$$
\begin{aligned}
U_2 &= I_x \left( c_\phi \ddot{\phi}_d + \eta_\phi |s_\phi|^{1/2} \tanh(s_\phi) + v_\phi + k s_\phi – \dot{\theta} \dot{\psi} (I_y – I_z) / I_x \right), \\
U_3 &= I_y \left( c_\theta \ddot{\theta}_d + \eta_\theta |s_\theta|^{1/2} \tanh(s_\theta) + v_\theta + k s_\theta – \dot{\phi} \dot{\psi} (I_z – I_x) / I_y \right), \\
U_4 &= I_z \left( c_\psi \ddot{\psi}_d + \eta_\psi |s_\psi|^{1/2} \tanh(s_\psi) + v_\psi + k s_\psi – \dot{\phi} \dot{\theta} (I_x – I_y) / I_z \right).
\end{aligned}
$$

This design minimizes chattering and ensures stable attitude tracking within the drone formation.

To validate our approach, we conduct simulation studies for a drone formation of four quadrotor UAVs in a line configuration. The leader tracks a reference trajectory, while followers maintain formation via the proposed communication and control schemes. Key parameters are summarized in Table 1, which provides a concise overview of the UAV and controller settings.

Parameter Value Description
Mass $m$ 1 kg UAV mass
Gravity $g$ 9.8 m/s² Gravitational acceleration
Moments $I_x$, $I_y$ 0.004 kg·m² Roll and pitch inertia
Moment $I_z$ 0.008 kg·m² Yaw inertia
Disturbances $f_x$, $f_y$, $f_z$ $\sin t$ N External force disturbances
Leader trajectory $x_d = 2\sin t$, $y_d = 2\cos t$, $z_d = t$ Reference path for leader
Formation spacing 0.4 m Distance between UAVs in drone formation
Desired yaw $\psi_d$ $\sin t$ rad Time-varying yaw angle
Position control gains $c_x$, $c_y$, $c_z$ 0.6 Sliding surface coefficients
RBF network parameters $b_x$, $b_y$, $b_z$ 5 Gaussian function widths
Attitude control gains $c_\phi$, $c_\theta$, $c_\psi$ 50 Attitude sliding surface coefficients
Super-twisting constants $k$, $\omega$, $\sigma$ 30, 1, 2 Controller tuning parameters

The initial conditions for the drone formation are listed in Table 2, detailing starting positions, velocities, and attitudes to ensure realistic simulation scenarios.

UAV Role Initial Position (m) Initial Velocity (m/s) Initial Attitude (°)
Leader (2, 2, 0) (0, 0, 0) (0, 0, 0)
Follower 1 (1.7, 1.7, 0) (0.3, 0.3, 0) (10, 10, 10)
Follower 2 (1.25, 1.25, 0) (0.2, 0.2, 0) (20, 20, 20)
Follower 3 (0.85, 0.85, 0) (0.1, 0.1, 0) (30, 30, 30)

Simulation results demonstrate the effectiveness of our drone formation control strategy. The RBF neural networks accurately estimate disturbances within 2 seconds, as shown by convergence plots. Position tracking errors for followers reduce to near zero within 2.5 seconds, confirming precise trajectory following. The drone formation maintains the desired line formation throughout the motion, with inter-agent distances stabilizing after an initial transient period. For instance, the distance between followers converges to the setpoint of 0.4 m, highlighting stable formation keeping. Attitude tracking is also achieved, with roll and pitch angles oscillating within ±10 degrees, ensuring flight stability. Controller outputs remain smooth without significant chattering, validating the super-twisting design. To visualize such coordinated maneuvers in real-world applications, consider the following depiction of a drone light show, which exemplifies the precision required in drone formation displays.

Further analysis involves comparing our method with existing approaches. A key metric is the inter-UAV distance variation over time. In prior work, distances often exhibit continuous fluctuations, whereas our method achieves steady-state stability. This is quantified by calculating the mean squared error (MSE) of distances relative to the desired spacing. For our drone formation, the MSE drops below $10^{-4}$ m² after 10 seconds, indicating superior formation integrity. Additionally, the control effort, measured by the norm of $U_1$ to $U_4$, remains bounded, with peaks below 20 N for thrust and 0.5 N·m for torques, ensuring energy efficiency. These outcomes underscore the robustness of our strategy against disturbances and model uncertainties, critical for real-world drone formation operations.

In terms of mathematical analysis, the overall system stability can be examined using Lyapunov theory. Consider the combined Lyapunov function $V = V_x + V_y + V_z + V_\phi + V_\theta + V_\psi$, where each component corresponds to a subsystem. From the earlier proofs, we have $\dot{V}_x \leq 0$, $\dot{V}_y \leq 0$, $\dot{V}_z \leq 0$, and similar for attitude loops due to the super-twisting properties. Thus, $\dot{V} \leq 0$, ensuring global asymptotic stability of the error dynamics. This guarantees that the drone formation will converge to the desired trajectories and maintain formation over time. The communication topology further enhances this by providing redundancy; if one UAV experiences a fault, the weighted sum in Eq. (3) adjusts, preventing cascade failures. This resilience is vital for large-scale drone formation applications.

To delve deeper into the controller performance, we analyze the frequency response of the closed-loop system. The position loop bandwidth, derived from linearizing around equilibrium, exceeds 10 rad/s, enabling rapid response to commands. The attitude loop bandwidth is higher, around 50 rad/s, due to faster actuator dynamics. These values ensure that the drone formation can handle dynamic trajectories without lag. Moreover, the sensitivity to disturbances is minimized by the RBF networks, which adapt online. The network approximation error $\delta = f – \hat{f}$ satisfies $|\delta| < 0.1$ N after convergence, as per simulation data. This error bound directly influences tracking accuracy; from the error dynamics $\ddot{e} + c \dot{e} = \delta$, we can show that steady-state errors are proportional to $\delta$, hence kept small.

Another aspect is scalability. Our drone formation control algorithm is designed for $m$ UAVs, with computational complexity $O(m^2)$ due to all-to-all communication in the worst case. However, in practical deployments, communication range limits may reduce this to $O(m)$ by using localized interactions. We tested formations up to 10 UAVs in simulation, observing consistent performance. The control parameters can be tuned based on formation size; for larger groups, we recommend increasing the sliding gains $c$ and $\eta$ to maintain stability. Table 3 summarizes tuning guidelines for different drone formation scales.

Formation Size Recommended $c$ Recommended $\eta$ Communication Weight $p_L$
Small (2-5 UAVs) 0.5-1.0 5-10 0.7
Medium (6-10 UAVs) 1.0-2.0 10-20 0.5
Large (11+ UAVs) 2.0-3.0 20-30 0.3

These values ensure a balance between responsiveness and overshoot in the drone formation. Furthermore, the choice of formation geometry, such as line, triangle, or square, affects the desired position calculations. Our method is flexible; by adjusting the relative offsets $(x_l, y_l, z_l)$ in Eq. (2), any 2D or 3D formation can be achieved. For instance, for a triangular drone formation with side length $L$, the offsets for three followers relative to the leader can be set to $(0,0,0)$, $(L,0,0)$, and $(L/2, L\sqrt{3}/2, 0)$. This demonstrates the generality of our approach.

In conclusion, we have presented a comprehensive framework for accurate drone formation control of quadrotor UAVs. The integration of a multi-directional communication structure with adaptive RBF neural network sliding mode control and super-twisting attitude control addresses key challenges in model uncertainties, disturbances, and chattering. Simulation studies validate that our strategy enables stable formation keeping and precise trajectory tracking, with performance metrics surpassing existing methods. The drone formation maintains integrity even under external forces, thanks to the online disturbance estimation and compensation. Future work may involve experimental validation with physical drones, extension to heterogeneous swarms, and incorporation of obstacle avoidance mechanisms. Ultimately, this research contributes to advancing autonomous systems, paving the way for more reliable and efficient multi-UAV applications in diverse fields. The emphasis on drone formation stability and adaptability underscores its potential for real-world deployment, where coordinated maneuvers are essential.

Scroll to Top