# Intelligent Controller Design for Quad-Rotor Stabilization in Presence of Parameter Variations

Authors: Oualid Doukhi; Abdur Razzaq Fayjie; Deok Jin Lee
Journal: Journal of Advanced Transportation
 (2017)

---

## Abstract

The paper presents the mathematical model of a quadrotor unmanned aerial vehicle (UAV) and the design of robust Self-Tuning PID controller based on fuzzy logic, which offers several advantages over certain types of conventional control methods, specifically in dealing with highly nonlinear systems and parameter uncertainty. The proposed controller is applied to the inner and outer loop for heading and position trajectory tracking control to handle the external disturbances caused by the variation in the payload weight during the flight period. The results of the numerical simulation using gazebo physics engine simulator and real-time experiment using AR drone 2.0 test bed demonstrate the effectiveness of this intelligent control strategy which can improve the robustness of the whole system and achieve accurate trajectory tracking control, comparing it with the conventional proportional integral derivative (PID).


---

## Body

## 1. Introduction

The payload variation has been playing an important role in the field of transportation. The control for the unmanned aerial vehicles (UAV) becomes more challenging when it involves the payload variation over time. With the increasing popularity of autonomous UAVs in the field of military and civilian such as surveillance, disaster monitoring, rescue mission, firefighting, and package delivery [1], where carrying and transporting external payload is essential to complete the mission successfully, the safe and fast transportation of fragile or dangerous payloads by UAVs has become an interesting and important topic for the recent researchers in the field. The control of such UAVs requires the UAV stability and constant performance with the changing payload weight during the flight. But these UAVs are inherently unstable, nonlinear, and multivariable with complex and highly coupled dynamics [2]. It is also very sensitive to unmolding dynamics, parametric uncertainties, and external disturbances. Thus, it makes the control design for UAVs with payload variation very critical. The critical design of such controllers leads the field of control theory to introduce new intelligent types of controllers [3].Recent researches on the same field show different control methodologies. Bouabdallah and Siegwart present the real-time tests with an integral backstepping controller for an autonomous vehicle [4] and Boudjedir et al. mentioned an Adaptive Neural Control technique at the presence of sinusoidal disturbance [5] which is tested only in a simulation environment. Even though there exists another controller depicting the adaptive nature using sliding mode, control in the presence of external disturbances is described in [6], but it holds the simulation environment only. The work in [7] describes a Fuzzy PID for quadrotor with space fixed-point position control in a real-time flight test. Kim and Lee extend their control idea to nonlinear attitude stabilization and tracking control for an autonomous hexarotor vehicle [8]. A new approach is taken in the field of control by the design of an Intelligent controller for unmanned quadrotor [9] which seems to be promising. But the discussed works lack the analysis of the payload weight variation effects and the performance of the UAV in presence of such variations on the weight. This phenomenon is an integral part of the environments like mountains or unstructured areas for real UAV applications where UAV needs to drop the payload gradually without landing. The most practical example to view the importance of such system is the application in firefighting. Other applications like package delivery and mail delivery involve maximizing the number of delivery within an area where package or mail drop from air helps to make delivery easier. In hazard situations like fire control, such system can be used as continuous spray of water or fire control gases. The application also extends to the field of agriculture with medicine spray in a crop field.It is extremely painful that there exists a few successful research focused on payload weight variation and its effect on the UAV performance. These studies include a fixed wing UAV that has been used for payload dropping mission [10]. It lacks the stationary flight capability which leads the researcher to focus on Vertical Take-Off and Landing (VTOL) vehicles such as quadrotor UAV which offers the ability to fly in any direction and even to stop their movement staying hovering above a specific target.In [11] a robust adaptive control is designed for quadrotor payload add and drop applications in simulation environment. Another research presented a payload drop application of unmanned quadrotor helicopter using Gain-Scheduled PID and model predictive control techniques in real-time experiment [12] but the work analyzes the effect only in altitude. Muhammad presented the simulation work with the PID controller for payload drop of a quadrotor UAV [13]. To handle such complex UAV systems to unload package or to drop payload without landing, a robust flight controller is needed which must be intelligent enough to keep the UAV stable in different circumstances. The intelligent controller must adapt itself in a short duration of time with the sudden changes in the payload which enable the UAV to be stabilized. The design of such controllers aims to avoid the damage of the system and guarantees the safety operation for the surrounding environment and people present.This work studies the effects of payload weight variation and analyzes the behavior of the UAV in a 3-dimensional space (x,y,z) along with the attitude (roll, pitch, and yaw angles) instead of the single axis z (altitude) consideration of most of the present works. The work contributes to the design of a robust intelligent self-tuning PID controller based on fuzzy logic to ensure the trajectory tracking performance in the presence of payload weight variations. The proposed control idea is tested both in the simulation as well as in real-time environment.The paper introduces the existing research works which are similar to the topic of the paper, the pros and cons of such control ideas, the problem definitions, and the proposed idea in Section1. The next part describes the dynamic model of the quadrotor in Section 2 and the controls development is presented in Section 3. Section 4 presents the simulation environment and asymptotic tracking results obtained in that environment which is further extended to real-time environment and the real flight test results are presented in Section 5. Finally, the paper concludes with the promising result and uses of proposed idea in near future to handle payload variation on a UAV effectively.


## 2. Description and Dynamics of the Quadrotor

The work uses a quadrotor, AR Drone 2.0, that was unveiled at CES Las Vegas 2012. It comes with 720p camera and the onboard sensors (like ultrasonic altimeter and 3-axis gyroscope, along with a 3-axis accelerometer and magnetometer) which allow the quadrotor for greater control. The wifi communication with 802.11n standard provides better communication with the ground station. The rotors are powered by 15 watts and brushless motors are powered by an 11.1 Volt lithium polymer battery. This provides approximately 12 minutes of flight time at a speed of 5 m/s (11 mph). In order to design a flight controller, one must first understand the quadrotor movements, its dynamics, and consequently its dynamic equations. This understanding is necessary not just for the design of the controller, but also to ensure that the simulations of the vehicle behavior are closer to the reality when the command is applied.The quadrotor is classified in the category of the most complex flying systems given the number of physical effects that affect its dynamics, namely, aerodynamic effects, gravity, gyroscopic effects, friction, and moment of inertia. The schematic configuration of a quadrotor we adopted in this study is shown in Figure1. Four rotors are usually placed at the ends of two orthogonal axes. The rotation for two propellers needed to be in a clockwise direction while the other two are in a counterclockwise direction. The modeling of flying robots is a delicate task as the dynamics of the system are strongly nonlinear and fully coupled. In order to understand the model dynamics developed in this work, the working hypotheses are given below [14]:(1)
The structure of the quadrotor is assumed to be rigid and symmetric.(2)
The propellers are rigid.(3)
Thrust and drag forces are proportional to the square of the rotors speed.(4)
The center of mass and origin of the coordinate system related to the quadrotor structure coincide. To evaluate the mathematical model of the quadrotor, we use two reference frames, a fixed frame linked to the ground called inertial frame Rb and another mobile frame Rm with its origin at the center of mass of the quadrotor. By varying the rotor speeds, the thrust forces Fi=1⋯4 can be changed which results in the six principal motions as follows: (1)
Roll rotationϕ followed by translation along Oy(2)
Pitch rotationθ followed by translation along Ox(3)
Yaw rotationψ(4)
Translation alongOz (the altitude). Let q=P,rT∈R6 be the generalized coordinates for the quadrotor where P=x,y,zT denotes the absolute position in the inertial frame Rb, and r=[ϕ,θ,ψ]T is the vector consists of three Euler angles ϕ,θandψ. ϑ=[Ω1,Ω2,Ω3]T denotes the vector containing angular velocities of roll, pitch, and yaw with respect to the body-fixed frame Rm. The rotation matrix from body frame to earth frame can be obtained as follows:(1)R=cϕcθsϕsθcψ-sψcϕcϕsθcψ+sψsϕsϕcθsϕsθsψ+cψcθcϕsθsψ-sϕcψ-sθsϕcθcϕcθ,where s(·) and c(·) are abbreviations for sin⁡(·) and cos⁡(·) functions, respectively.Figure 1
Quadrotor configuration frame scheme with body-fixed and inertia frames.Using the Newton-Euler formulation, the rotational and translational dynamics are written in the following equation with the corresponding parameters presented in Table1:(2)x¨=cϕsθcψ+sϕsψ1mU1,y¨=cϕsθsψ-sϕcψ1mU1,z¨=-g+cϕcθ1mU1,ϕ¨=θ˙ψ˙Iyy-IzzIxx-JrIxxθ˙Ωd+1IxxU2,θ¨=ϕ˙ψ˙Izz-IxxIyy+JrIyyϕ˙Ωd+1IyyU3,ψ¨=θ˙ϕ˙Ixx-IyyIzz+1IzzU4,where(3)Ωd=ω2+ω4-ω1-ω4and Uii=1,2,3,4 is the virtual control input defined as follows:(4)U1U2U3U4=K1K1K1K10-lK10lK1-lK10lK10K2-K2K2-K2ω12ω22ω32ω42.Table 1
Quadrotor parameters.
Symbol
Quantity
Value
k
1
Thrust factor
8.048
×
1
0
-
6 N⋅S2
k
2
Drag coefficient
2.43
×
1
0
-
7 N⋅m⋅s2
I
x
x
Moment of inertia alongx direction
0.002237568 kg⋅m2
I
y
y
Moment of inertia alongy direction
0.002985236 kg⋅m2
I
z
z
Moment of inertia alongz direction
0.00480374 kg⋅m2
l
Center distance between the gravity of quadrotor and each propeller
0.1785 m
m
Total mass of the quadrotor
0.450 kg
J
r
Rotor inertia
2.029585
×
1
0
-
5 kg⋅m2
g
Gravity
9.81 m/s2


## 3. Control Development

The work develops a self-tuning PID controller for position and heading trajectory tracking control to deal with the mass variance of the quadrotor when the payload is gradually changed.


### 3.1. Design of PID Controller

The proportional integral derivative (PID) controller is designed to ensure the trajectory tracking capability ofψ and x,y,z along the desired yaw angle trajectory ψd and {xd,yd,zd,} position as illustrated in Figure 2.Figure 2
PID controller structure.The based control laws of PID controller for position and heading take the following form:(5)U4=Kpψ·eψ+Kdψ·e˙ψ+Kiψ·∫eψ·dt,U1x=Kpx·ex+Kdx·e˙x+Kix·∫ex·dt,U1y=Kpy·ey+Kdy·e˙y+Kiy·∫ey·dt,U1=Kpz·ez+Kdz·e˙z+Kiz·∫ez·dt,where(6)eψ=ψdes-ψ,ex=xdes-x,ey=ydes-y,ez=zdes-zand Kp.,Kd.,Ki. are parameters tuned without payload onboard. U1xandU1y are virtual control inputs used to generate the desired roll ϕd and pitch θd angles as illustrated in Figure 2:(7)ϕd=1gU1xsin⁡ψdes-U1ycos⁡ψdes,θd=1gU1xcos⁡ψdes-U1ysin⁡ψdes.


### 3.2. Fuzzy Logic for Self-Tuning of PID

Fuzzy logic is a tool for reasoning propositions that can be manipulated with mathematical precepts. It has been suggested by researchers that measurements, process modeling, and control can never be exact for real and complex processes. Also, there are uncertainties such as incompleteness, randomness, and ignorance of data in the process model [15].The seminal work of Zadeh introduced the concept of fuzzy logic to model human reasoning from imprecise and incomplete information by giving definitions to vague terms and allowing construction of a rule base (Zadeh, 1965, 1973). Fuzzy logic can incorporate human experiential knowledge and give it an engineering flavor to model and control such ill-defined systems with nonlinearity and uncertainty. The fuzzy logic methodology usually deals with reasoning and inference on a higher level, such as semantic or linguistic. Fuzzy logic requires knowledge in order to reason which is provided by a person who knows the process or machine (the expert). One of the most important components of fuzzy logic is membership function. Membership functions group input data into sets, such as temperatures that are too cold, motor speeds that are acceptable, and distances that are too far. The fuzzy controller (see Figure4) assigns the input data a grade between 0 and 1 based on how well it fits into each membership function [16].Mathematically a fuzzy set is described as a setA in X. The set A is characterized by a membership function μA(x) associated with each point in x, a real number in the interval [0,1], with the values of μA(x) at x representing the grade of membership of x in A.The function that characterizes the fuzziness of a fuzzy setA in X, which associates each point in X with a real number in the interval [0,1], is known as membership function.Fuzzification and Defuzzification. The process that allows converting a numeric value into a fuzzy input is called fuzzification.Defuzzification is the reverse process of fuzzification. Mathematically, the defuzzification of a fuzzy set is the process of conversion of a fuzzy quantity into a crisp value. This is necessary when a crisp value is to be provided from a fuzzy system to the user.Inference Mechanism. Inference is the process of formulating a nonlinear mapping from a given input space to output space. The mapping then provides a basis from which decisions can be made. The process of fuzzy inference involves all the membership functions, operators, and if-then rules [16].


### 3.3. Self-Tuning of the Designed PID Controller

Traditional PID designed in Section3.1 comes with a lot of limitations. For example, its three parameters are tuned for a specific operating condition such as with constant payload or without payload. Therefore, such mass uncertainty may significantly affect the fly control performance. To solve this problem of designed PID, a self-tuning mechanism based on fuzzy logic is developed which has the capability of adjusting the parameters of designed PID online which enables the previously developed PID to handle the sudden or gradual change of the payload weight. We know that the weight change practically has a big and inevitable effect not only in the altitude stability of the quadrotor but also in x-y position. More specifically, in the hovering condition, a quadrotor with its onboard load is seen as a heavy body [13], thus requiring more upward thrust to attain the desired altitude. Once the payload is dropped or gradually changed, the quadrotor will reach a higher altitude, thus, producing overshooting on its desired height. The self-tuning intelligent PID controller must monitor this overshoot and quickly compensates for this and return the quadrotor to its desired altitude by lowering the upward thrust by slowing the speed of the brushless DC motor (BLDC) or in the opposite way when the payload is added to compensate the undershoot.The self-tuning mechanism is designed for automatic-tuning of each of PID controller parameters so that the system becomes robust to the mass uncertainty. The inputs to the fuzzy mechanism are error and change in the error. It produces the output of the PID parameters “Kp”, “Ki”, “Kd” as presented in Figure 3.Figure 3
Overall structure for the developed control mechanism.Figure 4
Fuzzy structure.


### 3.4. Design of Membership Function (MF)

The work designed five triangular membership functions nl, ns, ze, ps, and pl which represent negative large, negative simple, zero, positive simple, and positive large for each input variable (see Figure5) and seven triangular membership functions pvs, ps, pms, pm, pml, pl, and pvl for each output variables (see Figures 6–8). Based on experience, 25 fuzzy rules are defined for all possible combinations of the inputs. The “centroid method” is used for defuzzification. The three-dimensional surface of chosen fuzzy rules for the controller design is shown in Figures 9–11. Fuzzy controller is made of “if-then” rules. The selected rules for the quadrotor control process are shown in Tables 2–4. The equation for the control algorithm is given as(8)Ut=UtSP+UtSd+UtSI,where the control signals self-tuning proportional, self-tuning Integral, and self-tuning derivative are(9)UtSP=SkPFPet,UtSd=SkdFdet,UtSI=SkiFiet, where FP,FdandFi are scaling factors; hence, three fuzzy controller outputs are(10)Skp=fpe,depdt,Skd=fde,deddt,Ski=fie,deidt. Therefore, the self-tuning control input can be written as(11)Ut=fpe,depdtFPet+fde,deddtFdet+fie,deidtFiet.Table 2
Fuzzy rule forkp.
de/e
NL
NS
ZE
PS
PL
NL
PVL
PVL
PVL
PVL
PVL
NS
PML
PML
PML
PL
PVL
ZE
PVS
PVS
PS
PMS
PMS
PS
PML
PML
PML
PL
PVL
PL
PVL
PVL
PVL
PVL
PVLTable 3
Fuzzy rule forkd.
de/e
NL
NS
ZE
PS
PL
NL
PVS
PML
PM
PL
PVL
NS
PMS
PML
PL
PVL
PVL
ZE
PM
PL
PL
PVL
PVL
PS
PML
PVL
PVL
PVL
PVL
PL
PVL
PVL
PVL
PVL
PVLTable 4
Fuzzy rule forki.
de/e
NL
NS
ZE
PS
PL
NL
PM
PM
PM
PM
PM
NS
PMS
PMS
PMS
PMS
PMS
ZE
PS
PS
PVS
PS
PS
PS
PMS
PMS
PMS
PMS
PMS
PL
PM
PM
PM
PM
PMFigure 5
Membership functions designed for the inputs.Figure 6
Membership functions designed for the outputkp.Figure 7
Membership functions designed for the outputkd.Figure 8
Membership functions designed for the outputki.Figure 9
Error and derivative error for the outputkd.Figure 10
Error and derivative error for the outputki.Figure 11
Error and derivative error for the outputkp.


## 3.1. Design of PID Controller

The proportional integral derivative (PID) controller is designed to ensure the trajectory tracking capability ofψ and x,y,z along the desired yaw angle trajectory ψd and {xd,yd,zd,} position as illustrated in Figure 2.Figure 2
PID controller structure.The based control laws of PID controller for position and heading take the following form:(5)U4=Kpψ·eψ+Kdψ·e˙ψ+Kiψ·∫eψ·dt,U1x=Kpx·ex+Kdx·e˙x+Kix·∫ex·dt,U1y=Kpy·ey+Kdy·e˙y+Kiy·∫ey·dt,U1=Kpz·ez+Kdz·e˙z+Kiz·∫ez·dt,where(6)eψ=ψdes-ψ,ex=xdes-x,ey=ydes-y,ez=zdes-zand Kp.,Kd.,Ki. are parameters tuned without payload onboard. U1xandU1y are virtual control inputs used to generate the desired roll ϕd and pitch θd angles as illustrated in Figure 2:(7)ϕd=1gU1xsin⁡ψdes-U1ycos⁡ψdes,θd=1gU1xcos⁡ψdes-U1ysin⁡ψdes.


## 3.2. Fuzzy Logic for Self-Tuning of PID

Fuzzy logic is a tool for reasoning propositions that can be manipulated with mathematical precepts. It has been suggested by researchers that measurements, process modeling, and control can never be exact for real and complex processes. Also, there are uncertainties such as incompleteness, randomness, and ignorance of data in the process model [15].The seminal work of Zadeh introduced the concept of fuzzy logic to model human reasoning from imprecise and incomplete information by giving definitions to vague terms and allowing construction of a rule base (Zadeh, 1965, 1973). Fuzzy logic can incorporate human experiential knowledge and give it an engineering flavor to model and control such ill-defined systems with nonlinearity and uncertainty. The fuzzy logic methodology usually deals with reasoning and inference on a higher level, such as semantic or linguistic. Fuzzy logic requires knowledge in order to reason which is provided by a person who knows the process or machine (the expert). One of the most important components of fuzzy logic is membership function. Membership functions group input data into sets, such as temperatures that are too cold, motor speeds that are acceptable, and distances that are too far. The fuzzy controller (see Figure4) assigns the input data a grade between 0 and 1 based on how well it fits into each membership function [16].Mathematically a fuzzy set is described as a setA in X. The set A is characterized by a membership function μA(x) associated with each point in x, a real number in the interval [0,1], with the values of μA(x) at x representing the grade of membership of x in A.The function that characterizes the fuzziness of a fuzzy setA in X, which associates each point in X with a real number in the interval [0,1], is known as membership function.Fuzzification and Defuzzification. The process that allows converting a numeric value into a fuzzy input is called fuzzification.Defuzzification is the reverse process of fuzzification. Mathematically, the defuzzification of a fuzzy set is the process of conversion of a fuzzy quantity into a crisp value. This is necessary when a crisp value is to be provided from a fuzzy system to the user.Inference Mechanism. Inference is the process of formulating a nonlinear mapping from a given input space to output space. The mapping then provides a basis from which decisions can be made. The process of fuzzy inference involves all the membership functions, operators, and if-then rules [16].


## 3.3. Self-Tuning of the Designed PID Controller

Traditional PID designed in Section3.1 comes with a lot of limitations. For example, its three parameters are tuned for a specific operating condition such as with constant payload or without payload. Therefore, such mass uncertainty may significantly affect the fly control performance. To solve this problem of designed PID, a self-tuning mechanism based on fuzzy logic is developed which has the capability of adjusting the parameters of designed PID online which enables the previously developed PID to handle the sudden or gradual change of the payload weight. We know that the weight change practically has a big and inevitable effect not only in the altitude stability of the quadrotor but also in x-y position. More specifically, in the hovering condition, a quadrotor with its onboard load is seen as a heavy body [13], thus requiring more upward thrust to attain the desired altitude. Once the payload is dropped or gradually changed, the quadrotor will reach a higher altitude, thus, producing overshooting on its desired height. The self-tuning intelligent PID controller must monitor this overshoot and quickly compensates for this and return the quadrotor to its desired altitude by lowering the upward thrust by slowing the speed of the brushless DC motor (BLDC) or in the opposite way when the payload is added to compensate the undershoot.The self-tuning mechanism is designed for automatic-tuning of each of PID controller parameters so that the system becomes robust to the mass uncertainty. The inputs to the fuzzy mechanism are error and change in the error. It produces the output of the PID parameters “Kp”, “Ki”, “Kd” as presented in Figure 3.Figure 3
Overall structure for the developed control mechanism.Figure 4
Fuzzy structure.


## 3.4. Design of Membership Function (MF)

The work designed five triangular membership functions nl, ns, ze, ps, and pl which represent negative large, negative simple, zero, positive simple, and positive large for each input variable (see Figure5) and seven triangular membership functions pvs, ps, pms, pm, pml, pl, and pvl for each output variables (see Figures 6–8). Based on experience, 25 fuzzy rules are defined for all possible combinations of the inputs. The “centroid method” is used for defuzzification. The three-dimensional surface of chosen fuzzy rules for the controller design is shown in Figures 9–11. Fuzzy controller is made of “if-then” rules. The selected rules for the quadrotor control process are shown in Tables 2–4. The equation for the control algorithm is given as(8)Ut=UtSP+UtSd+UtSI,where the control signals self-tuning proportional, self-tuning Integral, and self-tuning derivative are(9)UtSP=SkPFPet,UtSd=SkdFdet,UtSI=SkiFiet, where FP,FdandFi are scaling factors; hence, three fuzzy controller outputs are(10)Skp=fpe,depdt,Skd=fde,deddt,Ski=fie,deidt. Therefore, the self-tuning control input can be written as(11)Ut=fpe,depdtFPet+fde,deddtFdet+fie,deidtFiet.Table 2
Fuzzy rule forkp.
de/e
NL
NS
ZE
PS
PL
NL
PVL
PVL
PVL
PVL
PVL
NS
PML
PML
PML
PL
PVL
ZE
PVS
PVS
PS
PMS
PMS
PS
PML
PML
PML
PL
PVL
PL
PVL
PVL
PVL
PVL
PVLTable 3
Fuzzy rule forkd.
de/e
NL
NS
ZE
PS
PL
NL
PVS
PML
PM
PL
PVL
NS
PMS
PML
PL
PVL
PVL
ZE
PM
PL
PL
PVL
PVL
PS
PML
PVL
PVL
PVL
PVL
PL
PVL
PVL
PVL
PVL
PVLTable 4
Fuzzy rule forki.
de/e
NL
NS
ZE
PS
PL
NL
PM
PM
PM
PM
PM
NS
PMS
PMS
PMS
PMS
PMS
ZE
PS
PS
PVS
PS
PS
PS
PMS
PMS
PMS
PMS
PMS
PL
PM
PM
PM
PM
PMFigure 5
Membership functions designed for the inputs.Figure 6
Membership functions designed for the outputkp.Figure 7
Membership functions designed for the outputkd.Figure 8
Membership functions designed for the outputki.Figure 9
Error and derivative error for the outputkd.Figure 10
Error and derivative error for the outputki.Figure 11
Error and derivative error for the outputkp.


## 4. Simulation Setup and Results

Simulations have been conducted using robot operating system (ROS) interfaced with Matlab/Simulink and gazebo physic engine simulator as illustrated in Figure12, in order to verify the efficiency of the proposed self-tuning PID controller for heading and position control and benchmark with a regular PID.Figure 12
Simulation environment configuration.Firstly PID parameters are tuned in normal case quadrotor without payload; from Figures13–15, we can see that the proposed self-tuning controller gives us very good result in terms of trajectory tracking performances. In the next section to demonstrate the effectiveness of the proposed controller against adverse condition, like payload weight variation, we need to do some experimental tests; we change the weight gradually and then we analyze the effect of this change in the position tracking performance and we compare it with conventional PID.Figure 13
Response curves of quadrotor UAV attitude(ϕ,θ,ψ).Figure 14
Response curves of quadrotor UAV position(x,y,z).Figure 15
Three-dimensional response curves of quadrotor UAV position(x,y,z).


## 5. Experiment Setup and Results

In this section to validate the position and heading trajectory tracking performance experiment tests (the experimental video is available at the URLhttps://www.youtube.com/channel/UC6eedfqCWGpj1YqANGdzfIg) are implemented on the Ardrone 2.0 testbed as presented in Figure 16. Firstly the quadrotor is on the ground with initial payload of 20 g onboard; after takeoff the quadrotor was ordered to follow square trajectory, and then during the fly maneuver we change gradually the weight by adding external load till we reach the maximum load supported by our system which is about 60 g; from Figures 17–21 we can see that the the self-tuning PID algorithm based on fuzzy logic that automatically adjust the parameter gain within rage kp,Kd∈0.43,Ki∈[0.12.5] is able to make the quadrotor reach the desired trajectory, without overshoot and with slightly oscillating motion compared to the conventional PID controller system which presents about 19 cm of overshoot in the altitude and position, because the control parameters kp=1.5Kd=0.8Ki=0.3 are tuned in the initial case with constant payload.Figure 16
Experimental environment setup.Figure 17
Quadrotorx position under payload with variable weight.Figure 18
QuadrotorY position under payload with variable weight.Figure 19
Quadrotorz position under payload with variable weight.Figure 20
Response curves of quadrotor UAV attitude(ϕ,θ,ψ).Figure 21
Three-dimensional response curves of quadrotor UAV position(x,y,z) with variable payload weight.


## 6. Conclusion

This paper presents a self-tuning PID control algorithm to achieve quadrotor aerial vehicle’s performance with a variable payload. The comparison between the conventional PID and self-tuning PID base on fuzzy logic has been conducted; the result shows that both control methodologies are acceptable in the case of no variation in the payload weight, experimental results demonstrate the superiority of the proposed self-tuning PID comparing to the PID in case of variable payload weight, and it provides good performance in terms of disturbance reduction and trajectory tracking.



---

*Source: 4683912-2017-07-18.xml*