1. Introduction
Quadrotor unmanned aerial vehicles (QUAVs) have the advantages of simple structure, low cost, vertical takeoff, stable hovering, etc., so they are widely used in civil and military fields [
1]. In the civil field, QUAVs are used in ground monitoring, plant protection in agriculture and forestry, and to combat the COVID-19 pandemic [
2]. However, in certain circumstances, QUAVs may experience mass changes during flight. For example, when using QUAVs to spray fungicide and distribute relief food in public and open places during the period of fighting the COVID-19 pandemic, the total mass of the QUAVs was time-varying [
3] or changed abruptly at a certain moment. Thus, it is crucial to consider the mass change for controlling the QUAVs. Moreover, QUAVs are under-actuated, strongly coupled, and nonlinear systems. They are susceptible to external disturbances [
4] and system model uncertainty. Therefore, stability analysis and controller design for QUAVs are still challenging.
Fortunately, to address these issues, many efforts have been made by scholars in recent years, and some achievements have been accomplished. As a result, a variety of nonlinear robust control methods have been designed, for example, the sliding mode control (SMC) [
5], backstepping control [
6], active disturbance rejection control (ADRC) [
7], adaptive SMC [
8], terminal sliding mode control [
9], neural network control [
10], etc.
SMC has the advantages of robustness, ease of implementation, and fast response speed and is widely used in various control systems [
11]. In [
12], a sliding mode saturation control method was proposed for the altitude and attitude control problem of a QUAV, and the simulation results show that the sliding mode controller has good performance and robustness to disturbances. However, the main drawback of the SMC is chattering phenomena and slow convergence [
13]. Fast terminal sliding mode control (FTSMC) improves the convergence speed of the system by introducing an exponential term sliding mode surface [
14] so that the system converges in a finite time. In [
15], the authors proposed a global fast terminal sliding mode control (GFTSMC) method to control a QUAV, and simulation results verify its superior performance. In [
16], the authors proposed an adaptive sliding mode control (ASMC) method for QUAVs that takes into account input saturation, and simulations were conducted to verify the effectiveness of the proposed control method. However, the proposed method (ASMC) does not consider the anti-chattering phenomenon. In [
17], a new adaptive law was proposed, and it achieves fast adaptation and significant chattering reduction. However, the time-varying mass is not taken into account in all these controllers. This limits the adaptability and anti-chattering phenomenon of the controllers. This paper proposed a control method that is more appropriate for engineering applications due to its strong anti-chattering, strong anti-disturbance, fast convergence speed, and great robustness to system model uncertainty.
Integrated control combining fuzzy control, SMC, and neural network control has become a new research hotspot [
18,
19,
20]. The radial basis function (RBF) neural network was proposed in 1988. Research on RBF networks has shown that RBF neural networks can approximate any nonlinear function with a compact set and arbitrary accuracy [
21]. In [
22], the authors provided a PID control system for QUAV trajectory tracking control that is based on fuzzy control and RBF neural networks. The simulation results demonstrate that the scheme may greatly increase the accuracy and robustness of QUAV trajectory tracking control. The literature shows that the combination of neural network control and PID control can make the controlled system more efficient and stable. However, the QUAV system is essentially nonlinear, and this compound control method has no significant effect on improving the control system’s ability to deal with uncertain changes. In [
23], the authors proposed an improved novel RBF neural network controller. Simulation results show that this method significantly accelerates the system convergence speed and effectively improves the control accuracy. However, the controller only utilizes a single neural network control method with poor overall robustness.
Fuzzy control has the characteristics of not requiring a mathematical model of the controlled object and strong robustness. Fuzzy rules are used to efficiently estimate the sliding mode switching gain, which in turn removes the external disturbance term from the system and eliminates chattering [
24]. In [
25], an adaptive fuzzy sliding mode control scheme was designed for the uncertainty and external disturbance problems in underdriven mechanical systems, and experiments show that the method has good trajectory tracking performance. The control method uses switching variables to reduce fuzzy rules and computation, but this affects how practical the control method is, and it does not completely solve the chattering problem. In [
26], the authors proposed a genetic algorithm-improved fuzzy sliding mode control method to control the position and altitude trajectory of a QUAV, and the simulation results show that the method can not only significantly solve the chattering problem existing in the traditional model (SMC), but also further improve the flying performance of the QUAV. However, the computational complexity of this method is high, and in scenes with high real-time requirements, it may not be able to process the information in time, affecting the control effect. On the other hand, the fuzzy rules are randomly generated and optimized using the genetic algorithm, which avoids relying on expert information but may lead to a lack of reasonableness of the rules.
Summarizing the advantages and disadvantages of the control methods described in the above literature, this paper aims to study QUAVs with external disturbances, system model uncertainty, and time-varying mass, which are currently less studied. It remains necessary and meaningful to achieve some results in this field. This is the main motivation for this paper’s research. In this paper, fuzzy control, the radial basis function (RBF) neural network, and sliding mode control are combined. On this basis, a global fast terminal fuzzy sliding mode control scheme based on the radial basis function (RBF) neural network is proposed for QUAV systems in the presence of external disturbances, system model uncertainty, and time-varying mass. Firstly, the dynamic model of the quadrotor is divided into two subsystems, i.e., an outer-loop control subsystem and an inner-loop control subsystem. Secondly, the time-varying mass and unknown disturbances are estimated using the adaptive laws designed in the ASMC controller, which is used to control the position subsystem. In the inner-loop control subsystem, a global fast terminal sliding mode controller, which is based on the RBF neural network (GFTFSMC-RBF), was designed to control the attitude of a quadrotor. In this method, the system model uncertainty is approximated using the RBF neural network. Simultaneously, an adaptive fuzzy controller is introduced to estimate the switching gain. The switching gain is used to eliminate the external disturbances, and the chattering phenomenon is eliminated effectively. The main contributions of this study include the following:
- (i)
The proposed control method combines global fast terminal sliding mode control, the RBF neural network, and fuzzy control, which have the advantages of fast finite time convergence, high anti-chattering, high anti-disturbance, and great robustness to system uncertainty;
- (ii)
The adaptive laws are formulated to estimate the upper bounds of time-varying mass and external disturbances appearing in the position subsystems;
- (iii)
A global fast terminal fuzzy sliding mode controller, which is based on the RBF neural network, is designed to control the attitude of a quadrotor. The approximation of system model uncertainty using the RBF neural network to improve the anti-disturbance capability of the control system is determined. An adaptive fuzzy controller is used to estimate the switching gain and eliminate external disturbances, effectively reducing chattering;
- (iv)
Replacing the traditional sign function (sign(s)) with an improved saturation function further contributes to the chattering attenuation.
The rest of this paper is organized as follows: In
Section 2, the dynamics model of a quadrotor UAV is described.
Section 3 designs the ASMC and the proposed GFTFSMC-RBF controllers to control the position and attitude of the QUAV.
Section 4 demonstrates the effectiveness of the proposed controller by discussing and analyzing the simulation results.
Section 5 provides the conclusion of this paper.
2. System Modeling and Problem Description
The earth frame (E), which is attached to the center of the earth, and the body frame (B), which is fixed to the QUAVs, are established initially to establish the QUAV’s mathematical model. According to
Figure 1, the quadrotor UAV’s Euler angles are represented by the roll (
), pitch (
), and yaw (
), and
,
,
, and
are the four-rotor elevations of the QUAVs, respectively [
27].
To facilitate the design of the QUAVs controller, the following assumptions are made [
28]:
Hypothesis 1. A QUAV is a rigid body with uniformly distributed mass and center symmetry.
Hypothesis 2. The mass and inertia of a QUAV are constant.
Hypothesis 3. Thrust and drag on each wing of a QUAV are proportional to the square of propeller speed.
is the homogenous matrix transformation [
29].
where
means
,
means
, and so forth. The dynamics of the quadrotor UAV can be modeled using the Newton–Euler formulation as follows:
is the position of the QUAV’s center of mass relative to the earth frame (E);
is the total mass of the structure, and
is a symmetric positive definite constant inertia matrix of the QUAVs for
.
is the resultant of the forces generated by the four rotors.
where
is the lift coefficient and
is the rotational speed of the motor. The gravity force
is given by
where
is the Euler angles of the QUAVs for the earth frame (E) and
is the angular velocity of the airframe for the body frame (B).
denotes the transformation matrix between
and
.
is the resultant of the drag forces along the (
) axis.
where
,
, and
are the coefficients of drag in translation.
is the moment developed by the quadrotor according to the body’s fixed frame. It is expressed as follows [
30]:
where
is the distance between the center of the quadcopter and the center of a propeller and
is the drag coefficient. In summary, the complete model of the dynamics of a QUAV can be represented as follows [
31]:
Here,
denotes system uncertainty and external disturbances.
,
,
, and
are the control inputs of the system, which are written according to the angular velocities of the four propellers as follows:
3. The Control Strategy
System Equation (10) is rewritten in state space for controller design. The model of the state space adopted by the control system is as follows:
where
is the state vector and
is the control input vector. The state vector is selected as
Combining Equations (10)–(13) gives
From Equations (10) and (15),
,
, and
can be found [
32]:
From Equation (2), the QUAV’s system has 6 outputs and only 4 inputs, which is a typical underdriven system. The rotational motions do not rely on translational motion while the opposite is not true. The QUAV’s attitude and position are therefore managed via a double-loop control system. ASMC is used for position control in the outer loop, while GFTFSMC-RBF is used for attitude control in the inner loop. In
Figure 2, the control scheme is displayed. The control instruction first specifies a desired yaw angle
and three desired trajectories,
,
, and
.
,
, and
are then derived from the ASMC control in the position direction.
,
, and
are then replaced into Equation (16) to produce
,
, and
.
and
are then substituted into the GFTFSMC-RBF attitude controller to produce
,
, and
. Finally, the outputs of the three actual positions and three attitudes of the QUAVs are used as feedback for ASMC and GFTFSMC-RBF to realize the trajectory tracking control of the QUAVs.
3.1. Position Controller Design
From Equation (14), the state space expression of the position subsystem is given by
To make the subsequent analysis concise and readable, some of the involved disturbance components in Equation (17) are rescaled as , , and .
Hypothesis 4. The assumption is that the uncertainty and external disturbances of the system are bounded, and its derivatives are also bounded. , , , , , , , , , , , and as well as all of , , , , , , , , , , andare an unknown positive constant.
Hypothesis 5. Assuming that the rate of change in the external disturbance is relatively slow for a sufficiently long time , .
We use the
z channel as an example to design its controller and define tracking error as
We construct the sliding surface as
Taking the derivative of (19), we can obtain
Equation (20) combined with Equations (17)–(19) gives
where
and
are the design’s virtual control inputs and external disturbances.
is designed as follows:
where
.
and
represent the estimated total mass and total disturbance of the quadrotor UAV, respectively. Substituting Equation (22) in Equation (21) gives
We define and , which are the mass and total disturbance estimate errors, respectively. According to Hypothesis 2, and .
Proof. The Lyapunov candidate functions are designed as follows:
The derivative of the Lyapunov candidate functions is obtained:
Substituting Equations (22) and (23) into Equation (25) gives
Substituting
and
into Equation (26) gives
Equation (27) must hold for the update rate to be created as follows:
According to (28), the adaption laws are set as follows:
The sliding surface , the total interference estimation error , and the mass estimation error are shown to decline gradually using Equation (27). Any such that causes to decrease gradually, and as a result, and are limited. □
Equation (29) can be modified as follows to avoid the danger that an excessively large
will result in an excessively large lift requirement.
3.2. Attitude Controller Design
From Equation (14), the state space expression of the attitude subsystem is given by
According to Hypothesis 4, is bounded. Due to significant external disturbances and system model uncertainty, the inner-loop attitude control can have a substantial negative impact on the control system’s robustness and precision, which will degrade the QUAV’s flight performance. As a result, the GFTFSMC-RBF method is used in this paper’s inner-loop attitude control.
We employ the tracking differentiator (TD) to solve GFTFSMC-RBF since it requires the use of
,
,
, and
. TD is designed as follows [
33]:
In Equation (32), , is the input signal, is its trace, is an estimate of the input signal’s first order derivative, and is an estimate of the input signal’s second-order derivative.
3.2.1. Global Fast Terminal Sliding Mode Controller (GFTSMC) Design
We define the attitude angle tracking error and the first- and second-order derivatives of the tracking error as follows:
Based on the GFTSMC theory [
34], the sliding mode surfaces can be taken as
where
and
are positive constants.
and
(
) are odd integers. The time derivative of the sliding surfaces is
The Lyapunov candidate functions are designed as follows:
The derivative of Lyapunov candidate functions is obtained
According to the system stability principle
, as well as according to Equation (31), the designed control rate is
The index convergence rate is
, where
,
, and
are constant. This means that the designed control law ensures the stability of the system. We adjust parameters
,
,
, and
so that the system reaches the sliding surfaces
in finite time
. By using Equation (34), we can find the following:
By choosing a sufficiently small , the state of the system can be made to arrive at a sufficiently small neighborhood of the sliding mode surface and converge to an equilibrium state along the sliding mode surface. From Equation (38), , , and are system uncertainties.
3.2.2. Global Fast Terminal Fuzzy Sliding Mode Controller Design Based on the RBF Neural Network
The RBF neural network (RBFNN) is a three-layer forward neural network with input, hidden, and output layers, where the transformation from the input layer to the hidden layer is nonlinear and the transformation from the hidden layer to the output layer is linear. Using this relationship, low-dimension input data can be converted to high-dimension input data.
In this paper, since the RBF neural network has a universal approximation property, it is used to approximate the system uncertainty.
is the input of the neural network;
is the weights of the neural networks,
is the radial basis function, and it is given by
The output is given by
where
is the system uncertainty and
is the network tracking error. In the neural network, the neural network’s base width vector is
.
is the
jth center vector.
In addition, the adaptive law of
is
For the system depicted in Equation (31), the external disturbance is time-varying. If the external disturbance is large, the upper bound of the disturbance must also be sufficiently large to satisfy the stability of the system; otherwise, too large a will cause the system to chatter. The fuzzy theory is better able to address this issue.
In this paper, we use a fuzzy controller to approximate external disturbances based on the universal approximation theory of fuzzy systems. First, we establish
and
as the fuzzy controller’s inputs and
as its output, and we fuzzify the input/output as follows:
Thus, the fuzzy rules are 49. The membership function images corresponding to each input and output and the rule surface are illustrated in
Figure 3.
The defuzzification method matching with the Mamdani inference mechanism is the Gravity method. It has high accuracy. The output of the fuzzy system can be expressed as
where
is the membership function by taking both Gaussian and triangle types.
indicates the
mth rule’s crisp output.
The integral method is used to estimate
.
where
is an empirically determined scale factor. Finally, Equation (38) can be rewritten as
where
,
, and
are system uncertainties. To further reduce the chattering phenomenon, the concept of the boundary layer is introduced. An improved saturation function is used to replace the traditional sign function in the switching term of the control law. The improved saturation function can be written as [
35]
3.2.3. Stability Analysis
We define the Lyapunov function as
where
is positive constants,
, and
is the predicted values of
.
The time derivative of
along Equation (31) is
Taking the derivative of Equation (49), we can obtain
Substituting Equation (43) into Equation (51), we obtain
According to the Lyapunov stability theory, for any , there is always , so the system is globally stable.
4. Simulation and Analysis
In this section, the performance of the proposed controller is verified. Therefore, the controller obtained in this paper is compared with other controllers. One compared controller, which combines the ASMC with a SMC [
35], is denoted as controller SMC; the other compared controller, which combines the ASMC with a GFTSMC [
36], is denoted as controller GFTSMC. The controller obtained in this paper, which combines the ASMC and a GFTFSMC-RBF, is denoted as controller GFTFSMC-RBF.
In the simulation flight, the quadrotor tracked the 3D trajectory under external disturbances and system uncertainties. The initial state values of the quadrotor are [0, 0, 0] rad and [0, 0, 0] m. The disturbance terms are set as
and
. Then, 15 s after the simulation started, the quadrotor weight suddenly changes.
is the desired yaw angle. The desired trajectories are generated using the following functions:
The practical change in mass is designed as follows:
Figure 4 shows the 3D flight trajectory, demonstrating that the GFTFSMC-RBF has succeeded in following the 3D flight trajectory in finite time. From
Figure 5, it can be seen that the external disturbances can be accurately estimated, indicating that the control strategy proposed in this paper can improve the system’s resistance to disturbances.
From
Figure 6,
Figure 7 and
Figure 8, the GFTFSMC-RBF obtained in this paper can achieve the fastest response speed, compared with the other two controllers.
Table 3 shows the root mean square errors in
,
, and
channels obtained using the GFTFSMC-RBF; they are smaller than those obtained by the other two controllers. Thus, the tracking performance of the GFTFSMC-RBF is better than that of the other two controllers.
Table 4 shows the system responses in the
,
, and
channels. Compared with SMC and GFTSMC, the converge speeds of GFTFSMC-RBF in the three channels are all faster, obviously. Furthermore, GFTFSMC-RBF can achieve the smaller variations in the
and
angles. Observing
Figure 9, it can be found that the controllers all have a chattering phenomenon, but the introduction of the radial basis function neural network and fuzzy control makes the control input and oscillation amplitude of GFTFSMC-RBF smaller than the other two controllers, which effectively suppresses the chattering phenomenon.
Figure 10 and
Figure 11 show that although the system is disturbed by some unknown signals, the mass can still be estimated successfully, and the estimating error is less than 0.15 kg, which is 15% of the whole mass. All in all, the controller obtained in this paper can control the time-varying mass QUAVs subjected to external disturbances and system model uncertainty, effectively. Moreover, compared with those existing control schemes, such as SMC and GFTSMC, etc., the controller with a combination of ASMC and GFTFSMC-RBF can achieve a significant improvement in flying performance.
is the rise time of the parameter ; and are the maximum and minimum responses of the parameter , respectively, where and . The units of and are radian.