Introduction

Unmanned aerial vehicles (UAVs) have drawn significant attention in recent decades, for their numerous applications, such as delivery services1, pesticide spraying2, forest fire monitoring3, border patrol4, and geological exploration5. In recent years, quadrotor UAVs have gained significant attention due to their lightweight, compact size, simple structure, and agile control capabilities. However, the individual capabilities of a single UAV are limited, making it unable to handle increasingly complex and diverse tasks. Consequently, the design of UAV formation systems for complementary capabilities and coordinated operations has become an urgent demand. The objective of UAV formation is to explore collaborative control strategies that enable the quadrotor UAV cluster to fly along specified trajectories and form predetermined formations within a certain timeframe through inter-vehicle communication within the system6.

Currently, there are several methods for UAV formation, including leader-follower7, behavior-based8, artificial potential field method9, and virtual structure approaches10. However, there are some shortcomings in the aforementioned results11,12. In recent years, graph theory-based methods have emerged as effective control strategies, where the information of the virtual leader UAV only influences its adjacent quadrotor UAVs. The general formation control system structures are mainly classified into three categories: centralized control13, decentralized control14, and distributed control15. Centralized control relies heavily on the leader, while decentralized control struggles to achieve global optimal control. Distributed control, on the other hand, aims to devise distributed algorithms to reach cooperative control for quadrotor UAVs through local interaction information. This approach requires lower communication bandwidth and has advantages such as high robustness and adaptability. Distributed control is primarily implemented through two frameworks. The first framework is based on local synchronization errors, which define local position and velocity synchronization errors using the state information of neighboring UAVs16. The other framework is based on distributed observers17, in which a state observer is designed to approximate the state of the virtual leader. In the process of controller design of multi-agent formation, to ensure that the system can quickly reach formation and accurately track according to the given trajectory, adaptive control18, sliding mode control19, and backstep method20 are often used to design the controller. When using the sliding mode control method to design the controller, the system can converge to the equilibrium point along the sliding mode surface through reasonable design, to achieve a good control effect. However, how to make the sliding mode surface reach the equilibrium point rapidly plays a critical role in the control performance of quadrotors.

Recently, the finite-time control method has emerged, aimed at improving convergence speed21,22. This method establishes an upper bound on the time required to stabilize the system based on its initial state values, and has been widely applied in quadrotor systems23,24. For example, in25, a novel fixed-time adaptive sliding mode control strategy is developed for saturated quadrotor attitude systems, achieving initial-condition-independent convergence within a prescribed time. In26, a novel safety control strategy employing fixed-time observers is developed for quadrotor UAVs operating under multiple actuator faults and unknown disturbances. The synergistic combination of a fixed-time sliding mode observer and integral sliding mode controller demonstrates remarkable robustness enhancement against complex fault conditions. In27, a novel fixed-time disturbance observer-based control framework is developed for quadrotor UAVs operating under multiple uncertainties and external disturbances, featuring rapid disturbance rejection and fault compensation capabilities with guaranteed fixed-time stability. Although the effectiveness of finite-time control strategies has been thoroughly validated in single quadrotor systems, their efficacy in distributed cooperative control of multiple quadrotors remains an open research question that has attracted growing attention from scholars.

To address this issue, several recent studies have focused on extending finite-time control strategies to multi-UAV cooperative scenarios. In28, a distributed leader-follower formation control scheme was proposed for multiple quadrotors to achieve finite-time formation control. In29, the finite-time cooperative control challenge for disturbance-affected quadrotor formations was effectively resolved through the development of a novel finite-time observer and corresponding robust cooperative controller based on the designed state observer. In30, the authors proposed a practical finite-time cooperative control scheme for UAV formations, introducing an event-triggered finite-time disturbance observer for effective disturbance rejection. Additionally, in31, an adaptive finite-time neural control scheme was achieved for constrained nonlinear systems via an innovatively designed barrier Lyapunov function. Note that the finite-time control approach enhances convergence rates, however, the settling time hinges on initial values.

To handle this issue, the fixed-time control method has been devised32,33, ensuring the convergence time is unaffected by initial conditions, depending solely on design parameters. For instance, in34, a singularity-free distributed formation tracking control scheme was developed, guaranteeing bounded formation errors with fixed-time convergence. In35, a novel distributed fixed-time cooperative control framework was introduced, employing an innovative non-singular terminal sliding surface design. In36, a novel distributed collaboration fixed-time control protoco was proposed to stabilize the geometric spatial shape of multiple quadrotors, where uniform stabilization within a fixed time can be ensured. Furthermore, the chattering issue in conventional linear sliding mode control is notably reduced.

This study further explores distributed fixed-time cooperative control for multiple quadrotor UAVs utilizing local communications, building upon the preceding discussion. The contributions are as follows.

  1. 1.

    Unlike the finite-time convergence control methodologies presented in28,29,30, this study delves into the design of a novel distributed fixed-time observer, empowering it to precisely estimate the virtual leader’s position and velocity information within a fixed time horizon.

  2. 2.

    Compared to the literature29,30, leveraging the recovered state information, a tailored fuzzy adaptive nonsingular terminal sliding mode controller is devised for each quadrotor UAV. This controller guarantees the achievement of local position tracking within a fixed time period, enhancing the swarm’s cooperative tracking capabilities. The convergence time does not depend on the initial value, but only on the design parameters

  3. 3.

    Different from33,42, an efficient indirect fuzzy identification mechanism is adopted, which incorporates a fuzzy logic system to estimate the upper bound of the lumped uncertainty. This approach simplifies the identification process by requiring only a single adaptive parameter for each estimation, thereby reducing computational overhead.

The rest of this paper is organized as follows: Sect. "Preliminaries" introduces the proposal of the problem, graph theory and supporting lemmas, while Sect. "Main results" designs a novel distributed fixed-time observer and a tailored fuzzy adaptive nonsingular terminal sliding mode controller for each quadrotor UAV. After that, simulation results are given in Sect. "Simulation results", and conclusions are finally drawn in Sect. "Conclusion".

Preliminaries

Notations

\({\mathbb{R}}^{n}\) and \({\mathbb{R}}^{m \times n}\) denote a \(n \times 1\) vector and a \(m \times n\) matrix, In and 0n denote an identify \(n \times n\) matrix and a \(n \times 1\) vector with all elements 0, the 1-norm and the 2-norm of a vector are denoted by \(\left\| \cdot \right\|_{1}\) and \(\left\| \cdot \right\|\). \(\otimes\) represents the Kronecker product, and \(\lambda_{\min } (C)\) represents the smallest eigenvalue of matrix C. For \(\varsigma \in {\mathbb{R}}^{n}\) and \(p > 0\), \({\text{sig}}^{p} ( \cdot )\) and \({\text{sgn}} ( \cdot )\) are denoted by \({\text{sig}}^{p} (\varsigma ) = \left[ {|\varsigma_{1} |^{p} {\text{sgn}} (\varsigma_{1} ), \ldots ,|\varsigma_{n} |^{p} {\text{sgn}} (\varsigma_{n} )} \right]^{T}\) and \({\text{sgn}} (\varsigma ) = \left[ {{\text{sgn}} (\varsigma_{1} ), \ldots ,{\text{sgn}} (\varsigma_{n} )} \right]^{T}.\)

Problem statement

The quadrotor UAV cluster, comprising a virtual pilot and multiple quadrotor UAVs, is represented as

Figure 1 illustrates the configuration of the quadrotor UAV, consisting of a rigid body structure with four rotors arranged in a cross shape. This setup denotes a typically encountered underactuated system, characterized by six degrees of freedom and four control inputs. The dynamics governing its position and attitude are expressed as follows

Fig. 1
figure 1

Quadrotor UAV.

Position dynamics:

$$\left\{ {\begin{array}{*{20}c} {\mathop P\limits^{.}_{i} = V_{i} } \\ {\mathop V\limits^{.}_{i} = - ge_{3} + \frac{1}{{m_{i} }}R_{i} \left( {V\Theta_{i} } \right)u_{T,i} e_{3} + d_{p,i} } \\ \end{array} } \right.$$
(1)

Attitude dynamics:

$$\left\{ {\begin{array}{*{20}c} {\mathop \Theta \limits^{.}_{i} = \Pi_{i} \left( {\Theta_{i} } \right)\Omega_{i} } \\ {\mathop \Omega \limits^{.}_{i} = - J_{i}^{ - 1} \Omega_{i} \times J_{i} \Omega_{i} + J_{i}^{ - 1} G_{a,i} + J_{i}^{ - 1} \tau_{i} + d_{a,i} } \\ \end{array} } \right.$$
(2)

where \(i = 1, \cdots ,N\), \(P_{i} = \left( {P_{x,i} ,P_{y,i} ,P_{z,i} } \right) \in {\mathbb{R}}^{3}\) and \(V = \left( {V_{x,i} ,V_{x,i} ,V_{x,i} } \right)^{T} \in {\mathbb{R}}^{3}\) represent the position and velocity of the mass center, while \(\Theta_{i} = \left( {\phi_{i} ,\theta_{i} ,\psi_{i} } \right)^{T} \in {\mathbb{R}}^{3}\) and \({{\varvec{\Omega}}}_{i} = \left( {p_{i} ,q_{i} ,r_{i} } \right)^{T} \in {\mathbb{R}}^{3}\) denote the Euler angles and angular velocity. \({\varvec{J}}_{i} = diag\left\{ {J_{x,i} ,J_{y,i} ,J_{z,i} } \right\} \in {\mathbb{R}}^{3 \times 3}\) stands for the inertia matrix, and \({\varvec{G}}_{a,i} = \sum\limits_{l = 1}^{4} {{\varvec{J}}_{r,i} } \left( {{{\varvec{\Omega}}}_{i} \times {\varvec{e}}_{3} } \right)( - 1)^{l + 1} \omega_{l,i}\) signifies the torque produced by the motor rotation. \({\varvec{d}}_{p,i}\) and \({\varvec{d}}_{a,i}\) represent the external disturbances, while \(m_{i}\) and g denote the total mass and gravitational acceleration. \({\varvec{e}}_{3} = (0,0,1)^{T}\) indicates the unit vector along the vertical direction. \({\varvec{u}}_{T,i}\) and \(\tau_{i}\) symbolize the lifting force and rotating torque, i.e.,

$${\varvec{u}}_{T,i} = \sum\limits_{l = 1}^{4} {f_{l,i} } = \kappa_{i} \sum\limits_{l = 1}^{4} {\omega_{l,i}^{2} }$$
$${{\varvec{\uptau}}}_{i} = \left( {\begin{array}{*{20}l} {\tau_{\phi ,i} } \hfill \\ {\tau_{\theta ,i} } \hfill \\ {\tau_{\psi ,i} } \hfill \\ \end{array} } \right) = \left( {\begin{array}{*{20}l} {\kappa_{i} L_{i} \left( { - \omega_{2,i}^{2} + \omega_{4,i}^{2} } \right)} \hfill \\ {\kappa_{i} L_{i} \left( { - \omega_{1,i}^{2} + \omega_{3,i}^{2} } \right)} \hfill \\ {k_{i} \left( { - \omega_{1,i}^{2} + \omega_{2,i}^{2} - \omega_{3,i}^{2} + \omega_{4,i}^{2} } \right)} \hfill \\ \end{array} } \right)$$

where \(f_{1,i}\) and \(\omega_{l,i}\) denote the lift force and speed of each rotor. \(L_{i}\) signifies the distance separating the motor from the mass center. \(\kappa_{i}\) and \(k_{i}\) are aerodynamic coefficients, respectively. \({\mathbf{R}}_{i} \left( {{{\varvec{\Theta}}}_{i} } \right)\) and \(\Pi_{i} \left( {{{\varvec{\Theta}}}_{i} } \right)\) represent the rotation matrix and attitude motion matrix, i.e.,

$${\mathbf{R}}_{i} \left( {{{\varvec{\Theta}}}_{i} } \right) = \left( {\begin{array}{*{20}c} {\cos \theta_{i} \cos \psi_{i} } & {\sin \theta_{i} \sin \phi_{i} \cos \psi_{i} - \cos \phi_{i} \sin \psi_{i} } & {\cos \phi_{i} \sin \theta_{i} \cos \psi_{i} + \sin \phi_{i} \sin \psi_{i} } \\ {\cos \theta_{i} \sin \psi_{i} } & {\sin \phi_{i} \sin \theta_{i} \sin \psi_{i} + \cos \phi_{i} \cos \psi_{i} } & {\cos \phi_{i} \sin \theta_{i} \sin \psi_{i} - \sin \phi_{i} \cos \psi_{i} } \\ { - \sin \theta_{i} } & {\sin \phi_{i} \cos \theta_{i} } & {\cos \phi_{i} \cos \theta_{i} } \\ \end{array} } \right).$$
$${{\varvec{\Pi}}}_{i} \left( {{{\varvec{\Theta}}}_{i} } \right) = \left( {\begin{array}{*{20}c} 1 & {\sin \phi_{i} \tan \theta_{i} } & {\cos \phi_{i} \tan \theta_{i} } \\ 0 & {\cos \phi_{i} } & { - \sin \phi_{i} } \\ 0 & {\sin \phi_{i} /\cos \theta_{i} } & {\cos \phi_{i} /\cos \theta_{i} } \\ \end{array} } \right)$$

Graph theory

Consider a directed graph \({\mathcal{G}} = \left\{ {{\mathcal{V}},{\mathcal{E}}} \right\}\) with nodes set represented by \({\mathcal{V}} = \{ 1,...,n\}\) and edges set represented by \({\mathcal{E}} \subseteq {\mathcal{V}} \times {\mathcal{V}}\). Let’s denote the adjacency matrix as \({\mathcal{A}} = \left[ {g_{ij} } \right] \in {\mathbb{R}}^{n \times n}\), where \(g_{ij} { = 1}\) when \((i,j) \in {\mathcal{E}}\) and \(g_{ij} { = 0}\) otherwise. Let’s denote the Laplacian matrix as \({\mathcal{L}} = \left[ {L_{ij} } \right] \in {\mathbb{R}}^{n \times n}\) where \(L_{ii} = \sum\limits_{j = 1,j \ne i}^{n} {g_{ij} }\) and \(L_{ij} = - g_{ij}\) when \(i \ne j\). Define a virtual leader labeled by agent 0 with the position and attitude equal to the desired values. For the quadcopter UAV cluster with a virtual leader and \(n\) followers, then \({\mathcal{L}} = \left[ {\begin{array}{*{20}c} 0 & {0_{n}^{{\text{T}}} } \\ {{\mathcal{L}}_{2} } & {{\mathcal{L}}_{1} } \\ \end{array} } \right]\) denotes the Laplacian matrix where \({\mathcal{L}}_{1}\) represents the interconnections among the followers while \({\mathcal{L}}_{2}\) signifies the interconnections between the virtual leader and the followers. If a node without neighbors can reach other nodes by any path, the graph is considered to possess a directed spanning tree.

Assumption 1.

\({\mathcal{G}}\) has a directed spanning tree.

Assumption 2.

The virtual leader’s acceleration \(\ddot{p}_{0}\) is bounded, that is, \(\left\| {\ddot{p}_{0} } \right\| \le \overline{a}\) with \(\overline{a} > 0\).

Lemma 1.

37 For matrix \(- {\mathcal{L}}_{1}^{ - 1} {\mathcal{L}}_{2}\), each element is non-negative, and the sum of each row equals 1.

Supporting lemmas

In this section, we will establish the following lemmas, which play an important role in the subsequent stability analysis.

Lemma 2.

38 For a system

$$\dot{\chi } = f(\chi ), \, f(0) = 0, \, \chi \in {\mathbb{R}}^{{\text{m}}}$$
(3)

when there’s a \(V(\chi )\) such that

$$\dot{V}\left( \chi \right) \le - \kappa_{1} V^{\alpha } \left( \chi \right) - \kappa_{2} V^{\beta } \left( \chi \right)$$
(4)

with \(\kappa_{1} > 0\), \(\kappa_{2} > 0\), \(0 < \alpha < 1\), and \(\beta > 1\), system (3) is considered to be globally fixed time stable with \(V\left( \chi \right)\) converging to zero in a fixed time \(T_{c} \le \frac{1}{{\kappa_{{1}} \left( {1 - \alpha } \right)}} + \frac{1}{{\kappa_{{2}} \left( {\beta - 1} \right)}}.\)

Lemma 3.

39 For system (3), when there’s a \(V\left( \chi \right)\) such that

$$\dot{V}\left( \chi \right) \le - \kappa_{1} V^{\alpha } \left( \chi \right) - \kappa_{2} V^{\beta } \left( \chi \right) + \vartheta$$
(5)

with \(\kappa_{1} > 0\), \(\kappa_{2} > 0\), \(0 < \alpha < 1\), \(\beta > 1\), and \(\vartheta > 0\), system (3) is considered to be practically fixed-time stable. \(V\left( \chi \right)\) can stabilize towards the region of zero, i.e.,

$$V\left( \chi \right) \le \min \left\{ {\left( {\frac{\vartheta }{{\kappa_{1} \left( {1 - \varepsilon } \right)}}} \right)^{{\frac{1}{\alpha }}} ,\left( {\frac{\vartheta }{{\kappa_{2} \left( {1 - \varepsilon } \right)}}} \right)^{{\frac{1}{\beta }}} } \right\}$$
(6)

with \(0 < \varepsilon < 1\) in a bounded convergence time \(T_{c} \le \frac{1}{{\kappa_{{1}} \varepsilon \left( {1 - \alpha } \right)}} + \frac{1}{{\kappa_{2} \varepsilon \left( {\beta - 1} \right)}}\).

Lemma 4.

40 \(\hbar ( \cdot )\) is a continuous function defined over the compact set \(\Gamma \subset {\mathbb{R}}^{n}\). Using the fuzzy logic system, there holds

$$\mathop {\sup }\limits_{Z \in \Gamma } \left| {\hbar \left( {\rm K} \right) - W^{ * T} \Psi \left( {\rm K} \right)} \right| \le \varsigma ,\varsigma > 0$$
(7)

with \(W^{ * } = \left[ {w_{1}^{ * } , \ldots ,w_{N}^{ * } } \right]^{T} \in {\mathbb{R}}^{N}\) denoting the ideal weight and \(\Psi \left( {\rm K} \right) = \frac{{\left[ {\Psi_{1} \left( {\rm K} \right), \ldots ,\Psi_{N} \left( {\rm K} \right)} \right]^{T} }}{{\sum\limits_{i = 1}^{N} {\Psi_{i} \left( {\rm K} \right)} }} \in {\mathbb{R}}^{N}\) signifying the basis function. \(\varsigma\) denotes the approximation error, while \(N\) indicates the number of rules. \(\Psi_{i} \left( {\rm K} \right)\) generally refers to the Gaussian function

$$\Psi_{i} \left( {\rm K} \right) = \exp \left( { - \frac{{\left( {{\rm K} - c_{i} } \right)^{T} \left( {{\rm K} - c_{i} } \right)}}{{w_{i}^{2} }}} \right),$$
(8)

where \(i = 1,2, \ldots ,N\), \(c_{i} \in {\mathbb{R}}^{n}\) and \(w_{i}\) are the center and width.

Lemma 5.

41 For \(x_{1} \in {\mathbb{R}}\), \(x_{2} \in {\mathbb{R}}\), \(\alpha > 0\), \(\beta > 0\), and \(\rho > 0\), there holds

$$\left| {x_{1} } \right|^{\alpha } \left| {x_{2} } \right|^{\beta } \le \frac{\alpha }{\alpha + \beta }\rho \left| {x_{1} } \right|^{\alpha + \beta } + \frac{\beta }{\alpha + \beta }\rho^{{ - \frac{\alpha }{\beta }}} \left| {x_{2} } \right|^{\alpha + \beta }$$
(9)

Lemma 6.

42 For \(X_{1} \in {\mathbb{R}}\), \(X_{2} \in {\mathbb{R}}\), \(X_{1} \le X_{2}\), and \(\beta > 1\), there holds

$$X_{1} \left( {X_{2} - X_{1} } \right)^{\beta } \le \frac{\beta }{\beta + 1}\left( {X_{2}^{\beta + 1} - X_{1}^{\beta + 1} } \right)$$
(10)

Lemma 7.

41 For \(x_{i} \in {\mathbb{R}}\), \(0 < \alpha \le 1\), and \(\beta > 1\), there holds

$$\left( {\sum\limits_{l = 1}^{n} {\left| {x_{l} } \right|} } \right)^{\alpha } \le \sum\limits_{l = 1}^{n} {\left| {x_{l} } \right|^{\alpha } } ,\;n^{1 - \beta } \left( {\sum\limits_{l = 1}^{n} {\left| {x_{l} } \right|} } \right)^{\beta } \le \sum\limits_{l = 1}^{n} {\left| {x_{l} } \right|^{\beta } }$$
(11)

Lemma 8.

43 For the following systems

$$\dot{y} = - l_{1} {\text{sig}}^{\mu } (y) - l_{2} {\text{sig}}^{\nu } (y),\quad y(0) = y_{0}$$
(12)

where \({\text{sig}}^{\mu } (y) = |y|^{\mu } \cdot {\text{sgn}} (y)\), \({\text{sig}}^{\nu } (y) = |y|^{\nu } \cdot {\text{sgn}} (y)\), \(l_{1} > 0\), \(l_{2} > 0\), \(\mu > 1\), and \(0 < \nu < 1\). System (12) is stable at a fixed time, and the stable time \(T_{s}\) is bounded by:

$$T_{s} \le T_{\max } = \frac{1}{{l_{1} \left( {\mu - 1} \right)}} + \frac{1}{{l_{2} \left( {1 - \nu } \right)}}$$
(13)

Main results

In this section, a novel distributed fixed-time observer is designed in 3.1. In 3.2, a tailored fuzzy adaptive nonsingular terminal sliding mode controller is designed for each quadrotor UAV. The indirect fuzzy identification mechanism is adopted in which the aggregated uncertain term is determined by using the fuzzy logic system, in which each identification only requires one adaptive parameter, and the computational cost is reduced. The proposed distributed control framework is shown in Fig. 2.

Fig. 2
figure 2

The proposed distributed control framework.

Distributed fixed-time state observer

A novel distributed fixed-time state observer is devised for each follower UAV to accurately determine the virtual leader’s position and velocity. \({{\varvec{\upxi}}}_{i} \in {\mathbb{R}}^{3}\) and \({{\varvec{\upzeta}}}_{i} \in {\mathbb{R}}^{3}\) represent the position and velocity estimates of the virtual leader. Define \({{\varvec{\upxi}}}_{0} = {\mathbf{p}}_{0}\) and \({{\varvec{\upzeta}}}_{0} = {\mathbf{v}}_{0}\). Design the distributed fixed-time state observer as follows

$$\left\{ \begin{gathered} {\dot{\mathbf{\xi }}}_{i} = {{\varvec{\upzeta}}}_{i} - l_{1} {\text{sig}}^{\mu } \left( {\sum\limits_{i = 1}^{n} {g_{ij} \left( {{{\varvec{\upxi}}}_{i} - {{\varvec{\upchi}}}_{i} - {{\varvec{\upxi}}}_{j} + {{\varvec{\upchi}}}_{j} } \right)} } \right)\; - l_{2} {\text{sig}}^{\nu } \left( {\sum\limits_{i = 1}^{n} {g_{ij} \left( {{{\varvec{\upxi}}}_{i} - {{\varvec{\upchi}}}_{i} - {{\varvec{\upxi}}}_{j} + {{\varvec{\upchi}}}_{j} } \right)} } \right) \hfill \\ {\dot{\mathbf{\zeta }}}_{i} = - l_{1} {\text{sig}}^{\mu } \left( {\sum\limits_{i = 1}^{n} {g_{ij} \left( {{{\varvec{\upzeta}}}_{i} - {{\varvec{\upzeta}}}_{j} } \right)} } \right) - l_{2} {\text{sig}}^{\nu } \left( {\sum\limits_{i = 1}^{n} {g_{ij} \left( {{{\varvec{\upzeta}}}_{i} - {{\varvec{\upzeta}}}_{j} } \right)} } \right) - b{\text{sgn}} \left( {\sum\limits_{i = 1}^{n} {g_{ij} \left( {{{\varvec{\upzeta}}}_{i} - {{\varvec{\upzeta}}}_{j} } \right)} } \right) \hfill \\ \end{gathered} \right.$$
(14)

with \(l_{1} > 0\), \(l_{2} > 0\), \(0 < \mu < 1\), \(\nu > 1\), and \(b \ge \overline{a}\) being observer parameters that play a crucial role in determining the observer’s performance.

Theorem 1:

For the quadrotor-UAV cluster (1), under the designed distributed fixed-time observer, the virtual leader’s position and velocity can be approximated within a fixed time for each follower UAV.

Proof:

Define the error \({\tilde{\mathbf{\xi }}}_{i} = {{\varvec{\upxi}}}_{i} - {\mathbf{p}}_{0} - {{\varvec{\upchi}}}_{i}\), \({\tilde{\mathbf{\zeta }}}_{i} = {{\varvec{\upzeta}}}_{i} - {\mathbf{v}}_{0}\). Let \({\tilde{\mathbf{\xi }}} = \left[ {{\tilde{\mathbf{\xi }}}_{1}^{{\text{T}}} , \ldots ,{\tilde{\mathbf{\xi }}}_{n}^{{\text{T}}} } \right]^{{\text{T}}}\),\({\tilde{\mathbf{\zeta }}} = \left[ {{\tilde{\mathbf{\zeta }}}_{1}^{{\text{T}}} , \ldots ,{\tilde{\mathbf{\zeta }}}_{n}^{{\text{T}}} } \right]^{{\text{T}}}\), \({{\varvec{\Lambda}}}_{0} = \left[ {{{\varvec{\upeta}}}_{0}^{{\text{T}}} , \ldots ,{{\varvec{\upeta}}}_{0}^{{\text{T}}} } \right]^{{\text{T}}}\), and \({\mathbf{H}} = \mathcal{L}_{1} \otimes {\mathbf{I}}_{3}\).

We select the Lyapunov function

$$U_{1} = \frac{1}{2}{\tilde{\mathbf{\zeta }}}^{{\text{T}}} {\mathbf{H}}^{{\text{T}}} {\tilde{\mathbf{\zeta }}}$$
(15)

Employing Lemmas 1 and 7, we can arrive at

$$\begin{aligned} \dot{U}_{1} & = {\mathbf{\zeta }}^{{\text{T}}} {\mathbf{H}}^{{\text{T}}} \left( { - l_{1} {\text{sig}}^{\mu } \left( {{\mathbf{H\tilde{\zeta }}}} \right) - l_{2} {\text{sig}}^{\nu } \left( {{\mathbf{H\tilde{\zeta }}}} \right) - b{\text{sgn}}\left( {{\mathbf{H\tilde{\zeta }}}} \right)} \right.\left. { + \left( {\left( { - {\mathcal{L}}_{1}^{{ - 1}} {\mathcal{L}}_{2} } \right) \otimes {\mathbf{I}}_{3} } \right){\mathbf{\ddot{\Lambda }}}_{0} } \right) \\ & \le - l_{1} \left( {\left\| {{\mathbf{H\tilde{\zeta }}}} \right\|^{2} } \right)^{{\frac{{1 + \mu }}{2}}} - \left( {3n} \right)^{{\frac{{1 - \nu }}{2}}} l_{2} \left( {\left\| {{\mathbf{H\tilde{\zeta }}}} \right\|^{2} } \right)^{{\frac{{1 + \nu }}{2}}} - \left( {b - \bar{a}} \right)\left\| {{\mathbf{H\tilde{\zeta }}}} \right\|_{1} \\ & \le - \kappa _{1} U_{1}^{{\frac{{1 + \mu }}{2}}} - \kappa _{2} U_{1}^{{\frac{{1 + \nu }}{2}}} \\ \end{aligned}$$
(16)

where \(\kappa_{1} = \frac{{2^{{\frac{1 + \mu }{2}}} l_{1} }}{{\lambda_{\min }^{{\frac{1 + \mu }{2}}} \left( {\mathbf{H}} \right)}}\) and \(\kappa_{2} = \frac{{2^{{\frac{1 + \nu }{2}}} \left( {3n} \right)^{{\frac{1 - \nu }{2}}} l_{2} }}{{\lambda_{\min }^{{\frac{1 + \nu }{2}}} \left( {\mathbf{H}} \right)}}\). By using Lemma 2, it can be observed that the convergence can be achieved in the fixed time \(T_{c1} \le \frac{2}{{\kappa_{{1}} \left( {1 - \mu } \right)}} + \frac{2}{{\kappa_{{2}} \left( {\nu - 1} \right)}}\), and hence \({\tilde{\mathbf{\zeta }}}_{i}\) also converges to zero within \(T_{c1}\).

When \(t \ge T_{c1}\), \({{\varvec{\upzeta}}}_{i} = {\mathbf{v}}_{0}\) can be obtained. Select the Lyapunov function

$$U_{2} = \frac{1}{2}{\tilde{\mathbf{\xi }}}^{{\text{T}}} {\mathbf{H}}^{{\text{T}}} {\tilde{\mathbf{\xi }}}$$
(17)

Employing Lemma 7, we can arrive at

$$\begin{aligned} \dot{U}_{2} & = \widetilde{{\mathbf{\xi }}}^{{\text{T}}} {\mathbf{H}}^{{\text{T}}} \left( { - l_{1} {\text{sig}}^{\mu } \left( {{\mathbf{H\tilde{\xi }}}} \right) - l_{2} {\text{sig}}^{\nu } \left( {{\mathbf{H\tilde{\xi }}}} \right) - r{\text{sgn}}\left( {{\mathbf{H\tilde{\zeta }}}} \right)} \right) \\ & \le - l_{1} \left( {\left\| {{\mathbf{H\tilde{\xi }}}} \right\|^{2} } \right)^{{\frac{{1 + \mu }}{2}}} - \left( {3n} \right)^{{\frac{{1 - \nu }}{2}}} l_{2} \left( {\left\| {{\mathbf{H\tilde{\xi }}}} \right\|^{2} } \right)^{{\frac{{1 + \nu }}{2}}} \\ & \le - \kappa _{1} U_{2}^{{\frac{{1 + \mu }}{2}}} - \kappa _{2} U_{2}^{{\frac{{1 + \nu }}{2}}} \\ \end{aligned}$$
(18)

By using Lemma 2, one deduces that \(U_{2}\) converges to zero within the fixed time \(T_{c1}\). Consequently, \({\tilde{\mathbf{\xi }}}_{i}\) also converges to zero within \(T_{c1}\). The analysis presented above shows that the leader’s position and velocity can be approximated within a fixed time \(T_{c1}\). This concludes the proof of Theorem 1.

Remark 1.

Unlike the finite-time convergence control methodologies presented in28,29,30, which depend on the initial conditions, a distributed fixed-time state observer was designed for each follower UAV to estimate the status information of the virtual leader. This status information can be used for subsequent controller development.

Fixed-time adaptive local controller design

This section endeavors to devise the fixed-time adaptive controller to realize cooperative control by utilizing the designed observer. Define the error variables

$${\mathbf{e}}_{1i} = {\mathbf{p}}_{i} - {{\varvec{\upxi}}}_{i} ,\;{\mathbf{e}}_{2i} = {\mathbf{v}}_{i} - {{\varvec{\upzeta}}}_{i}$$
(19)

When \(t \ge T_{c1}\), by Theorem 1, we can obtain that \({{\varvec{\upxi}}}_{i} = {\mathbf{p}}_{0} + {{\varvec{\upchi}}}_{i}\) and \({{\varvec{\upzeta}}}_{i} = {\mathbf{v}}_{0}\). Meanwhile, the error variables are equal to the position and velocity synchronization errors. Introduce the following fixed-time terminal sliding mold surface

$${\mathbf{s}}_{i} = {\mathbf{e}}_{2i} + r_{1} {\text{sig}}^{\mu } \left( {{\mathbf{e}}_{1i} } \right) + r_{2} {\text{sig}}^{\nu } \left( {{\mathbf{e}}_{1i} } \right)$$
(20)

with \(r_{1} > 0\) and \(r_{2} > 0\).

Lemma 9.

Considering the fixed-time terminal sliding mold surface (20), when \(s = 0\), the tracking errors \({\mathbf{e}}_{1i}\) and \({\mathbf{e}}_{2i}\) are stable at a fixed time.

Proof:

When \(s = 0\), (20) is rewritten as

$${\mathbf{s}}_{i} = {\mathbf{e}}_{2i} + r_{1} {\text{sig}}^{\mu } \left( {{\mathbf{e}}_{1i} } \right) + r_{2} {\text{sig}}^{\nu } \left( {{\mathbf{e}}_{1i} } \right){ = }0$$
(21)

and

$${\dot{\mathbf{e}}}_{1i} = - r_{1} {\text{sig}}^{\mu } \left( {{\mathbf{e}}_{1i} } \right) - r_{2} {\text{sig}}^{\nu } \left( {{\mathbf{e}}_{1i} } \right)$$
(22)

where \({\text{r}}_{1} { > 0}\), \(r_{2} { > 0}\), \(\mu { > 0}\) and \(0 < \nu < 1\).

We design the Lyapunov function

$$V = \frac{1}{2}\sum\limits_{i = 1}^{n} {e_{1i} }^{2}$$
(23)

Using (22), we can further get

$$\begin{aligned} \dot{V} & = \sum\limits_{{i = 1}}^{n} {e_{{1i}} } \cdot \mathop {\sum\limits_{{i = 1}}^{n} {e_{{1i}} } }\limits^{.} = \sum\limits_{{i = 1}}^{n} {e_{{1i}} } \left[ { - r_{1} {\text{sig}}^{\mu } \left( {e_{{1i}} } \right) - r_{2} {\text{sig}}^{\nu } \left( {e_{{1i}} } \right)} \right] \\ & = - r_{1} \left\| {\sum\limits_{{i = 1}}^{n} {e_{{1i}} } } \right\|^{{1 + \mu }} - r_{2} \left\| {\sum\limits_{{i = 1}}^{n} {e_{{1i}} } } \right\|^{{1 + \nu }} \\ & = - \kappa _{3} V^{{\frac{{1 + \mu }}{2}}} - \kappa _{4} V^{{\frac{{1 + \nu }}{2}}} \\ \end{aligned}$$
(24)

where \(\kappa_{3} = r_{1} 3^{{\frac{1 - \mu }{2}}} 2^{{\frac{1 + \nu }{2}}}\) and \(\kappa_{4} = r_{2} 2^{{\frac{1 + \nu }{2}}}\).

According to Lemma 8, \(e_{1i}\) and \(e_{2i}\)

$$T_{s} \le \frac{1}{{\kappa_{3} }} \times \frac{2}{\mu - 1} + \frac{1}{{\kappa_{4} }} \times \frac{2}{\nu - 1}.$$
(25)

This concludes the proof for Lemma 9.

Deriving the derivative of \({\mathbf{s}}_{i}\) produces

$${\dot{\mathbf{s}}}_{i} = {\mathbf{u}}_{i} + {\mathbf{N}}_{i} + r_{1} \mu {{\varvec{\Xi}}}_{1i} {\mathbf{e}}_{2i} + r_{2} \nu {{\varvec{\Xi}}}_{2i} {\mathbf{e}}_{2i}$$
(26)

with \({{\varvec{\Xi}}}_{1i} = {\text{diag}}\left\{ {\left| {e_{1i,1} } \right|^{\mu - 1} ,\left| {e_{1i,2} } \right|^{\mu - 1} ,\left| {e_{1i,3} } \right|^{\mu - 1} } \right\}\), \({{\varvec{\Xi}}}_{2i} = {\text{diag}}\left\{ {\left| {e_{1i,1} } \right|^{\nu - 1} ,\left| {e_{1i,2} } \right|^{\nu - 1} ,\left| {e_{1i,3} } \right|^{\nu - 1} } \right\}\), and \({\mathbf{N}}_{i} = {{\varvec{\updelta}}}_{i} - {\dot{\mathbf{\zeta }}}_{i}\).

Letting \({\mathbf{Z}}_{i} = \left[ {{{\varvec{\upxi}}}_{i}^{{\text{T}}} ,{{\varvec{\upzeta}}}_{i}^{{\text{T}}} } \right]^{{\text{T}}} \in {\mathbb{R}}^{6}\) and using the fuzzy logic system, the lumped unknown term is approximated as

$${\mathbf{N}}_{i} = {\mathbf{W}}_{{_{i} }}^{{ * {\text{T}}}} {{\varvec{\Phi}}}\left( {{\mathbf{Z}}_{i} } \right) + {{\varvec{\upvarepsilon}}}_{i}$$
(27)

where \({{\varvec{\Phi}}}\left( {{\mathbf{Z}}_{i} } \right)\) denotes the basis function and \({{\varvec{\upvarepsilon}}}_{i}\) denotes approximation error. Using the inequality relaxation technique, (27) can be rewritten as

$$\left\| {{\mathbf{N}}_{i} } \right\| \le \left\| {{\mathbf{W}}_{i}^{ * } } \right\|\left\| {{{\varvec{\Phi}}}\left( {{\mathbf{Z}}_{i} } \right)} \right\| + \left\| {{{\varvec{\upvarepsilon}}}_{i} } \right\| \le B_{i} \Phi_{i}$$
(28)

where \(B_{i} = \max \left\{ {\overline{W}_{i} ,\overline{\varepsilon }_{i} } \right\}\) represents an unknown constant and \(\Phi_{i} = \left\| {{{\varvec{\Phi}}}\left( {{\mathbf{Z}}_{i} } \right)} \right\| + 1\) represents a time-varying function.

Remark 2: While various approximation methods exist, such as RBF neural networks (RBFNN)44 and reinforcement learning (RL)-based45 approaches, fuzzy systems are adopted in this work due to their unique advantages. Compared with RBFNN, fuzzy systems embed expert knowledge through interpretable linguistic rules, enhancing transparency and safety—especially crucial in UAV applications. Unlike RL-based methods, fuzzy systems enable fast online optimization without relying on large-scale datasets or extensive offline training. These features make fuzzy systems particularly suitable for real-time, safety-critical scenarios.

Choose the following fuzzy adaptive non-singular terminal sliding mode controller

$$\begin{aligned} {\mathbf{u}}_{i} & = - k_{1} {\text{sig}}^{\mu } \left( {{\mathbf{s}}_{i} } \right) - k_{2} {\text{sig}}^{\nu } \left( {{\mathbf{s}}_{i} } \right) - \frac{{\hat{B}_{{si}} \Phi _{i}^{2} {\mathbf{s}}_{i} }}{{2\gamma ^{2} }} \\ & \quad - r_{1} \mu {\text{sat}}_{\sigma } \left( {\Xi _{{1i}} } \right){\mathbf{e}}_{{2i}} - r_{2} \nu \Xi _{{2i}} {\mathbf{e}}_{{2i}} \\ \end{aligned}$$
(29)

where \(k_{1} > 0\), \(k_{2} > 0\), \(\gamma > 0\), and \(\hat{B}_{si}\) is the estimates of \(B_{si} = B_{i}^{2}\). Choose the adaptive law

$$\dot{\hat{B}}_{si} = - h_{1} \hat{B}_{si} - h_{2} \hat{B}_{si}^{\nu } + \frac{{\eta \Phi_{i}^{2} \left\| {{\mathbf{s}}_{i} } \right\|^{2} }}{{2\gamma^{2} }}$$
(30)

with \(h_{1} > 0\), \(h_{2} > 0\), and \(\eta > 0\).

Theorem 2:

Assume Assumptions 1 and 2 hold, considering the quadrotor-UAV cluster (1) under the fixed-time adaptive local controller (29) and the indirect fuzzy adaptive law (30).

  1. i)

    All signals within the system exhibit uniform ultimate boundedness.

  2. ii)

    The position and velocity tracking errors of each follower UAV can converge to the small region about zero in fixed time.

Proof:

We design the Lyapunov function.

$$V_{i} = \frac{1}{2}{\mathbf{s}}_{i}^{{\text{T}}} {\mathbf{s}}_{i} + \frac{1}{2\gamma }\tilde{B}_{si}^{2}$$
(31)

with \(\tilde{B}_{si} = B_{si} - \hat{B}_{si}\). Using (26), we can further get

$$\dot{V}_{i} = {\mathbf{s}}_{i}^{{\text{T}}} \left( {{\mathbf{u}}_{i} + {\mathbf{N}}_{i} + r_{1} \mu {{\varvec{\Xi}}}_{1i} {\mathbf{e}}_{2i} + r_{2} \nu {{\varvec{\Xi}}}_{2i} {\mathbf{e}}_{2i} } \right) - \frac{1}{\gamma }\tilde{B}_{si} \dot{\hat{B}}_{si}$$
(32)

Substituting the controller (29) and the adaptive law (30) into (32) and using Lemma 7 yields

$$\begin{aligned} \dot{V}_{i} & \le - k_{1} \left( {\left\| {{\mathbf{s}}_{i} } \right\|^{2} } \right)^{{\frac{{1 + \mu }}{2}}} - 3^{{\frac{{1 - \nu }}{2}}} k_{2} \left( {\left\| {{\mathbf{s}}_{i} } \right\|^{2} } \right)^{{\frac{{1 + \nu }}{2}}} - \frac{{B_{{si}} \Phi _{i}^{2} \left\| {{\mathbf{s}}_{i} } \right\|^{2} }}{{2\gamma ^{2} }} \\ & \quad + {\mathbf{s}}_{i}^{{\text{T}}} {\mathbf{N}}_{i} + \frac{{h_{1} }}{\gamma }\tilde{B}_{{si}} \hat{B}_{{si}} + \frac{{h_{2} }}{\gamma }\tilde{B}_{{si}} \hat{B}_{{si}}^{\nu } \\ \end{aligned}$$
(33)

It follows from Young’s inequality that

$${\mathbf{s}}_{i}^{{\text{T}}} {\mathbf{N}}_{i} \le \frac{{B_{si} \left\| {{\mathbf{s}}_{i} } \right\|^{2} }}{{2\varsigma^{2} }} + \frac{{\varsigma^{2} }}{2}$$
(34)
$$\frac{{h_{1} }}{\gamma }\tilde{B}_{si} \hat{B}_{si} = \frac{{h_{1} }}{\gamma }\tilde{B}_{si} \left( {B_{si} - \tilde{B}_{si} } \right) \le - \frac{{h_{1} }}{2\gamma }\tilde{B}_{si}^{2} + \frac{{h_{1} }}{2\gamma }B_{si}^{2}$$
(35)

Using Lemma 5 and \(x_{1} = 1\), \(x_{2} = \frac{{h_{1} }}{2\gamma }\tilde{B}_{si}^{2}\), \(\alpha = \frac{1 - \mu }{2}\), \(\beta = \frac{1 + \mu }{2}\), \(\rho = \left( {\frac{1 + \mu }{2}} \right)^{{\frac{1 + \mu }{{1 - \mu }}}}\), the following inequality hold

$$- \frac{{h_{1} }}{2\gamma }\tilde{B}_{si}^{2} \le \frac{1 - \mu }{2}\left( {\frac{1 + \mu }{2}} \right)^{{\frac{1 + \mu }{{1 - \mu }}}} - \left( {\frac{{h_{1} }}{2\gamma }\tilde{B}_{si}^{2} } \right)^{{\frac{1 + \mu }{2}}}$$
(36)

Furthermore, using Lemma 6 and \(x_{1} = \tilde{B}_{si}\), \(x_{2} = B_{si}\), \(\beta = \nu\), it is not difficult to obtain that

$$\frac{{h_{2} }}{\gamma }\tilde{B}_{si} \hat{B}_{si}^{\nu } = \frac{{h_{2} }}{\gamma }\tilde{B}_{si} \left( {B_{si} - \tilde{B}_{si} } \right)^{\nu } \le \frac{{\nu h_{2} }}{{\left( {1 + \nu } \right)\gamma }}\left( {B_{si}^{1 + \nu } - \tilde{B}_{si}^{1 + \nu } } \right)$$
(37)

Using Lemma 7, substituting (34)–(37) into (33) yields

$$\begin{aligned} \dot{V}_{i} & \le - k_{1} \left( {\left\| {{\mathbf{s}}_{i} } \right\|^{2} } \right)^{{\frac{{1 + \mu }}{2}}} - 3^{{\frac{{1 - \nu }}{2}}} k_{2} \left( {\left\| {{\mathbf{s}}_{i} } \right\|^{2} } \right)^{{\frac{{1 + \nu }}{2}}} \\ & \quad - \left( {\frac{{h_{1} }}{{2\gamma }}\tilde{B}_{{si}}^{2} } \right)^{{\frac{{1 + \mu }}{2}}} - \frac{{\nu h_{2} }}{{\left( {1 + \nu } \right)\gamma }}\tilde{B}_{{si}}^{{1 + \nu }} + \vartheta _{i} \\ & \le - \kappa _{5} V_{i}^{{\frac{{1 + \mu }}{2}}} - \kappa _{6} V_{i}^{{\frac{{1 + \nu }}{2}}} + \vartheta _{i} \\ \end{aligned}$$
(38)

with \(\kappa_{5} = \min \left\{ {2^{{\frac{1 + \mu }{2}}} k_{1} ,h_{1}^{{\frac{1 + \mu }{2}}} } \right\}\), \(\kappa_{6} = \min \left\{ {3^{{\frac{1 - \nu }{2}}} 2^{{\frac{1 + \nu }{2}}} k_{2} ,2^{{\frac{1 + \nu }{2}}} \gamma^{{\frac{\nu - 1}{2}}} \frac{{\nu h_{2} }}{1 + \nu }} \right\}\), \(\vartheta_{i} = \frac{{h_{1} }}{2\gamma }B_{si}^{2} + \frac{{\nu h_{2} }}{{\left( {1 + \nu } \right)\gamma }}B_{si}^{1 + \nu }\) \(+ \frac{1 - \mu }{2}\left( {\frac{1 + \mu }{2}} \right)^{{\frac{1 + \mu }{{1 - \mu }}}} + \frac{{\gamma^{2} }}{2}\). Using Lemma 3, we obtain that \(V_{i}\) converge to the following small region about zero.

$$V_{i} \le \min \left\{ {\left( {\frac{{\vartheta_{i} }}{{\kappa_{5} \left( {1 - \varepsilon } \right)}}} \right)^{{\frac{2}{1 + \mu }}} ,\left( {\frac{{\vartheta_{i} }}{{\kappa_{6} \left( {1 - \varepsilon } \right)}}} \right)^{{\frac{2}{1 + \nu }}} } \right\}$$
(39)

with \(0 < \varepsilon < 1\). From (39), the sliding variable \({\mathbf{s}}_{i}\) converges to a small region around zero, when \(T_{c2}\) satisfies the following conditions

$$T_{3} \le T_{c2} = \frac{2}{{\kappa_{{1}} \varepsilon \left( {1 + \mu } \right)}} + \frac{2}{{\kappa_{2} \varepsilon \left( {q - 1} \right)}}$$
(40)

Based on Eqs. (23)–(25), when \({\mathbf{s}}_{i}\) converges to a small region around zero, the tracking errors \(e_{1i}\) and \(e_{2i}\) also can converge to a small region around zero. The convergence time satisfies

$$\begin{aligned} T & = T_{{c2}} + T_{s} \le \frac{2}{{\kappa _{1} \varepsilon \left( {1 + \mu } \right)}} + \frac{2}{{\kappa _{2} \varepsilon \left( {q - 1} \right)}} \\ & \quad + \frac{1}{{r_{1} 3^{{\frac{{1 - \mu }}{2}}} 2^{{\frac{{1 + \nu }}{2}}} }} \cdot \frac{2}{{\mu - 1}} + \frac{1}{{r_{2} 2^{{\frac{{1 + \nu }}{2}}} }} \cdot \frac{2}{{\nu - 1}}. \\ \end{aligned}$$
(41)

Therefore, the fixed-time cooperative control problem can be handled. This concludes the proof for Theorem 2.

Remark 3:

Unlike the literature35,36, by leveraging the recovered state information, a specifically designed fuzzy adaptive nonsingular terminal sliding mode controller is formulated for each quadrotor UAV. In contrast to traditional sliding mode control, this customized controller exhibits superior advantages in terms of position-tracking accuracy, response speed, and stability. It ensures the accomplishment of local position tracking within a predetermined fixed time period. Moreover, an efficient indirect fuzzy identification mechanism is adopted, which incorporates a fuzzy logic system to identify the upper bound of the lumped uncertain term. Additionally, the attitude formation controller can be designed similarly and thus is omitted here.

Simulation results

This section validates the fixed-time formation tracking controller proposed in this paper. In the simulated scenario, the directed topology is depicted in Fig. 3, in which UAV 0 is the leader and only UAVs 1 and 4 can directly access the virtual leader’s information.

Fig. 3
figure 3

Communication topology.

To rigorously demonstrate that the convergence rate of the proposed fixed-time controller is independent of the system’s initial conditions, we conducted simulations under two distinct sets of initializations:

Case1: Define the desired trajectory \(p_{0} = \left[ {5\sin \left( {0.1t} \right),5\cos \left( {0.1t} \right),8} \right]^{{\text{T}}}\). We choose the following initial value \(p_{1} \left( 0 \right) = \left[ {1, \, 1, \, 0} \right]^{{\text{T}}}\), \(p_{2} \left( 0 \right) = \left[ {0, \, 1, \, 0} \right]^{{\text{T}}}\), \(p_{3} \left( 0 \right) = \left[ { - 2, \, 1, \, 0} \right]^{{\text{T}}}\), \(p_{4} \left( 0 \right) = \left[ { - 1, \, 1, \, 0} \right]^{{\text{T}}}\), \(v_{1} \left( 0 \right) = \left[ {1,{ 1},{ 1}} \right]^{{\text{T}}}\), \(v_{2} \left( 0 \right) = \left[ {1,{ 1},{ 1}} \right]^{{\text{T}}}\), \(v_{3} \left( 0 \right) = \left[ {1,{ 1},{ 1}} \right]^{{\text{T}}}\), \(v_{4} \left( 0 \right) = \left[ {1,{ 1},{ 1}} \right]^{{\text{T}}}\).

Case2: \(p_{1} \left( 0 \right) = \left[ {2, \, 1, \, 0} \right]^{{\text{T}}}\), \(p_{2} \left( 0 \right) = \left[ {0, \, 1,{ 1}} \right]^{{\text{T}}}\), \(p_{3} \left( 0 \right) = \left[ { - 1, \, 1, \, 0} \right]^{{\text{T}}}\), \(p_{4} \left( 0 \right) = \left[ {1, \, 1, \, 0} \right]^{{\text{T}}}\), \(v_{1} \left( 0 \right) = \left[ {1,{ 1},{ 0}} \right]^{{\text{T}}}\), \(v_{2} \left( 0 \right) = \left[ {1,{ 1},{ 0}} \right]^{{\text{T}}}\), \(v_{3} \left( 0 \right) = \left[ {1,{ 1},{0}} \right]^{{\text{T}}}\), \(v_{4} \left( 0 \right) = \left[ {1,{ 1},{ 0}} \right]^{{\text{T}}}\).

All the other parameters are the same. Define \(\hat{B}_{si} \left( 0 \right) = 0\). \(\chi_{1} = \left[ {0.8, \, - 0.8, \, 0} \right]^{{\text{T}}}\), \(\chi_{2} = \left[ {0.8, \, 0.8, \, 0} \right]^{{\text{T}}}\), \(\chi_{3} = \left[ { - 0.8, \, 0.8, \, 0} \right]^{{\text{T}}}\), and \(\chi_{4} = \left[ { - 0.8, \, - 0.8, \, 0} \right]^{{\text{T}}}\) denote the formation distances. The external disturbance is \(d = \left( {i - 2.5} \right)\left[ {0.4\sin \left( {0.3t} \right), \, 0.6\sin \left( {0.2t} \right), \, 0.5\cos \left( {0.3t} \right)} \right]^{{\text{T}}}\).

The parameters in the exponential terms are set as \(\mu = {{99} \mathord{\left/ {\vphantom {{99} {101}}} \right. \kern-0pt} {101}}\) and \(\nu = {{103} \mathord{\left/ {\vphantom {{103} {101}}} \right. \kern-0pt} {101}}\), which influence the convergence rate by shaping the Lyapunov function decay rate. The observer gain parameters are chosen as \(l_{1} = 10\), \(l_{2} = 10\), \(b = 0.01\), which determines the convergence of the observer. \(r_{1} = 1\) and \(r_{2} = 1\)​ are design parameters in the sliding surface definition, which determine the relative weight of error and its derivative in the sliding mode dynamics. \(k_{1} = 100\) and \(k_{2} = 100\) are control gains for the sliding variables, which influence the convergence speed of the sliding surface. \(\gamma = 1\), \(h_{1} = 1\), \(h_{2} = 1\), and \(\eta = 1\) are adaptive update rates. In the FLS, seven fuzzy rules are used with centers \(c_{i} = \left[ { - 3, \, - 2, \, - 1, \, 0, \, 1, \, 2, \, 3} \right]\) and width \(w_{i} = 6\). These settings allow the FLS to approximate a wide range of nonlinear uncertainties effectively.

For Case 1, the simulation results are displayed in Figs. 4, 5, 6, 7, 8, 9 and 10. Figure 4 presents the spatial trajectory tracking control implemented on multiple quadrotor UAVs. They take from starting points at an altitude of 0 m, then quickly climb the altitude to correct altitude disturbance, and begin to track the input trajectory of the virtual leader. Finally, the position synchronization mission is completed, and the formation control is also well transformed. The simulation outcomes in Fig. 4 illustrate the good control performance of the fuzzy adaptive controller. The detailed spatial tracking results are shown in Fig. 5. The four quadrotor UAVs complete the altitude climb in about 2 seconds and form an initial formation. In the aspect of speed, as shown in Fig. 6, the direction and speed changes are consistent with the path change in Fig. 5. The entire process of speed changes steadily without any sudden changes, which meets the requirements of practical engineering applications. Moreover, Figs. 7 and 8 provide the tracking errors in terms of spatial position and velocity relative to time. It reveals that the proposed fuzzy adaptive controller can well achieve high position and velocity tracking accuracy even under uncertainties. Owing to the utilization of indirect fuzzy approximation, the proposed controller possesses excellent uncertainty attenuation. Figure 9 presents the control input, which is within the reasonable range for applications. Within the controller, the change of the fuzzy adaptive parameters is depicted in Fig. 10.

Fig. 4
figure 4

Spatial trajectory tracking of the multiple quadrotor UAVs.

Fig. 5
figure 5

Case1: Position tracking control.

Fig. 6
figure 6

Case1: Velocity tracking control.

Fig. 7
figure 7

Case1: Position tracking errors.

Fig. 8
figure 8

Case1: Velocity tracking errors.

Fig. 9
figure 9

Case1: Control inputs.

Fig. 10
figure 10

Case1: Adaptive parameter estimation \(\hat{B}_{si}\).

To clearly demonstrate that the convergence time of the fixed-time control is unaffected by the initial system’s states, two cases of the system initial value are given in Case 1 and Case 2. For Case 2, the simulation results are displayed in Figs. 11, 12, 13 and 14. From Figs. 5, 6, 7, 8 and 11, 12, 13, 14, it can be seen that the fixed-time stability of the system can be ensured under the fixed time controller (29). Furthermore, we can see that the upper bound of settling time is not affected by the initial values of the system. Furthermore, to better demonstrate the performance of the proposed control scheme under two distinct initial conditions, we computed the average RMSE values for both position and velocity errors of the UAV system in each case, as presented in Table 1. Analysis of the obtained RMSE values reveals that the error magnitudes under both initial conditions exhibit remarkable consistency, indicating that the proposed controller achieves similarly high control performance regardless of initial state variations.

Fig. 11
figure 11

Case2: Position tracking control.

Fig. 12
figure 12

Case2: Velocity tracking control.

Fig. 13
figure 13

Case2: Position tracking errors.

Fig. 14
figure 14

Case2: Velocity tracking errors.

Table 1 The RMSE values of position and velocity errors for both cases.

To highlight the advantages of the proposed control strategy, a comparative study was conducted with the adaptive FLS-based nonsingular fast terminal sliding mode controller (AFSMC) from46. Under the initial conditions of Case 1, the position and velocity tracking errors of AFSMC are shown in Figs. 15 and 16, respectively. The results demonstrate that while the proposed controller enables the UAV formation to rapidly correct its configuration within 2 seconds (see Figs. 7, 8), AFSMC requires 20 seconds to converge. This comparison clearly indicates the superior convergence speed of the proposed fixed-time controller. Furthermore, as shown in Table 2, the RMSE analysis of both control schemes reveals that the proposed strategy achieves smaller position/velocity tracking errors, confirming its faster convergence rate and enhanced control performance.

Fig. 15
figure 15

Position tracking errors under AFSMC.

Fig. 16
figure 16

Velocity tracking errors under AFSMC.

Tabel 2 RMSE comparison between the proposed method and AFSMC.

Conclusion

For cooperative tracking of quadrotor UAV formation under local communications, a fuzzy adaptive distributed fixed-time control method is proposed. To complete the distributed cooperative tracking task, the method combines a fixed-time distributed state observer, indirect fuzzy identification mechanism, and non-singular terminal sliding mode controller. The proposed control method can ensure the position and velocity tracking errors of each following quadrotor UAV converge to the small region around zero in a fixed time. To substantiate the effectiveness and superiority of our approach, simulation results are presented, showcasing its impressive performance in quadrotor UAV formation cooperative tracking tasks. Prescribed-time formation control, which does not rely on initial values and control parameters, represents a future research direction.

It is important to note that the current fixed-time control’s convergence time depends on controller parameters. Practical issues such as collision avoidance and disturbances also need consideration. Consequently, future research will investigate a simplified prescribed-time control strategy to enable user-specified settling times, alongside the design of integrated collision avoidance mechanisms.