In modern warfare and civilian applications, the coordination of unmanned aerial vehicles (UAVs) in formations is critical for tasks such as surveillance, delivery, and collaborative missions. However, drone formation flying often faces challenges from environmental disturbances like wind and physical limitations such as actuator saturation. These factors can degrade formation stability and tracking accuracy, potentially leading to mission failure. In this paper, we address the problem of drone formation control under both wind interference and input constraints. We propose distributed consensus-based control laws that enable a group of fixed-wing UAVs to maintain a desired formation while tracking a reference trajectory, even in the presence of constant or random wind disturbances and bounded control inputs. Our approach leverages a virtual leader framework and incorporates smooth constraint functions to handle asymmetric input limits, ensuring that the drone formation remains robust and efficient. Through extensive simulations, we demonstrate that our methods outperform traditional algorithms in terms of convergence speed and precision, making them suitable for real-world drone formation operations.
Drone formation control has evolved significantly, with distributed strategies gaining popularity due to their scalability and reduced communication overhead. However, integrating wind disturbance rejection and input constraint management into these strategies remains underexplored. Wind can cause positional deviations in drone formation, while actuator saturation can limit control authority, leading to instability. To tackle these issues, we first establish a kinematic model for fixed-wing UAVs in wind fields. The model considers the effects of wind acceleration on drone dynamics, allowing us to design control laws that compensate for these disturbances. For constant wind, we derive a consensus-based control law using state feedback, enhanced with a constraint function that handles non-symmetric input bounds. For random wind, we develop a robust sliding mode control law that ensures rapid error convergence despite uncertainties. Both approaches are validated through simulations, showing superior performance in maintaining drone formation integrity under adverse conditions.

The mathematical foundation for our drone formation control starts with the three-degree-of-freedom point-mass model for small fixed-wing UAVs. Let $r_i = (x_i, y_i, z_i)^T$ denote the position, $v_i = (v_{xi}, v_{yi}, v_{zi})^T$ the velocity, and $u_i = (u_{xi}, u_{yi}, u_{zi})^T$ the acceleration control input of the $i$-th UAV. The wind acceleration is represented by $\dot{w}_i = (\dot{w}_{xi}, \dot{w}_{yi}, \dot{w}_{zi})^T$. The dynamics of the $i$-th UAV in a wind field are given by:
$$ \begin{cases} \dot{r}_i = v_i \\ \dot{v}_i = u_i + \dot{w}_i \end{cases} $$
In a constant wind field, $\dot{w}_i = 0$, simplifying the model to $\dot{v}_i = u_i$. For the drone formation, we introduce a virtual leader with position $r_0$, velocity $v_0 = \dot{r}_0$, and acceleration $u_0 = \ddot{r}_0$, serving as a reference for the desired trajectory. The formation error for the $i$-th UAV is defined relative to its expected position offset $\delta_i$ from the virtual leader: $\tilde{r}_i = r_i – \delta_i – r_0$. The consensus errors for position and velocity are then computed based on the communication topology among drones, typically represented by an adjacency matrix. This setup forms the basis for designing distributed control laws that ensure the drone formation converges to the desired configuration.
To manage input constraints, we employ a smooth constraint function that can handle asymmetric upper and lower bounds. Traditional functions like hyperbolic tangent have limitations in adjusting constraint ranges while maintaining slope consistency. Our chosen function, denoted as $g(x)$, is defined for an input signal $x$ with bounds $x_{\text{max}}$ and $x_{\text{min}}$:
$$ g(x) = \begin{cases} x, & |x_m| < x_q – \frac{1}{4\varepsilon} \\ x_p + \text{sign}(x_m) \cdot \left[ x_q – \varepsilon \left( x – \text{sign}(x_m) \cdot \left( x_q + \frac{1}{4\varepsilon} \right) – x_p \right)^2 \right], & x_q – \frac{1}{4\varepsilon} \leq |x_m| \leq x_q + \frac{1}{4\varepsilon} \\ x_p + \text{sign}(x_m) \cdot x_q, & |x_m| > x_q + \frac{1}{4\varepsilon} \end{cases} $$
where $x_p = (x_{\text{max}} + x_{\text{min}})/2$, $x_q = (x_{\text{max}} – x_{\text{min}})/2$, $x_m = x – x_p$, and $\varepsilon$ is a positive parameter controlling error precision. This function ensures that control inputs remain within specified limits while allowing for smooth transitions, which is crucial for stable drone formation control. The overall constrained input is given by $\text{sat}(x) = g(x) + \rho(x)$, where $\rho(x)$ is a conversion error bounded by $|\rho| \leq \frac{1}{4\varepsilon} = \bar{\rho}$.
For constant wind disturbance, we design a consensus control law that incorporates this constraint function. Let $e_{ri} = \frac{1}{d_i} \sum_{j=0}^n a_{ij} (\tilde{r}_i – \tilde{r}_j)$ be the position error and $e_{vi} = \dot{e}_{ri}$ the velocity error for the $i$-th UAV, where $d_i$ is the in-degree and $a_{ij}$ are adjacency matrix elements. The acceleration error is $e_{ui} = \dot{e}_{vi}$. Using state feedback with gains $K_r = c_r I_n$ and $K_v = c_v I_n$ (where $I_n$ is the identity matrix), we aim for $e_{ui} = -K_r g(e_{ri}) – K_v g(e_{vi})$. This leads to the control law:
$$ u_i = g_o \left( \frac{1}{d_i} g_u \left( \sum_{j=0}^n a_{ij} u_j \right) – \frac{1}{d_i} K_r g_r \left( \sum_{j=0}^n a_{ij} (\tilde{r}_i – \tilde{r}_j) \right) – \frac{1}{d_i} K_v g_v \left( \sum_{j=0}^n a_{ij} (v_i – v_j) \right) \right) $$
Here, $g_o$, $g_u$, $g_r$, and $g_v$ are instances of the constraint function applied to different inputs to ensure overall boundedness. We prove stability using Lyapunov analysis, showing that the position error converges to zero globally, thus maintaining the drone formation. This approach effectively handles constant wind by embedding compensation within the consensus framework, making the drone formation robust to steady environmental disturbances.
In scenarios with random wind disturbances, where wind acceleration is unknown but bounded, we enhance the control law with a sliding mode strategy for robustness. Define the sliding surface as $s_i = c e_{ri} + \dot{e}_{ri}$, where $c > 0$ is a constant. The derivative is $\dot{s}_i = \frac{c}{d_i} \sum_{j=0}^n a_{ij} (v_i – v_j) + \frac{1}{d_i} \sum_{j=0}^n a_{ij} (u_i + \dot{w}_i – u_j – \dot{w}_j)$. Using an exponential reaching law $\dot{s}_i = -\varepsilon \text{sgn}(s_i) – k s_i$ with $\varepsilon > 0$ and $k > 0$, we derive the control law:
$$ u_i = \frac{1}{d_i} \sum_{j=0}^n a_{ij} u_j – \frac{c}{d_i} \sum_{j=0}^n a_{ij} (v_i – v_j) – \varepsilon \text{sgn}(s_i) – k s_i – \dot{w}_i^c $$
where $\dot{w}_i^c = \frac{\dot{w}_{i,\text{max}} + \dot{w}_{i,\text{min}}}{2} – \frac{\dot{w}_{i,\text{max}} – \dot{w}_{i,\text{min}}}{2} \text{sgn}(s_i)$ is an estimate based on known bounds of wind acceleration. To incorporate input constraints, we modify this as:
$$ u_i = g_o \left( \frac{1}{d_i} g_u \left( \sum_{j=0}^n a_{ij} u_j \right) – \frac{c}{d_i} g_v \left( \sum_{j=0}^n a_{ij} (v_i – v_j) \right) – \varepsilon \text{sgn}(s_i) – k s_i – \dot{w}_i^c \right) $$
We again use Lyapunov theory to prove convergence, ensuring that the sliding surface reaches zero despite wind uncertainties, thus stabilizing the drone formation. This robust control law enables the drone formation to adapt to unpredictable wind conditions while respecting actuator limits, which is essential for safe and reliable operations in dynamic environments.
To validate our proposed control laws, we conduct simulations for a drone formation consisting of a virtual leader and four follower UAVs. The communication topology is represented by a directed graph, and we compare our methods with traditional consensus algorithms under both constant and random wind disturbances. The simulation parameters are summarized in the following tables, which highlight the initial conditions, desired formation offsets, and wind settings.
| UAV ID | x (m) | y (m) | z (m) | v_x (m/s) | v_y (m/s) | v_z (m/s) |
|---|---|---|---|---|---|---|
| 1 | 0 | 40 | 30 | 21 | 15 | 9 |
| 2 | 100 | 80 | 26 | 16 | 14 | 10 |
| 3 | 80 | -30 | 58 | 19 | 20 | 7 |
| 4 | 20 | 10 | 65 | 25 | 17 | 12 |
| UAV ID | δ_x (m) | δ_y (m) | δ_z (m) |
|---|---|---|---|
| 1 | -20 | 0 | -10 |
| 2 | 20 | 20 | -10 |
| 3 | 20 | -20 | -10 |
| 4 | 0 | 0 | 10 |
The virtual leader follows a trajectory defined by piecewise functions: for $0 < t \leq 30$ s, $x_0 = 40 + 18t$, $y_0 = 30$, $z_0 = 35 + 13t$; for $t \geq 30$ s, $x_0 = 20 + 20 \cos(\pi t/5) + 18t$, $y_0 = 30 + 5 \sin(\pi t/5) + 18t$, $z_0 = 35 + 13t$. This complex path tests the drone formation’s ability to track under varying conditions. For constant wind, we set $\dot{w}_i = (2, 2, 1)^T$ m/s². For random wind, we use $\dot{w}_x = 0.5 \sin(t) + 0.5 \sin(2t) + E_{wx}$, $\dot{w}_y = 0.5 \sin(t) + 0.5 \sin(2t) + E_{wy}$, $\dot{w}_z = E_{wz}$, where $E_{wx}, E_{wy}, E_{wz} \sim \mathcal{N}(0, 0.1^2)$. Input constraints are set as $u_{\text{max}} = 30$ m/s² and $u_{\text{min}} = -20$ m/s² for acceleration, with similar bounds for intermediate signals.
In the constant wind case, we compare our constrained control law with a traditional consensus algorithm without constraints and with constraints applied. The performance metrics include convergence time and steady-state error. Our method achieves full convergence in approximately 23 seconds, whereas the traditional algorithm with constraints fails to converge within 30 seconds. The position error for our drone formation reduces to 0.04 m at 40 seconds, compared to 1 m for the constrained traditional algorithm. Control inputs remain within bounds and exhibit smoother profiles, as shown in simulation plots. This demonstrates the effectiveness of our constraint function in managing actuator limits while maintaining precise drone formation control.
For random wind, we compare our robust sliding mode control law with an existing robust consensus algorithm. Our approach converges the position error to 0.1 m within 13 seconds, while the traditional method with constraints takes 25 seconds to reach 0.4 m error. Even under wind gusts, our control law ensures that the drone formation adheres to the desired trajectory with minimal deviation. The sliding mode action provides rapid error correction, and the input constraints prevent saturation, enhancing the overall stability of the drone formation. The following table summarizes the simulation results for both scenarios, emphasizing the advantages of our proposed methods in drone formation applications.
| Control Method | Wind Type | Convergence Time (s) | Steady-State Error (m) | Input Constraint Satisfaction |
|---|---|---|---|---|
| Traditional (Unconstrained) | Constant | 15 | 0.02 | No |
| Traditional (Constrained) | Constant | >30 | 1.00 | Yes |
| Our Method (Constrained) | Constant | 23 | 0.04 | Yes |
| Traditional (Unconstrained) | Random | 10 | 0.15 | No |
| Traditional (Constrained) | Random | 25 | 0.40 | Yes |
| Our Method (Constrained) | Random | 13 | 0.10 | Yes |
The superiority of our control laws stems from the integration of consensus theory with advanced constraint handling and robust techniques. The constraint function $g(x)$ allows for flexible adjustment of bounds while maintaining control smoothness, which is vital for actuator longevity in drone formation flying. In the constant wind case, the state feedback law explicitly compensates for disturbances through error minimization. For random wind, the sliding mode control law leverages known bounds to reject uncertainties, ensuring that the drone formation remains cohesive even in turbulent conditions. These methods are scalable to larger drone formations, as the distributed nature reduces computational load and communication requirements, aligning with modern trends in multi-agent systems.
Furthermore, we validate the necessity of each constraint function component by testing variants of the control law. Removing $g_u$, $g_r$, and $g_v$ results in control inputs that approach saturation limits, while removing $g_o$ causes inputs to exceed bounds entirely. This underscores the importance of applying constraints at multiple stages to guarantee boundedness and smoothness in drone formation control. The mathematical derivations are supported by Lyapunov stability proofs, ensuring global convergence of errors. For instance, in the constant wind case, we define a Lyapunov function $V_1 = \mathbf{1}_n^T K_r G(e_{ri}) + \frac{1}{2} e_{vi}^T e_{vi}$, where $G(\cdot)$ is the primitive of $g(\cdot)$. Its derivative yields $\dot{V}_1 = -e_{vi}^T K_v g(e_{vi}) \leq 0$, confirming stability. Similarly, for random wind, we use $V = \frac{1}{2} s_i^T s_i$ to show that $\dot{V} \leq 0$ under the proposed control law.
In practice, implementing these control laws requires onboard sensors to measure relative positions and velocities within the drone formation, as well as wind estimation modules. However, our methods minimize dependence on precise wind models by using robust estimates, making them feasible for real-world applications. The simulation results illustrate that the drone formation can maintain tight spacing and accurate trajectory tracking even under adverse conditions, which is crucial for missions in cluttered or windy environments. Future work could extend these approaches to heterogeneous drone formations or incorporate adaptive gains to further improve performance.
In conclusion, we have presented comprehensive solutions for drone formation control under wind interference and input constraints. Our consistent formation control strategies leverage distributed consensus, smooth constraint functions, and robust sliding mode techniques to ensure stable and precise operation. The simulations demonstrate significant improvements over traditional methods, with faster convergence and higher accuracy, validating the effectiveness of our approaches. As drone formation technology advances, integrating such control laws will enhance the reliability and autonomy of UAV swarms in diverse scenarios, from military operations to civilian logistics. We believe that this research contributes to the growing body of knowledge on multi-agent systems and paves the way for more resilient drone formation applications in the future.
