Trajectory Tracking For The Quadcopter UAV Utilizing Fuzzy PID Control Approach
Trajectory Tracking For The Quadcopter UAV Utilizing Fuzzy PID Control Approach
Abstract: Currently, the quadcopter Unmanned Aerial Vehicles The quadcopter is an underactuated system with high nonlinear
(UAVs) are playing a significant role in combating the COVID-19 dynamics. Consequently, the advanced robust control methods
pandemic crisis, which induced the researchers to design robust have been reported in the literature to ensure the smooth and
control techniques. In this paper, a fuzzy PID controller is robust trajectory tracking and navigation, such as linear control
designed to stabilize and/or track the desired trajectory of the design [1]-[4], sliding mode [5]-[7], feedback linearization [8],
quadcopter UAV. The mathematical model of the quadcopter [9], backstepping [10], [11] and adaptive control [12], [13], and
UAV has been briefly presented, where it has been divided into two to name a few more. A review on control methods that were
portions, the position dynamic and the attitude dynamic applied to UAVs has been reported in [14].
subsystems. Subsequently, a robust fuzzy PID controller has been
designed for both the inner loop and outer loop to control and In this paper, the mathematical model of the quadcopter UAV is
stabilize the position and the attitude of the quadcopter, which divided into two parts, the position dynamic, and the attitude
adaptively manipulate the system's input based on the tracking dynamic subsystems. Furthermore, a fuzzy PID (FPID)
error. The proposed controller is benchmarked with the controller has been proposed for the dynamic model of
conventional PID controller to show the robustness of the fuzzy quadcopter UAV to control the attitude and the position, where
PID controller. Fuzzy PID controller has been verified through
the controller output changes adaptively according to the
simulation work utilizing Matlab/Simulink, where better
trajectory tracking error. The obtained results of the proposed
controller are compared with a conventional PID controller. A
performance is achieved compared with the conventional PID
remarkable reduction in the trajectory tracking error has been
controller. It is found that the errors in the quadcopter’s attitude
achieved via the FPID controller compare to the conventional
and position have been significantly reduced through using fuzzy
PID control technique.
PID controller by 70% and 87%, respectively.
Recently, the quadcopter unmanned aerial vehicles (UAVs) are II. QUADCOPTER MODELING
playing a significant role in combating the COVID-19 pandemic
crisis. In some countries around the world, the quadcopter UAVs A. Quadcopter UA VDescription
have been used in aerial spray and disinfection, transport of
samples, remote temperature check for individuals and monitor The quadcopter consists of 4-rotors fixed in cross configuration
the curfew process, and a few more. Due to these applications
that have a direct impact on the community service, the
quadcopter UAV is receiving remarkable interest from
researchers and engineers in terms of modeling and control
design algorithms to enable it achieves the assigned tasks
successfully.
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 11:27:36 UTC from IEEE Xplore. Restrictions apply.
The quadcopter moves in 6-DOFs, namely (roll, pitch, yaw, x, y, —Mnop & —cos 3 sin 4 cos 3 + sin 3 sin 3
& = ------------------------------------------------------- 1
z), where Figure 2 maps quadcopter movements: take-off, m
landing, right, left, forward, backward, clockwise, and counter-
-Mfdyi —cos 3 sin 0 cos 3 —sin 3 sin 3
clockwise. The arrow's width is proportionally representing the 1 = l (8)
m
—MNOzZ —cos 3 cos 0
z = l
m
0 = yVy0 2 — a 33 3 + a 4 3 X + “ l 3 (9)
Wy Wy
3 = — Nv u 3 2 — a s 3 0 + ——u 4
WZ WZ
B. Quadcopter UA VKinematic Model where,
fl d = " l < ] + ] | < ]4,
As depicted in Figure 1, where there are two different frames,
the earth frame (E-frame) symbolized by E = (&e,ye,ze) and the Wy W z y_ Wz W p y_ W
p
body frame (B-frame) denoted by B = (&b,yb,zb). The ai = W , a 2 = T" , a 3 = W , a 4 = T" , a 5 = W
wp wp Wy Wy Wz
generalized quadcopter’s coordinates can be given as: and (u i ,u2 ,u3 ,u4 ) are the quadcopter control inputs.
* = [ ,,.] 0 (1)
where the position of the quadcopter UAV is given as: III. CONTROL DESIGN
, = [&,1,z]0 (2)
A. PID Control Design
while the attitude of quadcopter UAV can be written as:
. = [ 3 ,0 ,3 ] 0 (3 ) The PID control technique is designed to stabilize and control
the quadcopter’s position and attitude dynamics illustrated in (8)
Hence, the quadcopter’s kinematic equation is given as follows: and (9). Consequently, the errors for the quadcopter’s in 6-DOFs
, = 78 (4) are defined as follows:
e p = &d —&
where, £ and V symbolize the quadcopter’s linear velocity in E-
frame and B-frame, respectively, and R denotes the rotation ey = 1 d < 1
matrix, and it's given as follows:
ez zd z
(10)
e<a = 3 d < 3
c0 c 3 s3s0c3 — c3c3 s3s0c3 + c3s3
7 = c0s3 s3s0s3 + c3c3 c3s0s3 — s3c3 (5) e e = 0 d —0
. — s0 s3c0 c3c0
= 3d < 3
Where for instance c 0 and s 0 denote cos0 and sin0,
respectively. where, eP, ey, ez and e^, eb, are the errors signals between
the actual signals (x, y, z, 3, 0 and y) and the desired signals (&d,
The quadcopter rotational motion equation is given by: 1d, Zd, 3d, 0d, and 3d ).
. = (6)
The PID controller is developed and applied as follows:
where, n and m denote the quadcopter’s angular velocity in E- j Y
frame and B-frame, respectively, and T represents the d = Mp.ee + M/gJ '¿Y t + M—. - e e (11)
transformation matrix, and it's given as follows [15]:
where, i = & ,i,z, 3 , 0,anY 3 , respectively, and Mp > 0 , Mh >
0, and M—> 0 denote the PID controller design parameters.
r1
sin 3 ta n 0 cos 3 ta n 0'
While ve represents the PID generated control output.
0 cos 3 —sin 3
(7)
sin 3 cos 3
0
cos 0 cos 0
B. Fuzzy PID Control Design
C. Quadcopter Dynamic Model
Fuzzy logic control (FLC) represents a major branch of
The quadcopter UAV dynamic equations [16] are divided into
intelligent control systems that exploit a human understanding
two subsystems and are given as follows: The quadcopter
position subsystem dynamic equations:
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 11:27:36 UTC from IEEE Xplore. Restrictions apply.
of the plant in the process of control design [7]. Figure 3 reveals and —e have been used to map the fuzzy logic controller output U
the general architecture of the FLC. into u . Therefore, the obtained control output u is used to
control the nonlinear dynamics of the quadcopter system, as
Figure 4 illustrates the fuzzy logic controller (FLC) structure as depicted in Figure 4.
presented in [17], where the FLC represents the core building
block. While Figure 5 shows the FLC inputs membership
functions.
Following the centroid technique, the defuzzified output can
be given as follows [18], [19]:
where,
_ X U=l + S i=L+ l
(13)
X i= i r u m / (&i ) + X i=L+l
and
w
S ì =l + X i=fl+l &ir ut/C & i) Fig u r e 5 FLC m e m b e r s h ip f u n c t io n s .
1 _ w (14)
X f = ir ;m/(& i) + X i=fl+l r ut/C & i)
Fig u r e 6 C o n t r o l o u t pu t s u r f a c e o f t h e FLC.
N Z P
N NB NM Z
Z NM Z PM
Quadcopter Dynamics P Z P PB
Fig u r e 4 FPID C o n t r o l l e r .
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 11:27:36 UTC from IEEE Xplore. Restrictions apply.
presented the inner and outer loops FPID controllers’ The results compared the performance of the proposed FPID
parameters, respectively. controller against the conventional PID in terms of the error
trajectory tracking for the quadcopter UAV position and attitude.
•e 50 50 40
2 2 2 Fig u r e 8 P o s it io n t r a j e c t o r y t r a c k in g in x , y , a n d z d ir e c t io n s
c 0 0.2 0.2 15 f o r FPID a n d PID c o n t r o l l e r s .
Ci 20 20 50
\ -...- - =£
V. SIMULATION RESULTS
10 20 30 40 50 60
This section presented the simulation results for the overall
quadcopter control system, and the results have been performed
; \ ey-PID
V
using Matlab/Simulink platform. The dynamic differential ey-FPID
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 11:27:36 UTC from IEEE Xplore. Restrictions apply.
/ ¿ ¿ ( a t t i t u d e ) % I (e^ + eg + e p j d t (16)
o
Ta b l e 8 ISE f o r t h e a t t it u d e e r r o r s .
Controller PID Fuzzy PID Reduction (%)
ISE value 1.1104 0.3311 70.18%
VI. CONCLUSION
REFERENCES
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 11:27:36 UTC from IEEE Xplore. Restrictions apply.
249-257, 2020.
Authorized licensed use limited to: Robert Gordon University. Downloaded on May 28,2021 at 11:27:36 UTC from IEEE Xplore. Restrictions apply.