In recent years, the study of multi-agent systems has gained significant traction, inspired by collective behaviors in nature such as bird flocks or fish schools. Among these, drone formation control has emerged as a critical area due to its applications in surveillance, exploration, and cooperative tasks. In this paper, we focus on the drone formation problem for quadrotor unmanned aerial vehicles (UAVs), leveraging terminal sliding mode control to achieve robust and finite-time convergence. Our work addresses the challenges of maintaining precise formations in dynamic environments, offering a novel controller design that ensures rapid error reduction and enhanced stability. We begin by introducing the mathematical model of quadrotor drones, then define the formation control objectives, and proceed to develop a terminal sliding mode-based controller. We provide a thorough stability analysis using Lyapunov theory and finite-time stability concepts, followed by extensive simulations to validate our approach. Throughout this article, we emphasize the importance of drone formation in modern systems, highlighting how our method improves upon existing techniques like linear sliding mode control. The integration of formulas, tables, and visual aids aims to elucidate complex concepts, making this research accessible and practical for engineers and researchers in the field.
The quadrotor drone model serves as the foundation for our drone formation control strategy. We consider a system of homogeneous quadrotor drones, each described by its dynamics in an inertial frame. The position coordinates for the i-th drone are denoted as $[x_i, y_i, z_i]^T$, with acceleration signals derived from the forces and orientations. The mathematical model is given by:
$$
\begin{bmatrix} \ddot{x}_i \\ \ddot{y}_i \\ \ddot{z}_i \end{bmatrix} = \begin{bmatrix} a_{xi} \\ a_{yi} \\ a_{zi} \end{bmatrix} = \begin{bmatrix} \frac{1}{m_i} (\cos\phi_i \sin\theta_i \cos\psi_i + \sin\phi_i \sin\psi_i) F_{Ti} \\ \frac{1}{m_i} (\cos\phi_i \sin\theta_i \sin\psi_i – \sin\phi_i \cos\psi_i) F_{Ti} \\ \frac{1}{m_i} (\cos\phi_i \cos\theta_i) F_{Ti} – g \end{bmatrix}
$$
where $m_i$ is the mass, $F_{Ti}$ is the total thrust, $[\phi_i, \theta_i, \psi_i]^T$ are the Euler angles, and $g$ is gravitational acceleration. For drone formation control, we assume a leader-follower structure with communication among followers, represented by a directed graph $\mathcal{G}_f = (\mathcal{V}, \mathcal{E})$. The set $\mathcal{V}$ includes one leader (indexed as $L$) and $N$ followers (indices $i=1,\dots,N$), with edges $\mathcal{E}$ defining inter-drone communications. The normalized Laplacian matrix $\Upsilon$ captures this topology, facilitating error definitions for formation control. The drone formation objective revolves around achieving desired relative positions among drones, which we formalize through generalized error states. For each follower drone $i$, the generalized error $e_i(t)$ is defined as:
$$
e_i(t) = l_i(t) – \frac{1}{|\Omega_i|} \sum_{j \in \Omega_i} (l_j(t) + E_{ij}(t)), \quad i=1,\dots,N
$$
where $l_i(t) = [x_i, y_i, z_i]^T$ is the position vector, $\Omega_i$ is the set of neighboring drones, and $E_{ij}(t) \in \mathbb{R}^3$ specifies the desired offset between drones $i$ and $j$ in the drone formation. The control goal is to drive all $e_i(t)$ to zero in finite time, ensuring the system attains the predefined drone formation pattern. This approach enhances robustness by incorporating neighbor interactions, crucial for scalable drone formation systems.
To achieve finite-time convergence in drone formation control, we design a terminal sliding mode controller. The terminal sliding surface for each follower drone $i$ is constructed as follows:
$$
s_i(e_i, \dot{e}_i) = \dot{e}_i + H_i D_i(e_i) e_i^{1/2}, \quad (e_i, \dot{e}_i) \in \mathbb{R}^3 \times \mathbb{R}^3
$$
where $H_i = \text{diag}\{h_{i1}, h_{i2}, h_{i3}\}$ with $h_{im} > 0$ for $m=1,2,3$, $D_i(e_i) = \text{diag}\{\text{sign}(e_{i1}), \text{sign}(e_{i2}), \text{sign}(e_{i3})\}$, and $e_i^{1/2} = [|e_{i1}|^{1/2}, |e_{i2}|^{1/2}, |e_{i3}|^{1/2}]^T$. The sliding manifold is $S_i(e_i, \dot{e}_i) = \{(e_i, \dot{e}_i): s_i(e_i, \dot{e}_i) = 0\}$. Based on an equivalent control law and reaching law, we derive the terminal sliding mode control input $u_i(t)$ for drone formation:
$$
u_i(t) =
\begin{cases}
\frac{1}{|\Omega_i|} \ddot{l}_L + \frac{1}{|\Omega_i|} \sum_{j \in \Omega_i} \ddot{E}_{ij}(t) – \frac{1}{2} H_i w_i(e_i, \dot{e}_i) – K_i \text{sign}(s_i(e_i, \dot{e}_i)), & L \in \Omega_i \\
\frac{1}{|\Omega_i|} \sum_{j \in \Omega_i} \ddot{E}_{ij}(t) – \frac{1}{2} H_i w_i(e_i, \dot{e}_i) – K_i \text{sign}(s_i(e_i, \dot{e}_i)), & L \notin \Omega_i
\end{cases}
$$
where $K_i = \text{diag}\{k_{i1}, k_{i2}, k_{i3}\}$ are control gains, $\text{sign}(\cdot)$ is the signum function, and $w_i(e_i, \dot{e}_i)$ is a bounded vector ensuring initial errors lie within a set $\sigma_i$. This controller drives the generalized errors to zero, enabling precise drone formation. The finite-time stability is proven using Lyapunov analysis. Consider the Lyapunov function $V_i(s_i) = \frac{1}{2} s_i^T s_i$. Its derivative along the system trajectories yields:
$$
\dot{V}_i(s_i) = s_i^T \dot{s}_i = s_i^T \left( \ddot{e}_i + \frac{1}{2} H_i w_i(e_i, \dot{e}_i) \right)
$$
Substituting the control law, we obtain $\dot{V}_i(s_i) = -s_i^T K_i \text{sign}(s_i) \leq -\min_{m} \{k_{im}\} \|s_i\|_1 \leq -2 \min_{m} \{k_{im}\} V_i^{1/2}(s_i)$. This inequality satisfies finite-time stability conditions, ensuring that $s_i$ reaches zero in finite time. Once on the sliding surface, the error dynamics reduce to $\dot{e}_i = -H_i D_i(e_i) e_i^{1/2}$, leading to another Lyapunov function $V_i(e_i) = \|e_i\|_1$ with $\dot{V}_i(e_i) \leq -\|H_i^{-1}\|_{\infty}^{-1} V_i^{1/2}(e_i)$. Thus, the generalized error $e_i$ converges to zero in finite time, achieving the desired drone formation. This proof underscores the efficacy of terminal sliding mode control in drone formation scenarios, offering faster convergence compared to linear methods.
To validate our drone formation controller, we conduct simulations with a system comprising one leader and three follower drones. The communication topology is represented by a directed graph, as summarized in Table 1, which details the adjacency and Laplacian matrices essential for error computation in drone formation.
| Drone Index | Neighbors | Normalized Laplacian Row |
|---|---|---|
| Leader (L) | None | [0, 0, 0, 0] |
| Follower 1 | L, 2 | [-0.5, 1, -0.5, 0] |
| Follower 2 | L, 1 | [-0.5, -0.5, 1, 0] |
| Follower 3 | 1, 2 | [0, -0.5, -0.5, 1] |
The initial positions for followers are set as: Follower 1 at $[0, 3.2, 2]^T$ m, Follower 2 at $[-1.6, 0, 2]^T$ m, and Follower 3 at $[1.6, 0, 2]^T$ m. The leader drone follows a trajectory given by $x(t) = 2\cos(t+\pi/3)$, $y(t) = 2\sin(t+\pi/3)$, and $z(t) = 0.5t + 3$ m. The desired drone formation offsets are defined as $E_{1L} = [0, 5, -1]^T$, $E_{12} = [5, 10, 1]^T$, $E_{2L} = [-5, -5, -2]^T$, $E_{21} = [-5, -10, -1]^T$, $E_{31} = [5, -10, -2]^T$, and $E_{32} = [10, 0, -1]^T$ m. Controller parameters are selected as $H_i = \text{diag}(3,3,3)$ and $K_i = \text{diag}(2,2,2)$ for $i=1,2,3$, with bounded set $\sigma_i$ defined by $\psi_i = 3.5$. These settings ensure stable drone formation control.
Simulation results demonstrate the effectiveness of our terminal sliding mode controller for drone formation. The three-dimensional motion plot shows followers maintaining a spiral ascending pattern around the leader, achieving the desired drone formation. For instance, the position coordinates over time reveal that all drones synchronize their movements, with errors converging rapidly. The generalized error states, plotted in Figure 1, converge to zero within approximately 4 seconds, confirming finite-time stability in drone formation. In contrast, a linear sliding mode controller, designed with $s_i^{\text{lin}}(e_i, \dot{e}_i) = \dot{e}_i + H_i e_i$, achieves error convergence in about 9 seconds, as shown in Table 2. This comparison highlights the superiority of terminal sliding mode control in drone formation applications, offering faster response and better performance.

| Controller Type | Convergence Time (s) | Steady-State Error | Robustness to Disturbances |
|---|---|---|---|
| Terminal Sliding Mode | ~4 | Negligible | High |
| Linear Sliding Mode | ~9 | Small | Moderate |
The error dynamics for drone formation can be further analyzed through key metrics. Let us define the overall formation error as $E_{\text{total}}(t) = \sum_{i=1}^N \|e_i(t)\|_2$. Under terminal sliding mode control, this error decays according to $\dot{E}_{\text{total}} \leq -\alpha E_{\text{total}}^{1/2}$, where $\alpha$ is a positive constant derived from controller gains. This relationship ensures finite-time convergence, critical for real-time drone formation tasks. Additionally, we evaluate control efforts using the integral of absolute control input, $J = \int_0^T \|u_i(t)\|_2 dt$, which remains bounded in our simulations, indicating energy efficiency in drone formation. The simulation parameters are summarized in Table 3, providing a comprehensive overview for reproducibility in drone formation studies.
| Parameter | Value | Description |
|---|---|---|
| Number of Drones | 4 (1 leader, 3 followers) | System size |
| Mass $m_i$ | 1 kg | Drone mass |
| Gravity $g$ | 9.81 m/s² | Gravitational constant |
| Sliding Gains $H_i$ | diag(3,3,3) | Terminal sliding parameters |
| Control Gains $K_i$ | diag(2,2,2) | Controller tuning |
| Simulation Time | 20 s | Duration |
Our drone formation controller’s stability is underpinned by rigorous mathematical analysis. The finite-time convergence proof leverages the concept of homogeneous systems. Consider the closed-loop error dynamics on the sliding surface: $\dot{e}_i = -H_i D_i(e_i) e_i^{1/2}$. This system is homogeneous of degree $\delta = -1/2$ with respect to the dilation $\lambda e_i$, ensuring finite-time attractivity. The Lyapunov function $V(e) = \sum_{i=1}^N \|e_i\|_1$ satisfies $\dot{V} \leq -\beta V^{1/2}$ for some $\beta > 0$, guaranteeing that the drone formation is achieved within time $T \leq 2V(0)^{1/2}/\beta$. This theoretical bound aligns with simulation results, where errors vanish in about 4 seconds. Moreover, the controller’s robustness to model uncertainties is enhanced by the sliding mode approach, making it suitable for practical drone formation deployments. For instance, if disturbances $\Delta_i(t)$ affect the dynamics, such that $\ddot{e}_i = u_i + \Delta_i$, the controller’s signum term compensates for bounded disturbances, preserving drone formation integrity.
The drone formation control problem can be extended to more complex scenarios, such as time-varying formations or obstacle avoidance. Our terminal sliding mode framework allows for incorporation of adaptive gains to handle uncertainties. For example, let $K_i(t)$ be adjusted online via $ \dot{K}_i = \Gamma_i \|s_i\|_1$, where $\Gamma_i$ is a positive definite matrix. This adaptation further improves drone formation performance in dynamic environments. Additionally, we can formulate the drone formation as a consensus problem, where each drone adjusts its position based on neighbor information. The generalized error $e_i(t)$ evolves according to:
$$
\ddot{e}_i = u_i – \frac{1}{|\Omega_i|} \sum_{j \in \Omega_i} \ddot{E}_{ij}(t) – d_i(t)
$$
where $d_i(t)$ represents external disturbances. Our controller ensures that $e_i(t) \to 0$ despite $d_i(t)$, provided $\|d_i(t)\|$ is bounded. This robustness is crucial for real-world drone formation applications, where wind gusts or sensor noises are common. To quantify performance, we define a formation accuracy metric $A = 1 – \frac{1}{T} \int_0^T \frac{E_{\text{total}}(t)}{E_{\text{max}}} dt$, where $E_{\text{max}}$ is the maximum allowable error. In our simulations, $A$ exceeds 0.99 for terminal sliding mode control, compared to 0.95 for linear sliding mode, underscoring its precision in drone formation.
In conclusion, we have presented a comprehensive approach to drone formation control using terminal sliding mode techniques. Our method ensures finite-time convergence of formation errors, enhancing the speed and reliability of multi-drone systems. The controller design, supported by Lyapunov stability proofs, offers robustness against uncertainties, making it ideal for practical drone formation tasks. Simulations validate our theoretical findings, showing superior performance over linear sliding mode control in terms of convergence time and accuracy. Future work will explore adaptive versions of this controller to handle time-varying formations and external disturbances more effectively, as well as experimental validation with physical drone platforms. The integration of advanced control strategies continues to push the boundaries of autonomous drone formation, enabling more complex and cooperative behaviors in diverse applications.
The mathematical formulations in this paper emphasize the importance of precise control in drone formation. For instance, the terminal sliding surface $s_i(e_i, \dot{e}_i)$ incorporates fractional powers to accelerate error reduction, a key advantage in drone formation. The control law $u_i(t)$ is derived to minimize chattering while maintaining robustness, critical for smooth drone formation maneuvers. Furthermore, the use of normalized Laplacian matrices in error definitions facilitates scalable drone formation control for large swarms. As drone technology advances, such control methodologies will play a pivotal role in enabling efficient and reliable drone formation for tasks ranging from environmental monitoring to disaster response. Our contributions provide a solid foundation for further research in this exciting field, promoting the development of intelligent and autonomous drone systems.
