Académique Documents
Professionnel Documents
Culture Documents
Logic Controller
M. Ali Usta Ömür Akyazı A. Sefa Akpınar
Dept. of Electrical and Electronics Sürmene Abdullah Kanca MYO, Dept. of Electrical and Electronics
Engineering, Karadeniz Technical Karadeniz Technical University, Engineering, Karadeniz Technical
University, Trabzon/Turkey Trabzon/Turkey University, Trabzon/Turkey
mausta@ktu.edu.tr oakyazi@ktu.edu.tr akpinar@ktu.edu.tr
Abstract—In this paper, an aircraft roll control system based on is called an elevator. Yaw control is achieved by deflecting a
design an autopilot that controls the roll angle of an aircraft is flap on the vertical tail called the rudder and roll control can
modeled using Matlab/Simulink. Firstly, modeling phase begins be achieved by deflecting small flaps located outboard toward
with a derivation of suitable mathematical model to describe the the wing tips in a differential manner [1]. These flaps are
lateral directional motion of an aircraft. Then, the Linear called ailerons. Elevator, rudder and ailerons are depicted in
Quadratic Controller (LQR) and Fuzzy Logic Controller (FLC) Fig. 1.
are developed for controlling the roll angle of an aircraft system.
Simulation results of roll controllers are presented in time
domain and the results obtained with LQR control are compared
with the results of FLC. Finally, the performances of roll control
systems are analyzed in order to decide which control method
gives better performance with respect to the desired roll angle.
According to simulation results, it is showed that LQR controller
deliver the best performance than fuzzy logic controller.
Δv Δv (9)
Figure 3. Definition of forces, moments and velocity components in a body Δβ ≈ tan−1 =
fixed frame [1]. u0 u0
Referring to Fig. 2 and Fig. 3, the rigid body equations of Using this relationship and if the product of inertia Ixz=0,
motion are obtained from Newton’s second law, see [1]. But, a the lateral equations of motion can be rearranged and reduced
few assumption and approximation need to be considered into the state space form in the following manner.
before obtaining the equations of motion. Assume that the
aircraft is in steady-cruise at constant altitude and velocity,
thus, the thrust and drag cancel out and the lift and weight ⎡ • ⎤ ⎡ Yβ Yp ⎛ Y ⎞ g cosθ0 ⎤ ⎡ Yδr ⎤
balance out each other. Also, assume that change in pitch ⎢Δ β• ⎥ ⎢ u − ⎜⎜1− r ⎟⎟ ⎥⎡Δβ ⎤ ⎢ 0
u0 ⎝ u0⎠ u ⎢ ⎥ u0 ⎥ (10)
angle does not change the speed of an aircraft under any ⎢Δ p⎥ ⎢ 0 0 ⎥ Δp ⎢ ⎥⎡Δδ ⎤
⎢ • ⎥ = ⎢ Lβ Lp Lr 0 ⎥ ⎢ ⎥ + ⎢ Lδa Lδr ⎥⎢ a ⎥
circumstance [5]. Under these assumptions, the lateral ⎢ Δ r ⎥ ⎢N ⎢ Δr ⎥ Δδ
directional motion of an aircraft is well described by the Np Nr 0 ⎥⎥⎢ ⎥ ⎢Nδa Nδr ⎥⎣ r ⎦
⎢ •⎥ ⎢ β ⎣Δφ ⎦ ⎢ ⎥
following kinematic and dynamic differential equations. ⎣ Δφ ⎦ ⎢⎣ 0 1 0 0 ⎥⎦ ⎣⎢ 0 0 ⎥⎦
224
TABLE I. THE LATERAL DIRECTIONAL DERIVATIVES STABILITY ∆β
PARAMETERS ∆δa u(t) Longitudinal
+ ∆p
N Aircraft
∆r
The Dynamic Pressure and the Terms Dynamics
- ∆φ
−
2
General Q = 36.8 Ib/ ft QS c = 38596 ft ⋅ Ib
Aviation QS = 6771 Ib c 2u0 = 0.016 s Kβ
Airplane: +
NAVIONa Components + Kp
Y-Force Yawing Moment Rolling Moment
Derivatives Derivatives Derivatives Kr
Pitching +
Yv=-0.254 Nv=0.025 Lv=-0.091 +
Velocities Kφ
Side Slip Angle Yβ=-44.665 Nβ=4.549 Lβ=-15.969
Feedback Gain Matrix
Rolling Rate Yp=0 Np=-0.349 Lp=-8.395
Figure 4. Full-state feedback controller with reference input for the roll
control system.
Yawing Rate Yr=0 Nr=-0.76 Lr=2.19
Rudder
Yδr=12.433 Nδr=-4.613 Lδr=23.09
The state and output matrix equations describing the lateral
Deflection directional equations of motion can be written as the following
Aileron equation.
Yδa=0 Nδa=-0.224 Lδa=-28.916
Deflection
value given Table I by using equation (10). This work presents x(t ) = Ax(t ) + Bu(t ) (13)
the roll control schemes for roll angle of an aircraft system. y(t ) = Cx(t ) + Du(t)
So, the rudder deflection given in equation (10) is not used.
And that all of the four states x are available for the
controller. The feedback gain is a matrix K of the optimal
⎡ • ⎤ − 0.254 − 1 0.183⎤⎡Δβ ⎤ ⎡ 0 ⎤
control vector.
⎢Δ β• ⎥ ⎡
0
(11)
⎢Δ p⎥ ⎢− 15.969 − 8.395 2.19 0 ⎥⎥⎢⎢ Δp ⎥⎥ ⎢⎢− 28.916⎥⎥
⎢ •⎥=⎢ + [Δδa ] K = [K β
⎢ Δ r ⎥ ⎢ 4.549 − 0.349 − 0.76 0 ⎥⎢ Δr ⎥ ⎢ − 0.224 ⎥
K p Kr Kϕ ] (14)
⎢ • ⎥ ⎢⎣ 0 ⎥⎢ ⎥ ⎢ ⎥
1 0 0 ⎦⎣Δφ ⎦ ⎣ 0 ⎦ u(t ) = −K ⋅ x(t) + Δδ a ⋅ N
⎣ Δφ ⎦
Transfer function from aileron deflection angle to roll So as to minimize the performance index,
angle is given the following equation.
∞
(
J = ∫ xT Qx+ u T Ru ⋅dt) (15)
Δφ(s) 2
− 28.92s − 29.81s − 140.8 (12) 0
=
Δδ a (s) s 4 + 9.409s 3 + 14.02s 2 + 48.5s + 0.3979
Where Q is state-cost matrix and R is performance index
matrix. For this study, R=1 and Q=CTxC where C is the matrix
III. DESIGN PROCESS OF THE PROPOSED CONTROLLER from state equation (13) and CT is the matrix transpose of C.
Linear Quadratic Regulator (LQR) and Fuzzy Logic For designing LQR controller, the value of the feedback gain
Controller (FLC) are proposed for the roll control system and matrix, K, must be determined. The following block is shown
in this section; these controllers are described in detail. how to determine the values of K.
225
These are shown in Fig. 4. So, the reference must be scaled by TABLE II. RULES FOR THE FUZZY LOGIC CONTROLLER
scaling factor N. The scaling factor N is obtained from Matlab e
function that is a designer-defined function in m-file code. In NB NS ZZ PS PB
∆e
this case, N=-8.6603 is determined. NB NB NB NS NS ZZ
226
A unit step command is required in order for roll angle to FLC has more state-steady error than LQR. It’s mean that FLC
follow the reference value of 0.15 radian=8.625 degree. The eliminate the effect of disturbances in the system.
system response with LQR is shown in Fig. 10 and Fig. 11
shows the fuzzy logic controller response of the roll angle. TABLE III. SUMMARY OF PERFORMANCE CHARACTERISTIC FOR ROLL
ANGLE
V. CONCLUSION
In this paper, the model of an aircraft roll control system
Figure 10. The response of the system for LQR. that is helpful in developing the control strategy for a,,n actual
aircraft system was designed for Matlab/Simulink
environment and control methods were proposed for this
system. LQR and FLC are successfully designed and
presented for this situation. The results from LQR are
compared with those obtained using FL controller. It was
observed that both FLC and LQR have different settling time,
steady-state error and overshoot. LQR has good and
acceptable performances according to the results from
simulation and analysis. Practically obtained results show that
LQR controller relatively gives the best performance in
comparison to FLC and using such controller increases speed
of the time response.
Figure 11. The response of the system for FLC.
REFERENCES
The system responses from both controllers are plotted on
the same graph for better comparison. Fig. 12 is shown the [1] R. C. Nelson, 1998, Flight Stability and Automatic Control, McGraw Hill,
Second Edition.
output of the system for FLC and LQR.
[2] Lucio R. Riberio and Neusa Maria F. Oliveira, “UAV Autopilot
Controllers Test Platform Using Matlab/Simulink and X-Plane”, 40th
ASEE/IEEE Frontiers in Education Conference, October 27-30, 2010,
Washington, DC.
[3] www.nasa.gov (01.03.2011)
[4] Nurbaiti Wahid and Mohd Fua’ad Rahmat, “Pitch Control System Using
LQR and Fuzzy Controller”, 2010 IEEE Symposium on Industrial
Electronics and Applications (ISIEA 2010), October 3-5, 2010, Penang,
Malaysia
[5] http://www.engin.umich.edu/class/ctms/index.htm (01.03.2011)
[6] Mıchael V. Cook, 2007, Flight Dynamics Prıncıples, Elsevıer, Second
Edition.
[7] I. H. Altas and A. M. Sharaf, “A Generalized Direct Approach for
Figure 12. The response of the system for FLC and LQR. Designing Fuzzy Logic Controllers in Matlab/Simulink GUI
Environment”, Accepted for publication in International Journal of
It is observed that LQR controller gives faster response as Information Technology and Intelligent Computing, Int. J. IT&IC no.4
compared to FLC in terms of rising time. But, the results vol.1.
clearly demonstrate that LQR controller is occurred overshoot [8] İ.H. Altaş, “Bulanık Mantık: Bulanık Denetim”, Enerji, Elektrik,
more than FLC. Furthermore, although both controllers follow Elektromekanik-3e, vol.64, pp. 76–81,1999.
the desired angle, LQR controller follow the reference input [9] İ. H. Altaş, “Bulanık Mantık Denetleyici: Matlab/Simulink Ortamı İçin
by producing very small steady-state error in comparison to Bir Modelleme”, Otomasyon Dergisi, Bileşim Yayınları, Mart 2007, pp.
FLC. This can be indicating that LQR controller can handle 58-62.
the effect of disturbances in the system. FLC gives a good
performance in terms of percent overshoot that is 0%. But, [10] Joao P. Hespanha, April 1,2007, Umdergraduate Lecture Notes on
LQG/LQR Controller Design.
227