Abstract
This article presents a comparison of controllers which have been applied to a fixed-wing Unmanned Aerial Vehicle (UAV). The comparison is realized between classical linear controllers and nonlinear control laws. The concerned linear controllers are: Proportional-Derivative (PD) and Proportional-Integral-Derivative (PID), while the nonlinear controllers are: backstepping, sliding modes, nested saturation and fuzzy control. These controllers are compared and analysed for altitude, yaw and roll by using simulation tests.
1. Introduction
The number of applied control theories used for UAVs has increased in recent years due to the large number of applications that they can realize. Some of these applications are focused in dangerous missions such as monitoring disaster areas, localization of victims, infrastructure inspection for inaccessible locations, tasks of surveillance, photography, etc. All these applications are obviously related to one important UAV characteristic: the avoidance of risk to pilots and crew when flight conditions have low visibility or take place in bad weather [1].
A basic part of UAV control depends of the obtained dynamic model, which allows us to analyse the system behaviour. The aerodynamic model obtention is very important in the study of UAVs given that these vehicles have a very high risk of damage, even if the ground is only located a few metres below the vehicle, as small oscillations could lead the UAV to crash. For the above reason, the controller must be applied experimentally once several simulations have been tested in order to adjust the controller parameters [2].
The flying qualities of UAVs are just as important as for piloted aircraft. Although envelope boundaries may not be quite the same, they will be equally demanding. Thus, the theory, tools and techniques described in [2] or [3] can be applied to the analysis of the flight dynamics of fixed-wing UAVs.
The control methodologies that have used in this paper were selected once we had chosen the aerodynamic model, such control laws are: PD and PID [4], sliding modes [5], nested saturation [6], backstepping [5], [7] and fuzzy logic [8]. The model equations describe the decoupled dynamics of the airplane [2], then each controller is applied in order to control the movements of attitude, yaw or roll. The main objective of this paper consists of adopting general model equations of a fixed-wing in order to apply and analyse the performance of the basic controller methodologies.
The paper organization is as follows. Section 2 presents the mathematical model of the airplane. Section 3 deals with the control laws applied to the airplane. In Section 4, the results obtained by simulations are presented. Finally, Section 5 presents the conclusions and future work.
2. Airplane model
In order to obtain the model equations, by omitting any flexible structure of the UAV, the fixed-wing UAV is considered as a rigid body. Also we do not consider the curvature of the Earth, it is considered as a plane, because the UAV will only fly short distances - then with the previous consideration it is possible to apply Newton's laws of motion.
2.1 Longitudinal dynamics
The parameters involved in the longitudinal dynamic model (1)–(5) are shown in Figure 1.

Pure pitching motion
These allow analysing the movement toward the front of an airplane [9], particularly the altitude control:
where
where q̄ denotes the dynamic pressure,
2.2 Lateral dynamic
The lateral dynamic generates the roll motion and, at the same time, induces a yaw motion (and vice versa), then a natural coupling exists between the rotations about the axes of roll and yaw [10]. In our case, it is considered that there is a decoupling of roll and yaw movements. Thus, each movement can be controlled independently. Generally, the effects of the engine thrust are also ignored [10]. In Figure 2, the yaw motion is represented, which can be described with the following equations:

Pure yawing motion
where
where
The following equations describe the dynamics for the roll motion:
where

Pure rolling motion
3. Controllers design
In this section, we describe the linear and nonlinear controllers that have been designed in order to control the fixed-wing UAV.
3.1 Altitude control
In order to design the altitude control law, we consider the equations that define the longitudinal dynamics, except equation (1) which defines the linear longitudinal velocity, because it is considered a constant velocity. We also define the error as
While for the PD [11], the control signal is given by:
where
For sliding mode control we consider
where β
The nested saturation controller is proposed to globally asymptotically stabilize a chain of
where
The σ
In [9] we propose a backstepping technique used only for equation (2), where the angle γ is considered as the output to be controlled, and where the reference value is denoted by γ
and by using the backstepping methodology [5], [9], we can obtain the next control input:
where
For the case of the fuzzy controller, the membership functions of the altitude error

Membership functions for the altitude position error

Membership functions for the altitude rate error

Rules for the altitude fuzzy controller
Rules for the altitude fuzzy controller
3.2 Yaw control
In order to design the control laws for this movement, we only consider the equations that define the yaw motion, then we exclude (11) and (12) because they link the lateral and longitudinal linear velocities generated by the yaw angle.
For PID and PD controllers, we have used the general structures shown in (20) and (21), but now, obviously it is considered that the error is
In the case of the nonlinear controllers, the error is
where the function sgn(
where
The backstepping controller has been designed by taking (9), as an approximation of a single degree of freedom of yaw model [10], then we can write
where the control input is obtained as
with
The fuzzy controller is now generated by using seven membership functions for the inputs (angle and rate errors) and an equal number of membership functions for the output. The Figures 7 and 8 correspond to the input signals of the position error

Yaw position error

Yaw rate error

Output membership functions for yaw control
Rules for yaw and roll fuzzy controller
3.3 Roll control
In order to design the attitude linear and nonlinear control laws for the roll movement, we consider the equations that only define the roll motion, then we exclude (18) and (19) because they link the lateral and longitudinal linear velocities generated by roll angle.
For the development of the roll control strategy, the same general structures as those used for the PID and PD controllers presented previously in (20) and (21) are used. Let us define the roll angle error as
In order to design the nonlinear controllers for roll movement, the error is defined as
For the nested saturation control, we consider
where
The backstepping controller has been designed by taking (16) as an approximation of a single degree of freedom of the roll model [10], then we can write ṗ=
Following the backstepping methodology presented in [5], the controller is finally obtained as:
where
Concerning the fuzzy control strategy, seven membership functions are used for the input and output roll control. Figure 10 and Figure 11 show the membership functions that have been used as input signals for the position error

Roll position error

Roll rate error

Output membership functions for the roll control
4. Simulation Results
This section presents the simulation results that has been obtained for each one of the cases under analysis.
4.1 Altitude movement
Figure 13 shows a constant signal corresponding to an altitude reference of 15 metres, in addition the response of each one of the controllers is presented. Figure 14 shows the controller output signal that is applied to the aircraft in order to obtain the desired altitude. The used gain values for the linear controllers are shown in Table 3, and the gains for nonlinear control simulations are shown in Table 4, Table 5 and Table 6.
Gains of the linear controllers
Gains of sliding modes controllers
In Figure 13, we can see that all signals accomplish the objective within 20 seconds. The PID controller reaches the desired altitude faster than the PD controller - the PD control shows a good response, but it is slower at reaching the desired altitude and applies almost the same pair or torque as the PID controller.

Controllers' response for altitude
The nested saturations signal reaches the desired altitude faster than the other controllers. The sliding modes and backstepping controllers produce very similar responses. The difference is given by the evidence of chattering in the sliding mode control. The fuzzy control presents an oscillatory torque. For this movement, we conclude that the nested saturation control has a better response and it applies a small torque in comparison with the sliding modes and backstepping controllers, but with very small variations. In Figure 15, a zoom of the three output signals related to the sliding modes controllers are shown in order to visualize the chattering.

Output signals of the controllers for altitude

Chattering of sliding modes controllers
Gains of nested saturation controllers
Gains of backstepping controllers
4.2 Yaw movement
The gains applied for the yaw controllers are presented in Table 3 for the PID and PD controllers, and the gains for nonlinear controllers are shown in Table 4, Table 5 and Table 6. Figure 16 shows a yaw reference of 10o, as well as the responses of the six controllers. Figure 17 shows the applied moments that we need to apply in order to obtain the desired angular movement. Since some of the controllers in Figures 14, 17 and 20 seem to have a low or even zero applied torque, we have dedicated Figure 18 to realize a zoom to those controllers in order to study their performance.

Controllers' response for yaw

Output signals of the controllers for yaw

Zoom of output signals of controllers
We can see that the PD control has a steady-state error of 0.0006
The backstepping converges quickly to zero torque and it can also be seen that the controller signals converge to the desired reference angle within 10 seconds, without steady-state error and with a very small overshoot in the nested saturation control. The sliding modes and backstepping controllers converge to the reference value in a damped form, but with different slopes in the transient response. In Figure 17, we can see that sliding modes control applies a lower torque than nested saturations and backstepping controllers in order to reach the desired angle. However, the sliding mode control has the well-known chattering in its control signal (Figure 15).
4.3 Roll movement
Figure 19 shows a reference signal of 10

Controllers' response for roll

Output signals of the controllers for roll
5. Conclusion
In this paper, we have realized a comparison of six controllers for the flight of a fixed-wing airplane. Based on the 3D decoupled motion simulation results, it is concluded that for each movement (altitude, yaw and roll) there is a specific controller that has a better performance with respect to the others.
The sliding modes and backstepping controllers produce acceptable responses for the altitude control, but they generate very high torques. The fuzzy controller shows good performance, since it combines a good response with low torque for each one of the three dynamics: altitude, yaw and roll. Concerning the PD controller, it has an undesirable steady-state error in yaw dynamics. On the other hand, the PID controller produces an acceptable response in the three movements.
Taking into account the results obtained from the other nonlinear controllers, it is concluded that the nested saturation has one of the better performances in altitude, it combines a good response with low torque to reach the desired altitude, except in yaw and roll where it produces an acceptable response, but with large torque. The sliding modes and backstepping controllers produce an acceptable response in altitude control, but generate a very high torque.
The sliding modes controller has an acceptable performance in yaw and roll movements, with lower torques in comparison with nested saturations and backstepping, but with a high frequency chattering. For the roll and yaw dynamics, the nested saturations has a acceptable performance, but it produces high torques in order to converge to the desired values and small overshoots. The backstepping for the yaw and roll dynamics performs well, but it generates a high output moment.
It is worth mentioning an interesting behaviour encountered for the fuzzy controller case. It was found that, by adding more membership functions, it is easier to control the yaw and roll motion. Initially, we only considered three membership functions for the position and rate errors, and with five output functions. When that number was increased, this controller provided better responses. From the simulations results, we can observe that the choice of a controller for stabilizing the flight of a fixed-wing airplane is not a trivial problem. This is because the airplane is very unstable for certain movements of the ailerons, stabilizers and elevators. The airplane considered in our problem has a low wing, so we can consider it an acrobatic airplane with higher nonlinearities in its system.
The mathematical model that defines the aerodynamic behaviour of the fixed-wing UAV contains many important factors that should be considered when designing a more suitable controller. One of these important factors is related to the aerodynamic coefficients.
Our future work will concentrate on the development of a radio-controlled airplane with embedded systems in order to validate the previous results and on the design of robust linear controllers.
