Next Article in Journal
Parameter Estimation of Geographically and Temporally Weighted Elastic Net Ordinal Logistic Regression
Previous Article in Journal
Limit Theorems for the Non-Convex Multispecies Curie–Weiss Model
Previous Article in Special Issue
SwinDenoising: A Local and Global Feature Fusion Algorithm for Infrared Image Denoising
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adaptive Terminal Sliding Mode Control for a Quadrotor System with Barrier Function Switching Law

College of Locomotive and Rolling Stock Engineering, Guangzhou Railway Polytechnic, Guangzhou 511370, China
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(8), 1344; https://doi.org/10.3390/math13081344
Submission received: 24 March 2025 / Revised: 13 April 2025 / Accepted: 14 April 2025 / Published: 19 April 2025
(This article belongs to the Special Issue Deep Learning and Adaptive Control, 3rd Edition)

Abstract

:
This study presents a novel finite-time robust control framework for quadrotor systems subjected to model uncertainties and unknown external disturbances. A fast terminal sliding mode (FTSM) manifold is first constructed to achieve finite-time convergence of tracking errors. To address the challenges posed by uncertain system dynamics, a radial basis function neural network (RBFNN) is integrated for real-time approximation of unknown nonlinearities. In addition, an adaptive gain regulation mechanism based on a barrier Lyapunov function (BLF) is developed to ensure boundedness of system trajectories while enhancing robustness without requiring prior knowledge of disturbance bounds. The proposed control scheme guarantees finite-time stability, strong robustness, and precise trajectory tracking. Numerical simulations substantiate the efficacy and superiority of the proposed method in comparison with existing control approaches.

1. Introduction

In recent years, quadrotor unmanned aerial vehicles (UAVs) have garnered significant attention across various industries due to their compact structure and high maneuverability [1,2,3]. However, the inherent strong nonlinearity, high coupling, and time-varying dynamics of the quadrotor systems [4], combined with the uncertainties and unknown external disturbances commonly encountered in practical applications, pose significant challenges for achieving precise control [5,6]. Traditional control methods, such as proportional–integral–derivative (PID) control [7] and linear quadratic regulator (LQR) [8], often struggle to deliver satisfactory performance in the presence of model uncertainties and disturbances.
Sliding mode control (SMC) has emerged as an effective approach due to its strong robustness against uncertainties [9,10,11,12,13,14]. To tackle the challenge of quadrotor UAVs’ high sensitivity due to small moments of inertia and external disturbances, a synthesized SMC approach has been introduced [15]. This method integrates a novel adaptive law, improving convergence speed and robustness while efficiently mitigating external disturbances. In [16], to address the challenges of implementing adaptive SMC in quadrotors for real-world scenarios, a complete control architecture was proposed. In [17], to address the challenges of model uncertainties and unknown external disturbances in quadrotor UAVs, an event-triggered control technique based on adaptive barrier function higher-order global SMC was proposed. This approach aims to extend the sampling interval of control signal updates while ensuring system stability and improving overall efficiency. Building on fuzzy control’s well-documented capability for uncertainty handling [18], an innovative neuro-fuzzy sliding mode control scheme specifically designed for quadrotor UAV systems was introduced in [19]. However, conventional SMC methods may suffer from chattering and sensitivity to unknown dynamics, which can degrade overall control performance [20,21], this motivated us to conduct further research.
To enhance the robustness and adaptability of SMC, adaptive neural network-based control strategies have been extensively explored. RBFNNs have demonstrated excellent approximation capabilities, allowing for real-time compensation for system uncertainties and identification of unknown dynamics [22,23,24,25,26]. In [27], to address the attitude stabilization problem of UAVs, such as quadrotors, under uncertain inertia, external disturbances, and actuator faults within a predefined time, an adaptive RBFNN control approach was proposed. This approach ensures state convergence within a predefined time while effectively estimating system uncertainties to enhance control performance. In [28], to address the challenge of uncertain disturbances, all disturbances were treated as a lumped disturbance, and an RBFNN was proposed to compensate for the output of the controllers. In [29], to address the challenge of maintaining attitude control performance in quadrotor helicopters under varying operating conditions and time-varying disturbances, an RBFNN was proposed. The RBFNN, trained using gradient descent-based supervised learning, is implemented as a supervisor neural network controller to enhance robustness.
Furthermore, incorporating a BLF into the control design ensures that system states remain within predefined safe limits, thereby enhancing stability and robustness [30,31,32,33]. In [34], to address the challenge of obstacle avoidance in both the position and attitude control of quadrotor UAVs, a control scheme based on BLF was proposed. By incorporating BLFs into the backstepping process, the quadrotor UAV system was decoupled into position and attitude control subsystems, ensuring effective obstacle avoidance while maintaining trajectory tracking performance. In [35], to address the challenges of UAV tracking control in the presence of actuator faults and external disturbances, an advanced barrier function-based prescribed performance SMC method was proposed. The approach incorporates BLF to counteract the effects of actuator faults and disturbances, enhancing the UAV’s tracking robustness. The above results all indicate that the barrier function is beneficial for enhancing the robustness of the controller. However, how to fully leverage the advantages of both fast terminal sliding mode (TSMC) and linear sliding mode while addressing system uncertainties, and further incorporate the BLF to improve controller robustness, remains an open problem that warrants further investigation.
Motivated by these considerations, this paper proposes an adaptive neural barrier-based TSMC (BTSMC) strategy, with the following key contributions:
(i) A fast TSMC is developed to guarantee finite-time convergence of tracking errors, thereby significantly improving transient response and control precision.
(ii) An adaptive RBFNN compensator is designed to perform the online approximation of an unknown function, effectively addressing system uncertainties.
(iii) A BLF-based adaptive gain adjustment strategy is proposed to dynamically regulate control gains, improving the robustness and stability of the overall control system under varying conditions.
The remainder of this paper is structured as follows: Section 2 presents the mathematical modeling of the quadrotor system. Section 3 elaborates on the proposed control scheme, including sliding mode surface design, neural network compensation, and the BLF-based adaptive mechanism. Section 4 provides simulation results and performance analysis. Finally, Section 5 concludes the paper and discusses potential future research directions.

2. System Description

The Newton–Euler formulation, underpinned by assumptions of rigid-body mechanics, enables the derivation of quadrotor UAV dynamic equations expressed as follows [36,37]:
m ϰ ¨ = P f + P d + P g V R v T = R v T V R v + Q f + Q a + Q g
where ϰ represents the position vector from the center of inertia to the center of mass. The system mass is a positive real number m R + .
The inertia matrix V R 3 × 3 is a constant symmetric positive-definite tensor, formulated as
V = J x 0 0 0 J y 0 0 0 J z
where J i ( i = x , y , z ) denote the inertia values corresponding to the x, y, and z axes. Meanwhile, R v signifies the angular velocity of the quadrotor UAV. The expression is given as follows:
R v = 1 0 sin θ 0 cos ϕ sin ϕ cos θ 0 sin ϕ cos ϕ cos θ ϕ ˙ θ ˙ ψ ˙
where θ , ψ , and Φ represent the pitch, yaw, and roll angles, respectively. P f indicates the total force defined as
P f = cos ϕ cos ψ sin θ + sin ϕ sin ψ cos ϕ sin θ sin ψ sin ϕ cos ψ cos θ cos ϕ i = 1 4 P i
Meanwhile, P i = T p ω i 2 , where T p is associated with lift and ω i stands for the angular velocity of the four rotors. The composite force P d acting along the X, Y, and Z axes is given by
P d = T f d x 0 0 0 T f d y 0 0 0 T f d z R v ˙
where T f d x > 0 , T f d y > 0 , and T f d z > 0 denote the translation drag coefficients. The gravity matrix P g is given by
P g = 0 0 m g
where g stands for the gravitational acceleration, while Q f signifies the torque produced by the four rotors, which can be expressed as
Q f = n ( P 3 P 1 ) n ( P 4 P 2 ) H M ( ω 1 2 ω 2 2 + ω 3 2 ω 4 2 )
where n is the distance from the propeller axis to the UAV center, H M is the drag coefficient, and Q a represents the aerodynamic friction torques, expressed as
Q a = T f a x 0 0 0 T f a y 0 0 0 T f a z R v 2
In this context, T f a x ,   T f a y , and T f a z represent the aerodynamic friction coefficients. Meanwhile, Q g signifies the resultant torques due to the gyroscopic effect, which is expressed as follows:
Q g = i = 1 4 R v T V r 0 0 ( 1 ) i + 1 ω i
where V r represents the rotor inertia. The relationship between the control law and the propeller’s angular velocity is given by
u 1 u 2 u 3 u 4 = T p T p T p T p T p 0 T p 0 0 T p 0 T p H M H M H M H M ω 1 2 ω 2 2 ω 3 2 ω 4 2
In this context, u i   ω i ( i = 1 , 2 , 3 , 4 ) and represents the control inputs and the angular velocity, respectively. They are defined as
ω 1 ω 2 ω 3 ω 4 = T p T p T p T p T p 0 T p 0 0 T p 0 T p H M H M H M H M 1 u 1 u 2 u 3 u 4 1 2
The dynamic model of a quadrotor UAV can be described as follows:
x ¨ = 1 m [ T f a x x ˙ + ( cos ϕ sin θ cos ψ + sin ϕ sin ψ ) u 1 ] y ¨ = 1 m [ T f a y y ˙ + ( cos ϕ sin θ sin ψ sin ϕ cos ψ ) u 1 ] z ¨ = 1 m [ T f a z z ˙ + ( cos ϕ cos θ ) u 1 ] g ϕ ¨ = 1 I x [ ( I y I z ) ψ ˙ θ ˙ T f a x ϕ ˙ 2 V r Ξ ¯ θ ˙ + n u 2 ] θ ¨ = 1 I y [ ( I z I x ) ψ ˙ ϕ ˙ T f a y θ ˙ 2 + V r Ξ ¯ ϕ ˙ + n u 3 ] ψ ¨ = 1 I z [ ( I x I y ) ϕ ˙ θ ˙ T f a z ψ ˙ 2 + H M u 4 ]
where Ξ ¯ = ω 1 ω 2 + ω 3 ω 4 .
Define the system states x ˙ i = ϕ ˙ , ϕ ¨ , θ ˙ , θ ¨ , ψ ˙ , ψ ¨ , z ˙ , z ¨ T ( i = 1 8 ) . From Equation (12), we have
x ˙ 1 = x 2 x ˙ 2 = f 1 x 4 x 6 + f 2 x 2 2 + f 3 Ξ ¯ x 4 + b 1 u 2 + d ϕ ( t ) x ˙ 3 = x 4 x ˙ 4 = f 4 x 2 x 6 + f 5 x 4 2 + f 6 Ξ ¯ x 2 + b 2 u 3 + d θ ( t ) x ˙ 5 = x 6 x ˙ 6 = f 7 x 2 x 4 + f 8 x 6 2 + b 3 u 4 + d ψ ( t ) x ˙ 7 = x 8 x ˙ 8 = f 9 x 8 g + cos x 1 cos x 3 m u 1 + d z ( t )
Here, u i ( i = 1 , 2 , 3 , 4 ) represent the control inputs, while n j ( j = ϕ , θ , ψ , z ) denote the external disturbances. The parameters are defined as
f 1 = I y I z I x , f 2 = T f a x I x , f 3 = V r I x , f 4 = I z I x I y , f 5 = T f a y I y , f 6 = V r I y , f 7 = I x I y I z , f 8 = T f a z I z , f 9 = T f d z m , b 1 = n I x , b 2 = n I y , b 3 = H M I z .
In order to facilitate the subsequent design of the controller, we further rewrite (13) as follows:
x ˙ 1 = x 2 x ˙ 2 = f ϕ + g ϕ u ϕ + d ϕ ( t ) x ˙ 3 = x 4 x ˙ 4 = f θ + g θ u θ + d θ ( t ) x ˙ 5 = x 6 x ˙ 6 = f ψ + g ψ u ψ + d ψ ( t ) x ˙ 7 = x 8 x ˙ 8 = f z + g z u z + d z ( t )
where f ϕ = f 1 x 4 x 6 + f 2 x 2 2 + f 3 Ξ ¯ x 4 , g ϕ = g 1 , u ϕ = u 2 , f θ = f 4 x 2 x 6 + f 5 x 4 2 + f 6 Ξ ¯ x 2 , g θ = g 2 , u θ = u 3 , f ψ = f 7 x 2 x 4 + f 8 x 6 2 , g ψ = g 3 , u ψ = u 4 , f z = f 9 x 8 g , g z = cos x 1 cos x 3 m , and u z = u 1 .
Lemma 1
([38]). For any constants q and p, the following inequality holds:
q p ξ δ δ | q | δ + 1 ι ξ ι | p | ι
where ξ > 0 , δ > 0 , ι > 0 , and ( δ 1 ) ( ι 1 ) = 1 .
Lemma 2
([39]). For a Lyapunov function V L ( t ) > 0 , if there exist K v < 0 and α > 0 , such that the following is satisfied:
V ˙ L K v V L α
then the Lyapunov function V L ( t ) converges to zero neighbor in finite time.

3. Control Design

Define the tracking errors and their derivatives for the following attitude angles and altitudes:
e ϕ = x 1 x ϕ d e ˙ ϕ = x 2 x ˙ ϕ d e θ = x 1 x θ d e ˙ θ = x 2 x ˙ θ d e ψ = x 1 x ψ d e ˙ ψ = x 2 x ˙ ψ d e z = x 1 x z d e ˙ z = x 2 x ˙ z d
where x ϕ d , x θ d , x ψ d , and x z d correspond to the reference attitude angles ϕ , θ , ψ and altitude z, respectively, and these reference trajectories satisfy the Lipschitz condition.
Based on [14], the nonlinear terminal sliding surface is designed as follows:
s ϕ = a ϕ e ϕ + b ϕ exp λ ϕ t e ϕ ( 1 2 β ϕ ) + e ˙ ϕ s θ = a θ e θ + b θ exp λ θ t e θ ( 1 2 β θ ) + e ˙ θ s ψ = a ψ e ϕ + b ψ exp λ ψ t e ψ ( 1 2 β ψ ) + e ˙ ψ s z = a z e z + b z exp λ z t e z ( 1 2 β z ) + e ˙ z
where a i , b i , i = ϕ , θ , ψ , z are positive constants. λ i and 0 < β i < 1 are designed constants that are related to the convergence time of the sliding mode surface. When 2 β i a i λ i > 0 , i = ϕ , θ , ψ , z , the tracking errors can converge to zero in finite time, respectively, and the convergence time is given by
T i = ln [ 1 + ( exp 2 β i a i t V i β ( 0 ) ) / ν i ] 2 β i a i λ i , i = ϕ , θ , ψ , z
where ν i = 2 ( 1 β i ) β i b i / ( 2 β i a 1 λ i ) .
Remark 1.
For the proposed sliding surface, the exponential term exp λ i t will converge to zero over time. As a result, the sliding surface will switch from a terminal sliding mode surface to a linear sliding mode surface. This design effectively combines the fast convergence of terminal sliding mode with the strong robustness of linear sliding mode.
Taking the derivative of (18) yields
s ˙ ϕ = a ϕ e ˙ ϕ + b ϕ exp λ ϕ t e ϕ 2 β ϕ [ ( 1 2 β ϕ ) e ˙ ϕ λ ϕ e ϕ ] + e ¨ ϕ s ˙ θ = a θ e ˙ θ + b θ exp λ θ t e θ 2 β θ [ ( 1 2 β θ ) e ˙ θ λ θ e θ ] + e ¨ θ s ˙ ψ = a ψ e ˙ ψ + b ψ exp λ ψ t e ψ 2 β ψ [ ( 1 2 β ψ ) e ˙ ψ λ ψ e ψ ] + e ¨ ψ s ˙ z = a z e ˙ z + b z exp λ z t e z 2 β z [ ( 1 2 β ϕ ) e ˙ z λ z e z ] + e ¨ z
Define ζ i = b i exp λ i t e i 2 β i [ ( 1 2 β i ) e ˙ i λ i e i ] , i = ϕ , θ , ψ , z . Combining the UAV system (14), we further obtain
s ˙ ϕ = a ϕ e ˙ ϕ + ζ ϕ + f ϕ + g ϕ u ϕ + d ϕ x ¨ ϕ d s ˙ θ = a θ e ˙ θ + ζ θ + f θ + g θ u θ + d θ x ¨ θ d s ˙ ψ = a ψ e ˙ ψ + ζ ψ + f ψ + g ψ u ψ + d ψ x ¨ ψ d s ˙ z = a z e ˙ z + ζ z + f z + g z u z + d z x ¨ z d
Considering that the nonlinear functions f i , i = ϕ , θ , ψ , z are unknown, we employ an RBFNN to approximate them, defined as W i * T S i ( Ξ i ) + ϵ i = f i , where W i * T is the optimal weight and | ϵ i | > 0 denotes bounded approximation errors. Then, the equivalent control laws are designed as
u e q 1 = 1 g ϕ ( a ϕ e ˙ ϕ ζ ϕ + x ¨ ϕ d W ^ ϕ T S ϕ ( Ξ ϕ ) k ϕ s i g n ( s ϕ ) ) u e q 2 = 1 g θ ( a θ e ˙ θ ζ θ + x ¨ θ d W ^ θ T S θ ( Ξ θ ) k θ s i g n ( s θ ) ) u e q 3 = 1 g ψ ( a ψ e ˙ ψ ζ ψ + x ¨ ψ d W ^ ϕ T S ψ ( Ξ ψ ) k ψ s i g n ( s ψ ) ) u e q 4 = 1 g z ( a z e ˙ z ζ z + x ¨ z d W ^ z T S z ( Ξ z ) k z s i g n ( s z ) )
where W ^ i , i = ϕ , θ , ψ , z denote the estimation weights.
Combining the concept of BLF, the switching control law is designed as follows:
u s w 1 = ϖ ϕ | s ϕ | s i g n ( s ϕ ) ϖ ϕ 2 s i g n ( s ϕ ) d t u s w 2 = ϖ θ | s θ | s i g n ( s θ ) ϖ θ 2 s i g n ( s θ ) d t u s w 3 = ϖ ψ | s ψ | s i g n ( s ψ ) ϖ ψ 2 s i g n ( s ψ ) d t u s w 4 = ϖ z | s z | s i g n ( s z ) ϖ z 2 s i g n ( s z ) d t
where ϖ i , i = ϕ , θ , ψ , z are the time-varying parameters that are defined as
ϖ i ( t , s ) = κ i t + ϱ i , 0 t < t a ϖ b i ( s ) , t t a , i = ϕ , θ , ψ , z
where κ i and ϱ i are positive constants. k a is the set time. | ϖ b i ( s ) | > 0 denotes the BLF, defined as
ϖ b i ( s i ) = μ i η i ( μ i | s i | ) 1 2 , s i ( μ i , μ i )
where η i > 0 denotes a tuning parameter. μ i stands for the boundary constraint such that lim | s i | μ i ϖ b i ( s i ) = + .
Finally, the proposed controller is introduced as
u ϕ = u e q 1 + u s w 1 u θ = u e q 2 + u s w 2 u ψ = u e q 3 + u s w 3 u z = u e q 4 + u s w 4
In addition, the adaptive laws for the RBFNNs is given by
W ^ ˙ ϕ = Γ ϕ ( s ϕ S ϕ ( Ξ ϕ ) + σ ϕ W ^ ϕ ) W ^ ˙ θ = Γ θ ( s θ S θ ( Ξ θ ) + σ θ W ^ θ ) W ^ ˙ ψ = Γ ψ ( s ψ S ψ ( Ξ ψ ) + σ ϕ W ^ ψ ) W ^ ˙ z = Γ z ( s z S z ( Ξ z ) + σ z W ^ z )
Remark 2.
Unlike conventional TSMC strategies, the proposed nonlinear sliding surface (18) design effectively combines the finite-time convergence property of TSMC with the steady-state robustness of linear SMC. Building upon this hybrid architecture, we further introduce an improved reaching law based on BLF methodology in (25), which enables the dynamic adaptation of the reaching law gain according to the instantaneous sliding variable magnitude. This novel integration strategy not only preserves the fast convergence characteristics during the reaching phase but also provides enhanced robustness against matched disturbances through its adaptive gain adjustment mechanism, ultimately achieving superior control performance across both transient and steady-state operating conditions. The flowchart of the proposed control scheme can be seen in Figure 1.
Theorem 1.
Given the closed-loop system with the UAV system (14), the controller (26), and the adaptive RBFNN laws (27), the sliding surface (18) can converge to zero neighborhood in finite time.
Proof. 
A candidate Lyapunov function for stability analysis can be applied as follows:
V = 1 2 i I s i 2 + 1 2 i I W ˜ i T Γ i 1 W ˜ i
where I = { ϕ , θ , ψ , z } is the defined set. W ˜ i = W i * W ^ i is weight error.
Taking the time differential of V gives
V ˙ = i I s i s ˙ i + i I W ˜ i T Γ i 1 ( W ˜ ˙ i ) = i I s i [ k i s i g n ( s i ) W ˜ i T S i ( Ξ i ) + d i ] i I s i [ ϖ i | s i | s i g n ( s i ) + ϖ i 2 s i g n ( s i ) d t ] i I W ˜ i T [ s i S i ( Ξ i ) + σ i W ^ i ] = i I [ k i | s i | + s i d i ] i I ϖ i | s i | 3 2 ϖ i 2 | s i | d t i I σ i W ˜ i T W ^ i i I ρ i | s i | i I ϖ i | s i | 3 2 ϖ i 2 | s i | d t i I σ i W ˜ i T W ^ i
where | d i | d ¯ i is bounded, with d ¯ i as a positive constant. ρ i = k i d ¯ i is positive by selecting a sufficiently large k i .
Based on Lemma 1, we obtain
i I σ i W ˜ i T W ^ i i I σ i ( W ˜ i T W ˜ i ) 1 2 + σ i 2 ( W i * T W i * + 1 )
Then, from (29), we can further have
V ˙ i I ρ i | s i | i I ϖ i | s i | 3 2 ϖ i 2 | s i | d t i I σ i ( W ˜ i T W ˜ i ) 1 2 + σ i 2 ( W i * T W i * + 1 )
Since ϖ b i ( s i ) is a piecewise function, the proof is divided into two parts for the separate analysis:
(i) When 0 t < t a , V ˙ is given by
V ˙ i I ρ i | s i | i I g i ( κ i t + ϱ i ) | s i | 3 2 i I g i ( κ i t + ϱ i ) 2 | s i | d t i I σ i ( W ˜ i T W ˜ i ) 1 2 + σ i 2 ( W i * T W i * + 1 )
Since g i > 0 , κ i > 0 , and ϱ i > 0 , we further have
V ˙ i I ρ i | s i | i I σ i ( W ˜ i T W ˜ i ) 1 2 + σ i 2 ( W i * T W i * + 1 ) 2 ρ i i I ( 1 2 s i 2 ) 1 2 Γ i σ i i I ( W ˜ i T Γ i 1 W ˜ i ) 1 2 + σ i 2 ( W i * T W i * + 1 ) K 1 V 1 2 + C 1
where K 1 = min { 2 ρ i , Γ i σ i } , and C 1 = σ i 2 ( W i * T W i * + 1 ) .
(ii) When t > t a , V ˙ is given by
V ˙ i I ρ i | s i | i I g i μ i η i ( μ i | s i | ) 1 2 | s i | 3 2 i I g i ( μ i η i ( μ i | s i | ) 1 2 ) 2 | s i | d t i I σ i ( W ˜ i T W ˜ i ) 1 2 + σ i 2 ( W i * T W i * + 1 )
Since g i > 0 , κ i > 0 , and ϱ i > 0 , we further have
V ˙ i I ρ i | s i | i I σ i ( W ˜ i T W ˜ i ) 1 2 + σ i 2 ( W i * T W i * + 1 ) 2 ρ i i I ( 1 2 s i 2 ) 1 2 Γ i σ i i I ( W ˜ i T Γ i 1 W ˜ i ) 1 2 + σ i 2 ( W i * T W i * + 1 ) K 1 V 1 2 + C 1
Finally, according to Lemma 2, the function V ultimately converges to a neighborhood of zero in finite time, meaning that the sliding surface s i also converges to a neighborhood of zero in finite time. Then, the trajectory tracking errors of the UAV’s attitude angles and altitude can both converge to zero. □

4. Simulations

In this section, in order to verify the effectiveness of the BTSMC control strategy proposed in this paper, four sets of comparative simulation experiments are designed, focusing on step response and sinusoidal tracking, and comparing the performance with traditional PID control and SMC control under the conditions of external interference and without external interference. These experiments evaluate the tracking performance of attitude angles ϕ , θ , ψ and altitude z under both step and sinusoidal reference inputs, with and without external disturbances.
In the step response experiment, the step values of ϕ , θ , ψ , and z are set to 0.18 rad, 0.1 rad, 0.15 rad, and 0.02 rad, respectively. In the sinusoidal response experiment, the reference signals for ϕ , θ , ψ , and z are defined as sin ( 0.5 t ) , cos ( 0.5 t ) , sin ( t ) , and 0.2 t , respectively. In the disturbance rejection experiment, step disturbances of varying magnitudes are applied to ϕ , θ , ψ , and z at t = 10 , t = 12 , t = 14 , and t = 10 , respectively, during both the step response and sinusoidal response tests. In addition, the control parameters for the proposed BTSMC are as follows: λ i = 4 , a i = 50 , b i = 85 , β i = 0.5 , and k i = 100 . The BLF function parameters are defined as κ i = 2 , μ i = 2.5 , and ρ i = 2 . The parameters for RBFNNs are selected as Γ i = 2 and σ i = 0.001 . The system parameters are displayed in Table 1.
Figure 2 illustrates the tracking performance of the attitude angles ϕ , θ , ψ and altitude z under a step reference input. Figure 3 presents the corresponding tracking errors, showcasing the deviations from the desired trajectories. Figure 4 presents the control input under step responses. Figure 5 depicts the tracking performance under a step response when an external disturbance is introduced at t = 10 s, while Figure 6 provides the corresponding tracking errors in this disturbed scenario. Figure 7 demonstrates the tracking performance of ϕ , θ , ψ , and z under a sinusoidal reference input, and Figure 8 presents the corresponding tracking errors. Figure 9 presents the control input under sinusoidal responses. Figure 10 shows the tracking performance under a sinusoidal reference input with an external disturbance applied at t = 10 s, where as Figure 11 displays the corresponding tracking errors in the presence of the disturbance.
First, it can be observed that in the step response experiments in Figure 2 and Figure 3, the proposed BTSMC achieves faster convergence of the attitude angles ϕ , θ , ψ and altitude z to their desired values compared to PID and SMC [10], with significantly smaller overshoot, indicating better dynamic response characteristics. As shown in Table 2, when comparing the tracking performance of PID, SMC, and BTSMC control strategies, the proposed BTSMC demonstrates superior performance across all RMSE metrics. Specifically, BTSMC achieves the lowest errors in ϕ RMSE (0.01028), θ RMSE (0.00583), ψ RMSE (0.00732), and z RMSE (0.00115), indicating its enhanced precision and stability in dynamic tracking tasks. Furthermore, as shown in Figure 5 and Figure 6, under external disturbances, the PID controller exhibits a large steady-state error, and while SMC improves robustness, it still has a deviation from the predefined trajectory. In contrast, BTSMC, leveraging the adaptive gain adjustment strategy based on the BLF, effectively suppresses the influence of disturbances, resulting in better steady-state accuracy and robustness.
Secondly, for the sinusoidal tracking experiments in Figure 7 and Figure 8, the BTSMC controller also demonstrates superior tracking performance under complex dynamic tracking tasks. Compared to PID, which exhibits significant phase lag and steady-state errors, and SMC, which still suffers from latency issues, BTSMC ensures smoother trajectory tracking while maintaining system stability. The RMSE of tracking errors are displayed in Table 3. Comparative analysis of the tracking error RMSE under three control strategies demonstrates the superior performance of BTSMC. For the attitude angles ϕ , θ , and ψ , the BTSMC errors (0.05263, 0.05235, 0.00685) are 56.4–94.0% lower than those of SMC (0.12071, 0.12393, 0.11346) and over 95% lower than those of PID (1.16690, 1.44250, 1.94510). In altitude z control, BTSMC (0.19168) still achieves the lowest error, highlighting its stability advantage, particularly in dynamic tracking tasks. Moreover, as shown in Figure 10 and Figure 11, under external disturbances, BTSMC maintains strong disturbance rejection capability, enabling the system to closely follow the desired trajectory, whereas both PID and SMC exhibit larger deviations. In summary, the simulation results fully validate the advantages of the proposed BTSMC control strategy in improving tracking accuracy, enhancing robustness, and suppressing chattering, demonstrating its effectiveness and superiority in quadrotor attitude control.
Remark 3.
While the proposed BTSMC demonstrates superior tracking performance, its effectiveness relies heavily on the appropriate selection of control parameters. For example, an improperly selected constraint value of the barrier function may lead to the failure of the reaching law. Future work will explore dynamically adaptive parameters for the barrier function to further enhance the robustness of the controller.

5. Conclusions

In this paper, a novel BTSMC strategy was proposed for quadrotor attitude control under system uncertainties and external disturbances. A fast terminal sliding mode surface was designed to ensure finite-time convergence of tracking errors, and an RBF neural network was incorporated to compensate for system uncertainties. Additionally, an adaptive gain adjustment mechanism based on the BLF was introduced to enhance the robustness of the controller. Comprehensive simulation experiments were conducted to evaluate the proposed control strategy under both step and sinusoidal reference inputs, with and without external disturbances. The results demonstrated that, compared to conventional PID and SMC controllers, the proposed BTSMC achieved faster convergence, reduced overshoot, and improved tracking accuracy. Specifically, BTSMC outperformed PID and SMC controllers with average RMSE improvements of 15.74% and 6.57% in step responses, and 77.01% and 53.47% in sinusoidal responses, respectively. Furthermore, BTSMC effectively suppressed chattering and exhibited strong robustness against external disturbances, ensuring precise trajectory tracking even under uncertain conditions. Future work will also consider extending the method to multi-agent systems and investigating its scalability for more complex, high-dimensional control tasks.

Author Contributions

Conceptualization, J.Z.; methodology, J.Z.; software, X.L.; validation, J.Z.; formal analysis, Q.Y.; investigation, Q.Y.; resources, Q.Y.; data curation, J.Z.; writing—original draft preparation, J.Z. and X.L.; supervision, X.L. and J.Z.; project administration, J.Z.; funding acquisition, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Guangzhou Railway Vocational and Technical College’s newly introduced talent research start-up project—Research on EMU equipment fault prediction and digital maintenance technology (GTXYR2436)—and is supported by 2024 Guangzhou higher education teaching quality and teaching reform project—EMU equipment fault prediction and maintenance technology integration training base (2024CJRHJD003).

Data Availability Statement

No new data were created or analyzed in this study.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Qi, J.; Guo, J.; Wang, M.; Wu, C.; Ma, Z. Formation tracking and obstacle avoidance for multiple quadrotors with static and dynamic obstacles. IEEE Robot. Autom. Lett. 2022, 7, 1713–1720. [Google Scholar] [CrossRef]
  2. Elyaalaoui, K.; Labbadi, M.; Boubaker, S.; Kamel, S.; Alsubaei, F.S. On novel fractional-order trajectory tracking control of quadrotors: A predefined-time guarantee performance approach. Mathematics 2023, 11, 3582. [Google Scholar] [CrossRef]
  3. Li, Z.; Wang, Q.; Zhang, T.; Ju, C.; Suzuki, S.; Namiki, A. UAV high-voltage power transmission line autonomous correction inspection system based on object detection. IEEE Sensors J. 2023, 23, 10215–10230. [Google Scholar] [CrossRef]
  4. Yan, D.; Zhang, W.; Chen, H.; Shi, J. Robust control strategy for multi-UAVs system using MPC combined with Kalman-consensus filter and disturbance observer. ISA Trans. 2023, 135, 35–51. [Google Scholar] [CrossRef]
  5. Wen, G.; Hao, W.; Feng, W.; Gao, K. Optimized backstepping tracking control using reinforcement learning for quadrotor unmanned aerial vehicle system. IEEE Trans. Syst. Man Cybern. Syst. 2021, 52, 5004–5015. [Google Scholar] [CrossRef]
  6. Borbolla-Burillo, P.; Sotelo, D.; Frye, M.; Garza-Castañón, L.E.; Juárez-Moreno, L.; Sotelo, C. Design and Real-Time Implementation of a Cascaded Model Predictive Control Architecture for Unmanned Aerial Vehicles. Mathematics 2024, 12, 739. [Google Scholar] [CrossRef]
  7. Ulu, B.; Savaş, S.; Ergin, Ö.F.; Ulu, B.; Kırnap, A.; Bingöl, M.S.; Yıldırım, Ş. Tuning the Proportional–Integral–Derivative Control Parameters of Unmanned Aerial Vehicles Using Artificial Neural Networks for Point-to-Point Trajectory Approach. Sensors 2024, 24, 2752. [Google Scholar] [CrossRef]
  8. Hanif, A.; Putro, I.; Riyadl, A.; Sudiana, O.; Hakiki; Irwanto, H.Y. Towards High-Precision Quadrotor Trajectory Following Capabilities: Modelling, Parameter Estimation, and LQR Control. Latv. J. Phys. Tech. Sci. 2024, 61, 89–104. [Google Scholar] [CrossRef]
  9. Hou, Z.; Lu, P.; Tu, Z. Nonsingular terminal sliding mode control for a quadrotor UAV with a total rotor failure. Aerosp. Sci. Technol. 2020, 98, 105716. [Google Scholar] [CrossRef]
  10. Mofid, O.; Mobayen, S. Adaptive sliding mode control for finite-time stability of quad-rotor UAVs with parametric uncertainties. ISA Trans. 2018, 72, 1–14. [Google Scholar] [CrossRef]
  11. Shao, X.; Sun, G.; Yao, W.; Liu, J.; Wu, L. Adaptive sliding mode control for quadrotor UAVs with input saturation. IEEE/ASME Trans. Mechatronics 2021, 27, 1498–1509. [Google Scholar] [CrossRef]
  12. Eltayeb, A.; Rahmat, M.F.; Basri, M.A.M. Sliding mode control design for the attitude and altitude of the quadrotor UAV. Int. J. Smart Sens. Intell. Syst. 2020, 13, 1. [Google Scholar] [CrossRef]
  13. Wang, Q.; Wang, W.; Suzuki, S.; Namiki, A.; Liu, H.; Li, Z. Design and implementation of UAV velocity controller based on reference model sliding mode control. Drones 2023, 7, 130. [Google Scholar] [CrossRef]
  14. Fu, D.; Zhao, X.; Zhu, J. A novel robust super-twisting nonsingular terminal sliding mode controller for permanent magnet linear synchronous motors. IEEE Trans. Power Electron. 2021, 37, 2936–2945. [Google Scholar] [CrossRef]
  15. Baek, J.; Kang, M. A synthesized sliding-mode control for attitude trajectory tracking of quadrotor UAV systems. IEEE/ASME Trans. Mechatronics 2023, 28, 2189–2199. [Google Scholar] [CrossRef]
  16. Villa, D.K.; Brandão, A.S.; Sarcinelli-Filho, M. Adaptive sliding mode control applied to quadrotors—A practical comparative study. J. Frankl. Inst. 2023, 360, 11578–11599. [Google Scholar] [CrossRef]
  17. Liu, B.; Wang, Y.; Sepestanaki, M.A.; Pouzesh, M.; Mobayen, S.; Rouhani, S.H.; Fekih, A. Event-trigger-based adaptive barrier function higher-order global sliding mode control technique for quadrotor UAVs. IEEE Trans. Aerosp. Electron. Syst. 2024, 60, 5674–5684. [Google Scholar] [CrossRef]
  18. Liu, Z.G.; Shi, Y.Y.; Sun, W.; Su, S.F. Direct Fuzzy Adaptive Regulation for High-Order Delayed Systems: A Lyapunov–Razumikhin Function Method. IEEE Trans. Cybern. 2024, 54, 1894–1906. [Google Scholar] [CrossRef]
  19. Madebo, M.M. Neuro-fuzzy based Adaptive Sliding Mode Control of Quadrotor UAV in the Presence of Matched and Unmatched Uncertainties. IEEE Access 2024, 12, 117745–117760. [Google Scholar] [CrossRef]
  20. Nguyen, N.P.; Oh, H.; Moon, J. Continuous nonsingular terminal sliding-mode control with integral-type sliding surface for disturbed systems: Application to attitude control for quadrotor UAVs under external disturbances. IEEE Trans. Aerosp. Electron. Syst. 2022, 58, 5635–5660. [Google Scholar] [CrossRef]
  21. Yang, T.; Deng, Y.; Li, H.; Sun, Z.; Cao, H.; Wei, Z. Fast integral terminal sliding mode control with a novel disturbance observer based on iterative learning for speed control of PMSM. ISA Trans. 2023, 134, 460–471. [Google Scholar] [CrossRef] [PubMed]
  22. Mo, H.; Farid, G. Nonlinear and adaptive intelligent control techniques for quadrotor uav—A survey. Asian J. Control. 2019, 21, 989–1008. [Google Scholar] [CrossRef]
  23. Chen, Q.; Zhang, J.; Zhang, C.; Zhou, H.; Jiang, X.; Yang, F.; Wang, Y. CFD analysis and RBFNN-based optimization of spraying system for a six-rotor unmanned aerial vehicle (UAV) sprayer. Crop Prot. 2023, 174, 106433. [Google Scholar] [CrossRef]
  24. Shu, R.; Jia, Q.; Wu, Y.; Liao, H.; Zhang, C. Robust Active Fault-Tolerant Configuration Control for Spacecraft Formation via Learning RBFNN Approaches. J. Aerosp. Eng. 2024, 37, 04024007. [Google Scholar] [CrossRef]
  25. Xiong, J.J.; Guo, N.H.; Mao, J.; Wang, H.D. Self-tuning sliding mode control for an uncertain coaxial octorotor UAV. IEEE Trans. Syst. Man Cybern. Syst. 2022, 53, 1160–1171. [Google Scholar] [CrossRef]
  26. Mahmood, A.; ur Rehman, F.; Okasha, M.; Saeed, A. Neural adaptive sliding mode control for camera positioner quadrotor UAV. Int. J. Aeronaut. Space Sci. 2024, 26, 733–747. [Google Scholar] [CrossRef]
  27. Ranjan, S.; Majhi, S. Adaptive neural predefined-time attitude control of an uncertain quadrotor UAV with actuator fault. IEEE Trans. Circuits Syst. II Express Briefs 2024, 71, 4939–4943. [Google Scholar] [CrossRef]
  28. Wang, K.; Liu, Y.; Huang, C.; Bao, W. Water surface flight control of a cross domain robot based on an adaptive and robust sliding mode barrier control algorithm. Aerospace 2022, 9, 332. [Google Scholar] [CrossRef]
  29. Adıgüzel, F.; Kurtuluş, K.; Türker, T. A Gain Scheduling Attitude Controller with NN Supervisor for Quadrotor UAVs. Int. J. Control Autom. Syst. 2024, 22, 3777–3791. [Google Scholar] [CrossRef]
  30. Husain, S.S.; Al-Dujaili, A.Q.; Jaber, A.A.; Humaidi, A.J.; Al-Azzawi, R.S. Design of a robust controller based on barrier function for vehicle steer-by-wire systems. World Electr. Veh. J. 2024, 15, 17. [Google Scholar] [CrossRef]
  31. Tian, D.; Song, X. Addressing complex state constraints in the integral barrier Lyapunov function-based adaptive tracking control. Int. J. Control 2023, 96, 1202–1209. [Google Scholar] [CrossRef]
  32. Wang, D.; Liu, S.; He, Y.; Shen, J. Barrier Lyapunov function-based adaptive back-stepping control for electronic throttle control system. Mathematics 2021, 9, 326. [Google Scholar] [CrossRef]
  33. Wang, Y.; Wang, X.; Liu, C.; Zhang, H.; Zhou, H.; Zhang, X.; Wang, H. State-constrained control strategy for safe navigation trajectory tracking of hovercraft based on improved barrier Lyapunov function. Ocean Eng. 2024, 303, 117791. [Google Scholar] [CrossRef]
  34. Fu, L.; An, L.; Zhang, L. Attitude-position obstacle avoidance of trajectory tracking control for a quadrotor UAV using barrier functions. Int. J. Syst. Sci. 2024, 55, 3337–3354. [Google Scholar] [CrossRef]
  35. Mobayen, S.; Hsia, K.H.; Mofid, O.; Moosapour, S.S.; Rojsiraphisal, T. Robust UAV tracker under actuator faults and external disturbances using a barrier function-based prescribed performance sliding mode control approach. Int. J. Dyn. Control 2025, 13, 108. [Google Scholar] [CrossRef]
  36. Li, J.; Li, Y. Dynamic analysis and PID control for a quadrotor. In Proceedings of the 2011 IEEE International Conference on Mechatronics and Automation, Beijing, China, 7–10 August 2011; pp. 573–578. [Google Scholar]
  37. Fernando, H.; De Silva, A.; De Zoysa, M.; Dilshan, K.; Munasinghe, S. Modelling, simulation and implementation of a quadrotor UAV. In Proceedings of the 2013 IEEE 8th International Conference on Industrial and Information Systems, Kandy, Sri Lanka, 17–20 December 2013; pp. 207–212. [Google Scholar]
  38. Liu, S.; Jiang, B.; Mao, Z.; Zhang, Y. Neural-network-based adaptive fault-tolerant cooperative control of heterogeneous multiagent systems with multiple faults and DoS attacks. IEEE Trans. Neural Netw. Learn. Syst. 2023, 35, 6273–6285. [Google Scholar] [CrossRef]
  39. Sun, W.; Diao, S.; Su, S.F.; Sun, Z.Y. Fixed-time adaptive neural network control for nonlinear systems with input saturation. IEEE Trans. Neural Netw. Learn. Syst. 2021, 34, 1911–1920. [Google Scholar] [CrossRef]
Figure 1. Flowchart of the control scheme.
Figure 1. Flowchart of the control scheme.
Mathematics 13 01344 g001
Figure 2. Comparison diagram of tracking effect under step response.
Figure 2. Comparison diagram of tracking effect under step response.
Mathematics 13 01344 g002
Figure 3. Comparison diagram of tracking error under step response.
Figure 3. Comparison diagram of tracking error under step response.
Mathematics 13 01344 g003
Figure 4. Control input of BTSMC under step response.
Figure 4. Control input of BTSMC under step response.
Mathematics 13 01344 g004
Figure 5. Comparison diagram of tracking effect under step response with disturbance.
Figure 5. Comparison diagram of tracking effect under step response with disturbance.
Mathematics 13 01344 g005
Figure 6. Comparison diagram of tracking error under step response with disturbance.
Figure 6. Comparison diagram of tracking error under step response with disturbance.
Mathematics 13 01344 g006
Figure 7. Comparison diagram of tracking effect under sinusoidal response.
Figure 7. Comparison diagram of tracking effect under sinusoidal response.
Mathematics 13 01344 g007
Figure 8. Comparison diagram of tracking error under sinusoidal response.
Figure 8. Comparison diagram of tracking error under sinusoidal response.
Mathematics 13 01344 g008
Figure 9. Control input of BTSMC under sinusoidal response.
Figure 9. Control input of BTSMC under sinusoidal response.
Mathematics 13 01344 g009
Figure 10. Comparison diagram of tracking effect under sinusoidal response with disturbance.
Figure 10. Comparison diagram of tracking effect under sinusoidal response with disturbance.
Mathematics 13 01344 g010
Figure 11. Comparison diagram of tracking error under sinusoidal response with disturbance.
Figure 11. Comparison diagram of tracking error under sinusoidal response with disturbance.
Mathematics 13 01344 g011
Table 1. Parameter values.
Table 1. Parameter values.
ParameterValueUnitParameterValueUnit
m1.4kg T f a z 6.6840 × 10−4N/rad/s
d0.225m T f d x 5.3270 × 10−4N/m/s
J x 0.0211N m/rad/s2 T f d y 5.3270 × 10−4N/m/s
J y 0.0219N m/rad/s2 T f d z 6.6840 × 10−4N/m/s
J z 0.0366N m/rad/s2 K P 2.9742 × 10−3N/m/rad/s
T f a x 5.3270 × 10−4N/rad/s C d 3.4320 × 10−2N m/rad/s
T f a y 5.3270 × 10−4N/rad/s J r 2.8365 × 10−5N m/rad/s2
Table 2. The RSME of tracking errors under step response.
Table 2. The RSME of tracking errors under step response.
RMSEPIDSMCBTSMC
ϕ 0.013350.010500.01028
θ 0.005930.005920.00583
ψ 0.009810.009260.00732
z0.001320.001170.00115
Table 3. The RSME of tracking errors under sinusoidal response.
Table 3. The RSME of tracking errors under sinusoidal response.
RMSEPIDSMCBTSMC
ϕ 1.166900.120710.05263
θ 1.442500.123930.05235
ψ 1.945100.113460.00685
z0.229680.203430.19168
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhu, J.; Long, X.; Yuan, Q. Adaptive Terminal Sliding Mode Control for a Quadrotor System with Barrier Function Switching Law. Mathematics 2025, 13, 1344. https://doi.org/10.3390/math13081344

AMA Style

Zhu J, Long X, Yuan Q. Adaptive Terminal Sliding Mode Control for a Quadrotor System with Barrier Function Switching Law. Mathematics. 2025; 13(8):1344. https://doi.org/10.3390/math13081344

Chicago/Turabian Style

Zhu, Jiangting, Xionghui Long, and Quan Yuan. 2025. "Adaptive Terminal Sliding Mode Control for a Quadrotor System with Barrier Function Switching Law" Mathematics 13, no. 8: 1344. https://doi.org/10.3390/math13081344

APA Style

Zhu, J., Long, X., & Yuan, Q. (2025). Adaptive Terminal Sliding Mode Control for a Quadrotor System with Barrier Function Switching Law. Mathematics, 13(8), 1344. https://doi.org/10.3390/math13081344

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop