1. Introduction
With the continuous iteration and evolution of robotics technology, its application value and importance in human production and daily life have become increasingly prominent [
1]. As a key branch of aerial mobile robots, UAVs can be equipped with various types of sensors to provide efficient and accurate technical support and solutions for many fields such as equipment status inspection [
2], cultural heritage protection [
3], and search and rescue [
4]. Quadrotor UAVs have been widely used as UAV platforms due to their advantages including agile maneuverability, vertical take-off and landing, and simple operation [
5]. When performing operational tasks, quadrotor UAVs often need to track a predefined route; thus, achieving fast, accurate, and stable trajectory tracking control is a core objective in the design of quadrotor UAV flight control algorithms. However, the quadrotor UAV system exhibits strong nonlinearity, multivariable coupling, and high susceptibility to external disturbances, which pose numerous technical challenges to research on trajectory tracking control. Driven by these complex control requirements, trajectory tracking control technology for quadrotor UAVs has received significant attention from the academic community in recent years [
6].
To address the trajectory tracking control problem faced by quadrotor UAVs, researchers have proposed a variety of control methods. Currently, the PID control method is the most widely used in quadrotor UAV engineering applications. Traditional PID control offers advantages such as a simple structure and ease of implementation; however, when the control system is subjected to external disturbances or parameter perturbations, PID control suffers from low tracking accuracy and poor stability [
7]. The authors of Reference [
8] proposed an adaptive PID control algorithm that enhances the robustness of the control system. Tiep [
9] applied fuzzy control to adjust the parameters of the quadrotor UAV PID controller in real time for trajectory tracking. This approach not only ensured the optimal dynamic performance of the UAV but also effectively reduced its trajectory tracking error. A nonlinear model of the vehicle was adopted for mass identification; specifically, the weighted recursive least squares (WRLS) method was employed for online identification to tune the PID controller, which effectively reduced the adverse effects of noise and external disturbances on the system [
10]. Although the control schemes in these studies improve the stability of UAV trajectory tracking to a certain extent, with the increase in the complexity of trajectory tracking, the impact of the UAV’s nonlinear characteristics on system stability becomes more significant—this leads to notable degradation in the trajectory tracking performance of linear control methods such as PID control [
11].
As a nonlinear control algorithm, SMC exhibits excellent robustness and has been widely applied in flight control systems in recent years [
12]. The authors of Reference [
13] introduced an adaptive switching gain into the control law of SMC and proposed an adaptive sliding mode control method, which achieves fast adaptation to parameter uncertainties and external disturbances as well as ensures robustness in UAV navigation and control. The control scheme designed in Reference [
14] combined SMC with backstepping control, enhancing the rapidity and robustness of the latter. Notably, SMC not only improves the robustness of UAV systems but also endows them with favorable capability against external disturbances. In Reference [
15], an SMC controller that enhanced the robustness of UAV systems subjected to bounded disturbances was developed. A dual-loop control system was proposed in Reference [
16], where a backstepping sliding mode controller was designed for the inner loop, while an integral sliding mode controller was constructed for the outer loop—this configuration ensured the position tracking capability of quadrotors even under severe, uncertain disturbances. The authors of Reference [
17] designed an SMC controller for UAV systems subjected to external disturbances and parameter uncertainties, achieving excellent tracking performance in both simulations and flight tests. In terminal sliding mode control (TSMC) [
18,
19], the linear sliding mode surface is formulated as a nonlinear function. This modification not only ensures the finite-time reaching of the sliding mode surface but also guarantees the finite-time convergence of system outputs, thereby improving the convergence speed of SMC. The global fast terminal sliding mode controller proposed in Reference [
20] enabled UAV systems to track the desired position within finite time. The authors of Reference [
21] proposes an adaptive fast nonsingular terminal sliding mode control scheme. By integrating fast nonsingular terminal sliding mode control with adaptive estimation technology, it effectively improves the system’s tracking performance and enhances the chattering suppression effect. The authors of Reference [
22] applied the TSMC algorithm to both the position loop and attitude loop, and integrated a sliding mode disturbance observer with the TSMC controller of the attitude loop, which strengthened the system’s capability against external disturbances. A sliding mode observer was also introduced in Reference [
23], ensuring the system’s anti-disturbance capability and finite-time convergence. In Reference [
24], neural networks were combined with TSMC and used to approximate unknown quantities, which not only improved the system’s robustness against uncertainties but also enhanced the system’s speed in tracking the desired attitude. To address the attitude control challenge of quadrotor UAVs under uncertainties and external disturbances, Kahouadji, M. [
25] proposed a Super Twisting control scheme, which aims to reduce control effort and improve trajectory tracking accuracy.
This paper focuses on the trajectory tracking control problem faced by quadrotor UAVs and proposes a trajectory tracking control scheme based on the GFTSMC algorithm. Firstly, a dual-closed-loop control model consisting of the position loop and attitude loop of quadrotor UAVs is established, which transforms the trajectory tracking problem into a command tracking problem for these loops. During the modeling process, the gyroscopic moment of the UAV rotors is taken into account, resulting in a more accurate model. Secondly, the terminal sliding mode control (TSMC) algorithm is improved by incorporating double power terms into both the terminal sliding mode surface and the reaching law. On this basis, global fast terminal sliding mode controllers are constructed for the position loop and attitude loop. Additionally, the Lyapunov method is employed to prove the stability of the proposed controllers. Finally, comparative numerical simulation experiments are conducted, the results of which verify the effectiveness and superiority of the proposed control algorithm. The main contributions of this paper are as follows: the GFTSMC controller improves the rapidity of trajectory tracking for quadrotor UAVs, enhances the anti-disturbance capability of the quadrotor UAV system, and ensures faster and more stable trajectory tracking control. The saturated function is adopted to replace the sign function in the switching term, which ensures the continuity of the control input and reduces the chattering generated during the control process.
2. Quadrotor Dynamics Modeling and Control Framework
To achieve high-fidelity trajectory tracking, we first establish a six-degree-of-freedom (6-DoF) dynamics model of the quadrotor, explicitly accounting for gyroscopic effects in the rotors. Then, the trajectory tracking control problem facing the quadrotor UAV is transformed into the tracking control problem of the position loop and the attitude loop in a double-closed-loop control system, establishing an overall control scheme for the quadrotor UAV.
2.1. Modeling of Quadrotor Unmanned Aerial Vehicle
The power system of the quadrotor drone is driven by four sets of rotor motors, with dynamic control of flight attitude and spatial position achieved by adjusting the speed of each motor. To accurately characterize the spatial state of quadrotor drones, the following two coordinate systems are defined, as shown in
Figure 1:
Inertial frame : Earth-fixed reference with upward.
Body frame : Origin at the quadrotor’s center of mass, with aligned with the heading direction.
The rotation matrix
from the body frame to the inertial frame is
where
,
,and
denote the roll, pitch, and yaw angles, and
and
denote
and
respectively; this rule also applies to the parameters
and
.
The translational and rotational dynamics are derived via the Newton–Euler method [
26]:
Here,
is the quadrotor mass,
represents the inertial acceleration of the drone,
denotes the moment-of-inertia tensor, and
is the gravity acting on the drone.
represents the combined internal and external disturbances acting on the UAV’s position variables, where
,
, and
denote disturbance along the x-, y-, and z-axes. Meanwhile,
represents the combined internal and external disturbances affecting the UAV’s attitude variables, where
,
, and
denote disturbance in the roll, pitch, and yaw angles.
denotes the sum of the lift moments generated by the rotor blades,
denotes the reaction torque produced by air resistance on the rotor [
27], and
denotes the gyroscopic torque of the rotor.
represents the total lift force generated by rotor rotation, expressed as
where
is the thrust coefficient, and
denotes the rotational speed of the
-th rotor motor.
The expression for the total moment of the quadrotor UAV is as follows:
where
is the distance from the rotor to the UAV’s center of mass, and
is the rotating propeller’s moment of inertia.
is the rotational drag coefficient, characterizing the aerodynamic resistance during rotor rotation.
represents the rotational angular velocity of the motor shaft, defined as
.
denotes the angular velocity vector of the UAV in the body frame. Under small-angle approximation (
,
≈ 0), its relationship with attitude–angle derivatives is given by [
28]
Under small-angle assumptions, the 6-DoF dynamics simplify to
The control inputs
(total thrust),
,
, and
(roll/pitch/yaw moments) are as follows:
2.2. Problem Formulation and Control Decoupling
Given the desired trajectory and yaw angle , the quadrotor trajectory tracking problem is decoupled into position and attitude control. In position control, is adjusted through thrust . In attitude control, is tracked while roll and pitch are treated as intermediate variables (rather than direct control targets). Due to the underactuated and strongly coupled nature of quadrotor dynamics, simultaneous control of all six degrees of freedom is infeasible. Thus, we design four control inputs to stabilize at desired values, and we let and be implicitly regulated by position errors.
Define virtual control inputs
for position error dynamics as follows:
Based on (8), solve for total thrust
and the desired roll/pitch angles
:
The attitude controller computes
using errors in
to achieve roll/pitch tracking for position stabilization and direct yaw control for orientation. The four control inputs
are mapped to rotor speeds
via (7). The overall control architecture of the quadrotor UAV adopts a dual-loop control scheme, as shown in
Figure 2. It consists of an outer (position) loop that generates
from trajectory errors and an inner (attitude) loop that computes
for attitude tracking.
3. Controller Design and Stability Analysis
3.1. Position-Loop Controller Design
Given the identical design principles for x-, y-, and z-axis position controllers, we represent the design using z-axis dynamics by combining (6) and (8) as follows:
The following global fast terminal sliding mode surface is proposed:
where
denotes the position tracking error.
,
, and
.
To enhance convergence dynamics, the following dual power reaching law is introduced:
where
,
,
, and
, with
being the disturbance bound.
In the operation of the control system, the double power approximation law realizes dynamic optimization through its unique dual-modal adjustment mechanism. When there is a large deviation between the system state and the sliding mode surface, the high-power term (index greater than one) is used as the dominant factor to accelerate the convergence of the system to the sliding mode surface. As the sliding surface is approached, the low power term (exponent less than one) becomes the dominant factor, serving the same function. The two items in the double power approach law work synergistically in the process of system stabilization, so as to effectively improve the dynamic characteristics of the approach process and significantly enhance the stability performance of the system in the global range.
By differentiating (11), we obtain
The z-axis controller is designed as follows based on Equations (12) and (13):
To avoid singularity issues (caused by
), the following saturation function is applied:
where
is the saturation threshold and
.
The full position-loop controller for the (x, y, z) axes is
where
,
, and
represent position tracking errors along the x-, y-, and z-axes, respectively.
,
, and
denote the sliding surfaces for the three axes.
,
, and
are high power exponents for fast convergence, while
,
, and
are low power exponents for smooth stabilization.
,
,
,
,
,
,
,
, and
are all positive.
3.2. Stability Analysis
Given the symmetric structure of the position-loop controller (16), the stability of all three channels (x, y, z) can be inferred by analyzing any single channel. We select the z-axis for demonstration.
Theorem 1. Consider the second-order z-axis dynamics of the quadrotor UAV (6) with bounded disturbance . If the control input is designed according to the terminal sliding mode control law (12) based on the sliding surface (11), then the sliding variable will reach and remain on the sliding surface within finite time , the tracking error will converge to zero within , and the system is globally finite-time stable.
Proof of Theorem 1. The proof consists of two phases, as shown below.
Phase 1: Finite-time reachability ().
Consider the Lyapunov function candidate
Differentiating
yields
Given
and
,
Selecting
yields
This satisfies the conditions of Lemma 1 [
29], guaranteeing finite-time convergence to
within
where
,
,
, and
.
Phase 2: Finite-time error convergence ().
When
, the system dynamics reduce to
. Through Lemma 2 [
30],
converges to zero in finite time:
.
Conclusion: The tracking error converges to zero within + , proving global finite-time stability. □
Lemma 1 ([
29])
. For a second-order system, if there exists a Lyapunov function satisfyingwhere and , then the system is globally fixed-time stable with settling time Lemma 2 ([
30])
. For a second-order system with sliding surfacewhere and , the equilibrium point is globally asymptotically stable with convergence time 3.3. Attitude-Loop Controller Design
The design principles for all three attitude controllers (, , ) are identical. We demonstrate the design using the roll angle φ as an example.
The roll-angle dynamics are given by
where
The sliding surface can be formulated as
where
,
,
,
.
The dual power reaching law can be expressed as
where
,
,
, and
, with
being the disturbance bound.
The roll-angle controller is formulated as
where
,
, and
.
Based on the roll-angle controller derivation, the complete attitude-loop controller for (
,
,
) can be expressed as
where
,
, and
represent attitude tracking errors.
,
, and
denote the sliding surfaces for three attitude angles.
,
, and
are high power exponents for fast convergence, while
,
, and
are low power exponents for smooth stabilization.
,
,
,
,
,
,
,
,
are all positive.
It can be seen that the tracking-error dynamics and sliding surface, reaching law, and controller design of both the position loop and attitude loop are consistent in form. Consequently, the stability proof for the attitude loop is identical to the analysis process of the position loop. Theorem 1 is also applicable to the attitude loop, and the designed nonsingular terminal sliding mode controller for the attitude loop can guarantee that the tracking error of the attitude-angle states in the system’s attitude loop converges to zero within finite time.
3.4. Stability Analysis of Controllers Under Saturated Functions
To reduce the chattering effect caused by the sign function
in the control law and ensure control continuity, all three sliding mode methods (GFTSMC, NTSMC, SMC) employ a saturation function
instead of the sign function
in Equations (14) and (29) as follows:
where
represents the boundary layer thickness set to
for all controllers to ensure fair comparison.
From the structural characteristics of the position loop and attitude loop controllers, it can be concluded that the controllers have the same form. Therefore, it is only necessary to prove the stability of any single channel, and the stability of the remaining channels can be inferred by analogy. The following takes the z-axis as an example to prove the stability of the controller under saturated functions.
The design of the z-axis controller under saturated functions is as follows:
The proof is divided into two parts. In the first part, it is first proved that the sliding mode variable converges to the boundary layer in finite time. In the second part, it is proved that the sliding mode variable and the error are uniformly ultimately bounded within the boundary layer. The first part has been proved in the previous text, and the proof of the uniform ultimate boundedness of variables in the second part is presented herein.
Theorem 2 (Uniform Ultimate Boundedness [
31])
. For the variable , if there exists a bounded region radius independent of the initial time
, and a convergence time
related only to
and the bound of initial states, such that
when , then the state is uniformly ultimately bounded. Phase 1: is uniformly ultimately bounded.
From
and combined with Equation (12), it can be derived that
where
is a constant. It can thus be concluded that there exists
such that
. Consequently, the sliding mode variable
satisfies the property of ultimate uniform boundedness.
Phase 2: is uniformly ultimately bounded.
Let .
When the error is large (i.e., ), .
If , it follows from the equation that . If , then .
It can thus be concluded that when the error is large, ; this implies the error converges toward the origin and satisfies the property of ultimate uniform boundedness.
When the error is small (i.e., ), it follows from that . Let . Since is independent of , it can be concluded that there exists a time instant such that , which implies satisfies the property of ultimate uniform boundedness.
In summary, there exists a constant such that when .
In conclusion, the designed nonsingular terminal sliding mode controller under saturated functions can ensure that the tracking error of the system state satisfies the property of ultimate uniform boundedness.
4. Simulation and Analysis
4.1. Simulation Setup
To verify the effectiveness of the proposed GFTSMC algorithm, we conducted comprehensive simulations based on the quadrotor UAV model using MATLAB 2020b/Simulink. The structural parameters of the quadrotor UAV system are listed in
Table 1.
The initial position and attitude of the quadrotor are set to 0, with the reference trajectory being a spiral curve as follows: ; ; and . The reference heading angle is .
To simulate the effects of natural wind disturbances during flight, the wind disturbances model is constructed as a composite of two components: steady-state wind disturbance and gradually varying wind disturbance. Steady-state wind disturbance is modeled as a time-invariant constant, with its magnitude set proportional to the UAV mass to ensure that wind-load effects remain gravitationally significant. This scaling ensures that aerodynamic disturbances are physically meaningful relative to gravity. Gradually varying wind disturbance is modeled as band-limited white noise with a mean amplitude of 0.2, sampling frequency of 0.01 s, and a single-sided power spectral density of to represent disturbances caused by random wind gusts and atmospheric turbulence.
The combined wind disturbance is configured such that the wind disturbance remains at 0 for the initial 5 s, while the disturbance conditions subsequent to this period are defined as follows:
where
denote disturbance along the x-, y-, and z-axes.
represent the mass-related fixed disturbances corresponding to the three axes (where m denotes the mass of the UAV).
denotes the gradually varying wind disturbance configured as a white noise signal, with a sampling time
, a sampling frequency
, and a single-sided power spectral density
.
The design of the proposed GFTSMC algorithm’s parameters is outlined below.
Position-loop controller parameters:
= 1.4; ;
= 1.4; ;
, , ; , , ;
; ;
, ,
Attitude-loop controller parameters:
= 1.4; ;
= 1.4; ;
, , ; , , ;
; ;
, , .
To validate the superiority of the proposed algorithm, we conduct simulations comparing GFTSMC to PID control, conventional SMC, and NTSMC.
4.2. Analysis of Simulation Results
In
Figure 3, the curves of three-dimensional trajectory present the 3D trajectory tracking performance of the quadrotor drone under GFTSMC. The results demonstrate that the actual trajectory precisely coincides with the desired trajectory once the UAV enters the prescribed flight path, indicating excellent tracking stability and control accuracy.
Figure 4 presents the three-axis tracking-error response curves of the quadrotor UAV under the four control methods.
Table 2 presents the steady-state convergence time of the four control methods for reaching the desired three-axis positions.
Table 3 presents the maximum tracking error after introducing disturbances of the four control methods. The simulation results show the following:
Tracking-Error Convergence Speed: The steady-state convergence time of GFTSMC for reaching the desired position on the x-axis is 0.13 s. Compared to NTSMC, SMC, and PID control, its steady-state convergence speed is increased by 72.3%, 78.3%, and 95.0%, respectively. For the desired y-axis position, the steady-state convergence time of GFTSMC is 0.64 s; in comparison with NTSMC, SMC, and PID control, this represents a 36%, 54.3%, and 70.0% improvement in steady-state convergence speed, respectively. Regarding the desired z-axis position, GFTSMC has a steady-state convergence time of 0.12 s, with its steady-state convergence speed increased by 60%, 67.5%, and 87.0% compared to NTSMC, SMC, and PID control, respectively. These comparative simulation results indicate that GFTSMC can effectively improve the convergence speed of the quadrotor UAV’s position loop.
Anti-Disturbance Performance: When a disturbance is introduced between 5 and 10 s, GFTSMC exhibits the smallest disturbance error, followed by NTSMC and SMC, while PID control shows the largest disturbance error. Compared to PID control, GFTSMC achieves a significant reduction in steady-state disturbance error, also demonstrating values reduced by 97.3% and 83.1% relative to SMC and NTSMC, respectively. The comparative simulation results demonstrate that GFTSMC can effectively mitigate the impact of external disturbances on system stability and enhance the anti-disturbance capability of the quadrotor UAV’s position loop.
Figure 5 shows the yaw-angle tracking-error response curves of the quadrotor UAV under the four control methods.
Table 2 shows the steady-state convergence time of the four control methods for reaching the desired yaw angle. The simulation results indicate that GFTSMC’s convergence time to reach the desired yaw angle is 0.047 s, which is 0.024 s, 0.027 s, and 2 s less than that of NTSMC, SMC, and PID control, respectively. Compared to PID control, SMC, and NTSMC, the steady-state convergence time of GFTSMC is reduced by 97.7%, 36.5%, and 33.8%, respectively. Therefore, GFTSMC can effectively improve the convergence speed of the attitude loop of the quadrotor UAV.
Figure 6 and
Figure 7 show the virtual control inputs and yaw moment responses. While discontinuity of the control input is an unavoidable issue in sliding mode control, the simulation results show the following:
Control Continuity: Using the saturation function effectively eliminates chattering while maintaining control continuity in GFTSMC.
Control Magnitude: The control input amplitude of GFTSMC is similar to that of NTSMC and SMC. GFTSMC achieves a faster convergence speed with a comparable control input, indicating that its control efficiency is higher.
Figure 8 presents the total-lift response curves of the quadrotor UAV under the four control methods. It can be observed that the lift amplitudes of the UAV across methods are similar; notably, the lift curve of the GFTSMC method does not exhibit significant abrupt changes after being subjected to disturbances, which indicates that the controller has excellent anti-disturbance capability.
The proposed GFTSMC demonstrates the following:
Rapid Convergence: 33.8–97.7% faster settling across all axes.
Precise Tracking: Minimal steady-state error even under disturbances.
Strong Robustness: Effective rejection of wind disturbances.
Practical Implementation: Smooth control inputs suitable for real applications.
These results validate GFTSMC as a superior control strategy for quadrotor trajectory tracking, balancing performance, robustness, and practical implementability.
5. Conclusions
This paper addresses the challenges of rapid response and disturbance rejection in quadrotor UAV trajectory tracking control. By employing a dual-loop decoupled control model and proposing a GFTSMC algorithm, we have developed an advanced trajectory tracking method. The simulation results demonstrate that GFTSMC enhances the rapidity of trajectory tracking control for quadrotor UAVs, strengthens their anti-disturbance capability in trajectory tracking control, ensures fast and stable tracking of the desired trajectory, and supports quadrotor UAVs in accomplishing operational tasks in scenarios demanding high real-time performance, high precision, and strong anti-disturbance.
Considering the increasing complexity of UAV missions, single-UAV operations may no longer meet the demands of emerging applications. Thus, our future research will focus on two key aspects: first, multi-UAV formation control, which involves extending GFTSMC to coordinated multi-agent systems, addressing the issues of inter-agent collision avoidance and formation maintenance, and enhancing swarm-level rapid response and disturbance resilience; second, experimental validation, which includes implementing the proposed algorithms on physical quadrotor platforms and conducting real-world field tests under various environmental conditions. These research directions are intended to advance the capabilities of UAV swarms in complex operational environments, especially for applications that require coordinated perception and action under uncertain conditions.