Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

ARTICLE IN PRESS

Control Engineering Practice 18 (2010) 761–772

Contents lists available at ScienceDirect

Control Engineering Practice


journal homepage: www.elsevier.com/locate/conengprac

Roll-channel fractional order controller design for a small fixed-wing


unmanned aerial vehicle
Haiyang Chao a, Ying Luo b,a, Long Di a, Yang Quan Chen a,
a
Center for Self-Organizing and Intelligent Systems, Department of Electrical and Computer Engineering, Utah State University, Logan, UT 84322-4120, USA
b
Department of Automation Science and Engineering, South China University of Technology, Guangzhou, China

a r t i c l e in fo abstract

Article history: Low-cost small unmanned aerial vehicles (UAVs) attracted researchers and developers around the
Received 1 April 2009 world for use in both military and civilian applications. However, there are challenges in designing
Accepted 1 February 2010 stable and robust flight controllers that handle the UAV model and environmental uncertainties. This
Available online 15 March 2010
paper focuses on the design and implementation of a roll-channel fractional order proportional integral
Keywords: (PIl ) flight controller for a small fixed-wing UAV. Time domain system identification methods are used
Fractional order controller to obtain a simple auto-regressive with exogenous input (ARX) model of the UAV roll-channel. A new
Unmanned aerial vehicle fractional order PI controller design method is introduced based on the identified simple model. The
Flight control fractional order PIl controller outperforms the optimized traditional integer order proportional integral
PID controller
derivative (PID) controller due to the fractional order introduced as a design parameter. The simulation
results show the effectiveness of the proposed controller design strategy and the robustness of
fractional order controller under conditions of wind gusts and payload variations. Further real flight test
results are also provided to show the advantages of the proposed PIl controller.
& 2010 Elsevier Ltd. All rights reserved.

1. Introduction flight can be easily affected by many factors:

The unmanned aerial vehicle (UAV) market has grown rapidly


(1) Wind. Wind gusts present a significant control challenge for
this decade including both military and civilian applications.
low-mass airplanes.
Micro and small UAVs attract researchers and developers around
(2) Flight altitude. UAVs may need to fly at a broad range of
the world since they are expendable, easy to be manipulated and
altitudes for different missions.
maintained (Beard et al., 2005; Chao et al., 2008). They have great
(3) Payload variations. A good UAV flight controller should be
potential for use in scenarios like remote sensing, search and
robust to payload variations so that it will not stall with little
rescue, environmental monitoring, etc.
perturbation.
Most UAVs can be utilized as flying sensors to investigate a
(4) Manufacturing variations and modeling difficulties. Many
specified area from a certain altitude. At extremely low altitudes
research UAVs are built from remote controlled (RC) air
(e.g.,  100 m above the ground), the UAV has an obvious safety
frames, making it hard to get an accurate dynamic model.
advantage over a manned aircraft because the autopilot can be
(5) Resource limitations. Small or micro UAVs area also con-
used for the autonomous navigation replacing the human pilot.
strained by the onboard resources such as limited accuracy for
The autopilot or flight control system plays a key role not only for
onboard inertial sensors, limited computational power,
the flight stability and navigation but also for sensor interpreta-
limited size and weight, etc.
tion considerations (Chao, Cao, & Chen, 2010). In a remote
surveillance task, the navigation performance of UAVs while
flying horizontally could highly affect the georeferencing accuracy All the above factors make it very important to design a robust
of the acquired aerial images. Small or micro UAV autonomous and flexible flight controller. A lot of researchers have looked into
the problem of UAV modeling and control. Open-loop steady state
flight experiments are proposed for the aileron-(roll rate) and
elevator-(pitch rate) loop system identification (Nino, Mitrachea,
Cosynb, & Keyser, 2007). But the open-loop system identification
 Corresponding author. Tel.: + 1 435 7970148; fax: + 1 435 7973054. has to have special requirements on UAV flight stability, which
E-mail addresses: chaohaiyang@ieee.org (H. Chao), ying.luo@ieee.org (Y. Luo), limits the roll and pitch reference signals to be as small as
long.di@aggiemail.usu.edu (L. Di), yqchen@ieee.org (Y.Q. Chen). 0.02 rad. UAV model identification (ID) experiments can also be

0967-0661/$ - see front matter & 2010 Elsevier Ltd. All rights reserved.
doi:10.1016/j.conengprac.2010.02.003
ARTICLE IN PRESS
762 H. Chao et al. / Control Engineering Practice 18 (2010) 761–772

performed with human operators controlling the UAVs remotely. (6) Air speed (va), ground speed (vg), angle of attack (a) and slide-
Different types of auto-regressive with exogenous input (ARX) slip angle (b).
models are identified while the UAV is flying in loiter mode (Wu,
Sun, Peng, & Zhou, 2004). Human operators could generate open- UAV control inputs generally include: aileron (da ), elevator
loop responses but it may be impossible for some specially (de ), rudder (dr ), and throttle (dt ). There are also elevons which
designed reference like pseudo-random binary signals (PRBS). combine the functions of the aileron and the elevator. Elevons are
Other researchers also tried closed-loop system identification frequently used on flying wing airplanes. Different types of UAVs
method on separate channels of unmanned helicopters (Cai, Chen, may have different control surface combinations. For example,
Peng, Dong, & Lee, 2008; Duranti & Conte, 2007; Lee, Kim, & Suk, some delta wing UAVs can just have elevator, aileron and throttle
2002). with no rudder control.
There are trade-offs like safety and maneuverability while The six degrees of freedom UAV dynamics can be modeled by a
designing UAV system identification experiments. The system ID series of nonlinear equations:
experiments are not easy to repeat since the UAV system could
x_ ¼ f ðx; uÞ; ð1Þ
easily stall, given a too aggressive control input. On the other
hand, very small excitations may not be adequate to excite the
x ¼ ½pn pe h u v w f y c p q rT ; ð2Þ
system dynamics. A closed-loop system identification method is
used in this paper with considerations for flight stability and test
u ¼ ½da de dr dt T : ð3Þ
difficulty. The UAV is first roughly tuned with a set of initial
proportional integral derivative (PID) parameters sufficient to The ultimate objective of UAV flight control is to let the UAV
guarantee stability while flying horizontally. Then the UAV initial follow a preplanned 3-D trajectory with pre-specified orientations.
closed-loop model is identified and the controllers are designed Due to the limits from the hardware, most current UAV autopilots can
based on the identified models as discussed in detail in this paper. only achieve the autonomous waypoints navigation objective. There
Fractional order control (FOC) has attracted a lot of interest are basically two types of controller design approaches: the precise-
recently. FOC introduces new fractional derivative and fractional model based nonlinear controller design and the in-flight tuning
integral operators to the classical PID control. It provides based PID controller design. The first method requires a precise and
additional design freedom for the controller tuning (Podlubny, complete dynamic model, which is usually very expensive to obtain.
1999b). FOC has advantages in many scenarios such as servo On the other hand, it is estimated that more than 90% of the current
control (Xue, Zhao, & Chen, 2006), water tank control, quad rotor working controllers are PID controllers (Desborough & Miller, 2001).
(Monje, Liceaga-Castro, & Liceaga-Castro, 2008), and other Most commercial UAV autopilots use cascaded PID controllers for
industrial applications (Monje, Vinagre, Feliu, & Chen, 2008). autonomous flight control (Chao et al., 2010).
The fractional order proportional integral (PIl ) controller is one of The cascaded PID controller can be used for UAV flight control
the simplest fractional order controllers similar to the classical because the nonlinear dynamic model can be linearized around
proportional integral (PI) controller. FOC can have advantages certain trimming points and be treated as a simple single-input
over traditional controllers because FOC introduces fractional and single-output (SISO) or multiple-input and multiple-output
order operators (Chen, Bhaskaran, & Xue, 2008; Luo & Chen, (MIMO) linear system. The UAV dynamics can be decoupled into
2009). To simplify the flight control problem, the aileron-roll loop two modes for the low level control:
is singled out for controller comparisons between the fractional
order PI (FOPI) controller and the integer order PID controller. The (1) Longitudinal mode: pitch loop.
proposed controllers are tested in conditions like strong wind (2) Lateral mode: roll loop.
gusts and payload variations in simulation and real flight tests.
The major contributions of this paper include: being the first to After dividing the 3-D rigid body motion control problem into
implement a fractional order flight controller on a fixed-wing UAV several loops, cascaded controllers can be designed to accomplish
platform with successful flight test results, offering a practical the UAV flight control task. The roll loop control problem or
solution for the robust controller design without a precise dynamic lateral dynamics is carefully studied in this paper. The roll loop of
model, and verifying that the FOPI controller could outperform the a UAV can be treated as a SISO (roll-aileron) system around the
integer order PI controller in flight control applications. equilibrium point. In other words, it can be treated as a SISO
The paper is organized as follows. The preliminaries of the UAV system around the point where it can achieve a steady state flight.
flight control basics are discussed in Section 2. Based on these Steady state flight means all the force and moment components in
basics, the first order ARX model and first order plus time delay the body coordinate frame are constant or zero (Stevens & Lewis,
(FOPTD) model are identified in Section 3. Then, the fractional 2003). An intuitive controller design is to use the classical PID
order PIl controller design strategy is introduced based on the controller structure as follows:
robustness requirements in Section 4. Simulation results show the  
K
effectiveness of the proposed fractional PIl controller in Section 5. CðsÞ ¼ Kp 1 þ i þ Kd s : ð4Þ
s
Section 6 focuses on the flight experimental results. Finally,
conclusion and future work are further discussed in Section 7. All the controller parameters (kp, ki, kd) will be determined by
either off-line or on-line controller tuning experiments.

2. Preliminaries of UAV flight control


3. Roll-channel system identification and control
UAV dynamics can be modeled using system states including:
The most intuitive method for roll-channel system identifica-
(1) Position: e.g., longitude (pe), latitude (pn), height (h) (LLH); tion is to go through an open-loop analysis. However, this method
(2) Velocity: three axis (u), (v), (w); can only be employed with several constraints including small
(3) Attitude: roll (f), pitch (y), and yaw (c); reference (as little as 0.02 rad for the roll set point in Nino et al.,
(4) Gyro rate: gyro acceleration p, q, r; 2007) and difficulties in keeping the UAV stable under the open-
(5) Acceleration: acceleration ax, ay, az; loop configuration. Therefore, the closed-loop system identifica-
ARTICLE IN PRESS
H. Chao et al. / Control Engineering Practice 18 (2010) 761–772 763

tion method is used in this paper because it can guarantee the The evaluation function defined below is used to minimize the
flight stability of the UAV. The only prior condition is that a rough least squares of the errors
PID parameter tuning must be performed before the system
X
N
identification experiment. V¼ eT ðkÞeðkÞ; ð8Þ
The whole system identification procedure includes UAV trim k¼1
tuning, rough PID tuning to determine C0(s) and UAV system where N is the total data length. The classical least squares
identification experiments with pre-specified excitations, as method can be used here to get the optimal ARX model
shown in Fig. 1. parameter. In MATLAB, the related function is called arx (Ljung,
Once the system model is derived, another outer loop controller 2009). FOPTD model is simplified from the higher order ARX
C(s) will be designed based on modified Ziegler–Nichols tuning model using the getfoptd function (Xue & Chen, 2007).
algorithm or fractional order PIl design method, shown in Fig. 2.

3.1. System model 4. Fractional order controller design

For the system model, a simple ARX model is used since the Based on the identified simple model, a new fractional order PI
first order ARX model can provide some simplicity for the further controller is then designed with pre-specified performance
fractional order controller design. The ARX model is defined as requirements.
YðzÞ a0 þ a1 z1 þ    þ am zm
¼ ; ð5Þ 4.1. Fractional order operators
RðzÞ b0 þ b1 z1 þ    þbn zn
where Y(z) is the system output, e.g., the roll angle, and R(z) is the
There are several definitions for fractional order operators
reference signal, e.g., the reference roll angle.
including Riemann–Liouville (RL) definition, Caputo definition
To make a comparison, the first order plus time delay (FOPTD)
and Grünwald–Letnikov definition. Riemann–Liouville definition
model is also simplified via frequency-domain fitting (Xue &
is one of the most used definitions. The RL fractional integral of
Chen, 2007) from the high order ARX model for applying the
function f(t) is defined as (Podlubny, 1999a)
modified Ziegler Nichols PID tuning rule, Z t
1
YðsÞ KeLs D
0 t
l
f ðtÞ9 ðttÞl1 f ðtÞ dt; ð9Þ
PðsÞ ¼ ¼ : ð6Þ GðlÞ 0
RðsÞ Ts þ1
where 0 o l o1, GðÞ is the Gamma function defined as
Z 1
3.2. Excitation signal for system identification GðzÞ ¼ et t z1 dt; ReðzÞ 4 0: ð10Þ
0

The excitations for the system ID could be step response, square The Laplace transform of the RL fractional integral under zero
wave response or pseudo-random binary sequence (PRBS) or other initial conditions can be derived as
pre-specified references. The excitation of the system needs also to
l 1
be carefully chosen because the frequency range of the input L½0 D
t f ðtÞ ¼ FðsÞ; ð11Þ
sl
reference signal may have a huge impact on the final system
identification results. Two reference signals are chosen: square wave where F(s) is the Laplace transform of f(t).
reference and PRBS. PRBS is chosen in this paper for simulation The Caputo fractional integral of order 0 o l o 1 is defined as
study because its signal is rich in all the interested frequency. (Podlubny, 1999a)
Z t
l 1 yðtÞ
3.3. Parameter optimization 0 Dt f ðtÞ ¼ dt: ð12Þ
GðlÞ 0 ðttÞ1l
The RL definition and Caputo definition are almost the same
Least squares error method is used for fitting the model to the
except for some initial value settings.
real data. Assume the ARX model is given by (5). Then
1
^
yðkÞ ¼ ða0 rðkÞ þ    þam rðkmÞb1 yðk1Þ    bn yðknÞÞ þ eðkÞ; 4.2. PIl controller design
b0
ð7Þ
With the introduction of fractional derivatives and integrals,
where e(k) is the white noise caused by sensor measurements. the most commonly used PID controller can be extended to PIl Dm

FO-PI Controller Design


Trim Tuning PID Rough Tuning System ID
PID Controller Design

Fig. 1. FOPI flight controller design procedure.

System ID P(s)

Reference C(s) C0(s) G0(s) y


+ +
- -

Fig. 2. System identification procedure.


ARTICLE IN PRESS
764 H. Chao et al. / Control Engineering Practice 18 (2010) 761–772

controllers with more tuning knobs. PIl controller is studied in where


this paper since it has the same amount of tuning parameters as
JðoÞ ¼ ½ð1 þKi ol cosðlp=2ÞÞ2 þ ðKi ol sinðlp=2ÞÞ2 1=2 :
the integer order PID controllers to allow a fair comparison. The
fractional order proportional integral controller to be designed (2) According to the first order system transfer function (14), its
has the following form of transfer function: frequency response could be plotted as follows:
  1
K PðjoÞ ¼ :
CðsÞ ¼ Kp 1þ li ; ð13Þ TðjoÞ þ1
s
where l A ð0; 2Þ. The phase and gain of the plant are as follows:
Arg½PðjoÞ ¼ tan1 ðoTÞ;
4.2.1. Controller design specifications
Assume that the open-loop transfer function for the system is 1
jPðjoÞj ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi :
given by G(s), the gain crossover frequency is given by oc and 1þ ðoTÞ2
phase margin is specified by fm . To ensure the system stability
(3) The open-loop frequency response GðjoÞ is that
and robustness, three specifications are proposed as follows
(Li, Luo, & Chen, 2010): GðjoÞ ¼ CðjoÞPðjoÞ:
The phase and gain of the open-loop frequency response are
(i) phase margin specification, as follows:
Arg½Gðjoc Þ ¼ Arg½Cðjoc ÞPðjoc Þ ¼ p þ fm ; Ki ol sinðlp=2Þ
Arg½GðjoÞ ¼ tan1 tan1 ðoTÞ;
(ii) gain crossover frequency specification, 1þ Ki ol cosðlp=2Þ
jGðjoc ÞjdB ¼ jCðjoc ÞPðjoc ÞjdB ¼ 0;
Kp JðoÞ
(iii) robustness to gain variation of the plant demands that the jGðjoÞj ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi :
phase derivative w.r.t. the frequency is zero, which is to say 1 þðoTÞ2
that the phase Bode plot is flat around the gain crossover (4) According to Specification (i), the phase of GðjoÞ can be
frequency. It means the system is more robust to gain expressed as
changes and the overshoots of the response are almost
Arg½Gðjoc Þ ¼ p þ fm : ð15Þ
unchanged:
 From (15), the relationship between ki and l can be
dðArgðGðjoÞÞÞ
 ¼ 0: established as follows:
do o ¼ oc
tanðtan1 ðoc TÞ þ fm Þ
Ki ¼ ; ð16Þ
oc l sinðlp=2Þ þ M
4.2.2. FOPI controller design for the first order systems
where M ¼ o l 1
To simplify the presentation, the simple form of G(s) is studied c cosðlp=2Þtanðtan ðoc TÞ þ fm Þ.
in the later part without loss of generality since any complex (5) According to Specification (iii) about the robustness to gain
system can be simplified to a simple model. The typical first order variations of the plant

control plant discussed in this paper has the following form of dðArgðGðjoÞÞÞ K locl1 sinðlp=2Þ T
 ¼ 2l i  ¼ 0:
transfer function: do o ¼ oc oc þ 2Ki olc cosðlp=2Þ þ Ki2 1 þ ðT oc Þ2
K ð17Þ
PðsÞ ¼ : ð14Þ
Ts þ 1 From (17), the relationship between ki and l is
Note that, the plant gain K in (14) can be normalized to 1 h  p  pi
l 2 l
since the proportional factor in the transfer function (14) Eo2
c Ki þ Eþ 2Eo c cos l locl1 sin l Ki ¼ 0;
2 2
can be incorporated in the proportional coefficient of the
controller. l 2
Eo2
c Ki þ FK i þE ¼ 0;
According to the form of the typical first order systems l l1
where F ¼ 2Eo c cosðlp=2Þloc sinðlp=2Þ, then
considered and the FOPI controller discussed, the FOPI controller qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
can be systematically designed following the three specifications F 7 F 2 4E2 o2 l
c
introduced above. The FOPI controller parameters can be obtained Ki ¼ ; ð18Þ
2Eoc 2 l
using the following steps.
The open-loop transfer function G(s) of the fractional order PI where E ¼ T=ð1 þ ðT oc Þ2 Þ.
controller for the fractional order system is that (6) From Specification (ii), an equation about kp is
GðsÞ ¼ CðsÞPðsÞ: Kp Jðoc Þ
jG2 ðjoc Þj ¼ jC2 ðjoc ÞPðjoc Þj ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ 1: ð19Þ
1 þ ðoc TÞ2
(1) According to the fractional order PI controller transfer
function form (13), its frequency response could be plotted
as follows: Eqs. (17)–(19) could be solved to get l, Ki and Kp. However, the
  p  p solution may not exist for the integer order PID controller. In
CðjoÞ ¼ Kp 1þ Ki ol cos l jK i ol sin l : other words, fractional order controllers provide a larger solution
2 2
candidate set compared with integer order ones. A graphical
The phase and gain are as follows: plotting method is used in this paper to obtain the solutions.
Ki ol sinðlp=2Þ
Arg½CðjoÞ ¼ tan1 ;
1 þ Ki ol cosðlp=2Þ 4.2.3. FOPI controller design for FOPTD systems
Similarly, the FOPI controller could be designed for the
jCðjoÞj ¼ Kp JðoÞ; FOPTD systems. The FOPTD system could be modeled by
ARTICLE IN PRESS
H. Chao et al. / Control Engineering Practice 18 (2010) 761–772 765

the following: a fractional order integrator if 1 o l o0. This approximation


1 keeps the impulse response invariant.
PðsÞ ¼ eLs : ð20Þ
Ts þ 1
Following the similar derivation described above, the para-
5. Simulation results
meters for the FOPI controller could be calculated from the
following equations:
The proposed system identification algorithm and fractional
tan½arctanðoc TÞ þ fm þLoc  order controller design techniques are first tested on the Aerosim
Ki ¼ ; ð21Þ
W simulation platform, a complete six degrees of freedom UAV
l 2
dynamic model. For comparison, an integer order PID controller is
Ao2
c Ki þ BK i þA ¼ 0; ð22Þ also designed using modified Ziegler–Nichols tuning method.
qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi Both controllers are tested in scenarios including step response,
1 þ ðoc TÞ2 wind gust response and payload variation cases. Simulation
Kp ¼ ; ð23Þ
Jðoc Þ results verify the advantage of FOC controllers over traditional
PID controllers.
where
l l
W ¼ o
c cosðlp=2Þtan½arctanðoc TÞ þ fm þ Loc  þ oc sinðlp=2Þ; 5.1. Introduction to Aerosim simulation platform
T
A¼ þ L; Aerosim is a nonlinear six degrees of freedom MATLAB
1 þ ðoc TÞ2
Simulink model designed for the aerosonde UAV (Niculescu,
 p  p 2002). It is developed by Marius Niculescu from u-dynamics with
l
B ¼ 2Ao
c cos l locl1 sin l : the educational version for free with all the key blocks
2 2
implemented through dynamic link libraries (dlls).
The control inputs of the aerosonde model include flap, aileron,
4.3. Fractional order controller implementation
elevator, rudder, throttle and the wind. The outputs composed of:

To implement a PIl fractional order controller, an approxima-


(1) System states including ground speed: vn, ve, vd; angular rate:
tion must be used since the fractional order operator has infinite
p, q, r; quaternion: q0, q1, q2, q3; position: pn, pe, h, etc.
dimensions. The Oustaloup approximation method is to use a
(2) Sensor measurements including GPS: pn, pe, h, vn, ve, vd;
band-pass filter to approximate the fractional order controller
inertial measurement unit (IMU): ax, ay, az, p, q, r; wind: vw n,
based on frequency domain response. There are also other
vw w
e , vd ; magnetic: hx, hy, hz.
methods that directly approximate the FO controller responses
(Chen, 2009).
The minimal simulation time step is 0.02 s (50 Hz).
4.3.1. Oustaloup approximation
The Oustaloup, Sabatier, and Lanusse (1999) Recursive Ap- 5.2. System identification of roll-channel
proximation Algorithm is used in this paper for simulation part
due to its easiness to adapt to MATLAB Simulink environment. According to the controller design procedure shown in Fig. 1,
Assuming the frequency range is chosen as ðob ; oh Þ, the the trim tuning experiment is performed first in open-loop to get
Oustaloup approximate transfer function for sg can be derived the control input trims for a steady flight state. The trims are
as follows: da ¼ 0, de ¼ 3 with throttle set as 0.7 (Aerosim does not provide
YN the units for the above variables). It needs to be pointed out that
s þ o0k
Gappr ðsÞ ¼ V ; ð24Þ da may not be zero for real UAV platforms due to the
s þ ok
k ¼ N manufacturing accuracy. Then the pitch-elevator loop and
where N is a pre-specified integer, and the zeros, poles and the aileron-roll loop PID controllers should be added with references
gain can be evaluated from as shown in Fig. 3. For simplicity, the reference pitch angle is set
 ðk þ N þ ð1=2Þð1gÞÞ=ð2N þ 1Þ as 0 all the time. The PID parameters are tuned roughly through
o step response analysis to achieve a steady flight.
o0k ¼ ob h ; ð25Þ
ob
 ðk þ N þ ð1=2Þð1 þ gÞÞ=ð2N þ 1Þ LLH
oh Throttle Roll
C
ok ¼ ob ; ð26Þ
ob Aileron UAV Attitude
Elevator Dynamics Gyro/Accel Pitch
 g=2 Y
N
oh ok
V¼ : ð27Þ
ob k ¼ N
o0k

4.3.2. Digital approximation + -


PID
However, the Oustaloup approximation cannot be directly +
used in digital control because the digital accuracy issues. sl can Trim
+
Pitch_ref
also be realized by the Impulse Response Invariant Discretization
(IRID) method (Chen, 2008) in time domain, where a discrete- + -
PID
time finite dimensional (z) transfer function is computed to
+ +
approximate the continuous irrational transfer function sl , s is the Trim
Roll_ref
Laplace transform variable, and l is a real number in the range of
(  1, 1). sl is called a fractional order differentiator if 0 o l o 1 and Fig. 3. UAV flight controller design procedure.
ARTICLE IN PRESS
766 H. Chao et al. / Control Engineering Practice 18 (2010) 761–772

A square wave is chosen as the reference input because no models in Fig. 4. It can be seen that the simulated time domain
sensor noises are added in the simulation. The Steiglitz–Mcbride responses match the outputs from Aerosim nonlinear model quite
iteration method is used to get the ARX model of fref f loop. accurately for both the first order and the fifth order ARX models.
Here, time domain system identification method is chosen The order of five is decided based on numerical experiments.
because the difficulties in choosing the trustable frequency range
when analyzing the flight log. MATLAB function stmcb is used to 5.3. Fractional order PI controller design procedure
get the models including: 1st order ARX model, 5th order ARX
model and first order plus time delay (FOPTD) model simplified Given the first order model identified above, it can be written
from the 5th order ARX model: as K = 1.0073 rad  1, T = 0.0727 s as Eq. (14). The fractional order
13:86 1:0073 PI controller to be designed is shown in Fig. 5.
G1 ðsÞ ¼ ¼ ; ð28Þ The procedure of parameter selection is summarized as below:
s þ13:76 0:0727s þ 1

N1 ðsÞ (1) The controller performance specifications are chosen as


G2 ðsÞ ¼ ; ð29Þ oc ¼ 10 rad=s, fm ¼ 703 .
D1 ðsÞ
(2) The graphic plotting method is used to find the solution for
1:0336e0:0491s the FOPI parameters. Plot the curve of Ki versus l according to
G3 ðsÞ ¼ ; ð30Þ (17), and plot the curve of Ki w.r.t. l according to (18). The
0:0440s þ1
values of l and Ki can be obtained from the intersection of the
where N1(s) =  9.393s4 + 553.8s3 + 952.8 s2 + 10960s  632.9 two curves, which reads l ¼ 1:111, Ki = 28.31 rad  1.
and D1(s) = s5 + 21.15 s4 + 662.1s3 + 1705s2 + 10920s  612.3. (3) kp can be calculated from (19), Kp =0.5503 rad  1.
The roll reference R(N) and the roll angle Y(N) are shown together (4) Then the designed fractional order PI controller needs to be
with the simulated square wave responses from the identified validated first, with Kp = 0.5503 rad  1, Ki = 28.31 rad  1
l ¼ 1:111. The Bode plots of the system designed are plotted in
Fig. 6. It can be seen that the phase Bode plot is flat, at the gain
15 crossover frequency, all three specifications are satisfied precisely.
roll
ref
id
The Oustaloup et al. (1999) realization of FOC controller is used
10
in simulation. The related parameters are chosen as N = 3,
ob ¼ 0:05 rad=s, oh ¼ 50 rad=s.
5
5.4. Integer order PID controller design
φ (deg.)

0
As one of the most popular PID controller tuning rules,
modified Ziegler–Nichols (MZN) PID tuning rule is chosen to
–5 make a comparison with the designed FOPI controller. MZN
tuning method (Xue & Chen, 2007) divides the tuning problem
into several cases based on different system dynamics.
–10
(1) Lag dominated dynamics (Lo 0:1T): Kp = 0.3T/K/L, Ki = 1/(8L).
–15 (2) Balanced dynamics (0:1T o Lo 2T): Kp = 0.3T/K/L, Ki = 1/(0.8T);
8 9 10 11 12 13 14 15 16 17 (3) Delay dominated dynamics (L 42T): Kp = 0.15/K, Ki = 1/(0.4L).
time (s)
The first order plus time delay (FOPTD) model is identified as
L = 0.0491 s, T = 0.0440 s. It falls into the balanced dynamics
15 category. So, the PID parameters are designed as Kp =
roll
ref
10 id
LLH
Throttle Roll
C
Aileron UAV Attitude
5
Elevator Dynamics Gyro/Accel Pitch
φ (deg.)

–5 + -
PID
+ +
Trim Pitch_ref
–10
+ -
PID
–15
+ + -
8 9 10 11 12 13 14 15 16 17 Trim
FOPI
time (s) +
Roll_ref
Fig. 4. System identification of roll-channel. (a) First order ARX model. (b) Fifth
order ARX model. Fig. 5. FOPI flight controller.
ARTICLE IN PRESS
H. Chao et al. / Control Engineering Practice 18 (2010) 761–772 767

Bode Diagram
100

50

Magnitude (dB)
0

−50

−100

−150
−80

−90
Phase (deg)

−100

−110

−120
10−2 10−1 100 101 102 103 104 105 106
Frequency (rad/sec)

Fig. 6. Bode plot with designed FOPI controller.

12 14

12
10

10
8
8
φ (deg.)
φ (deg.)

6
6

4
4

desired desired
2 2 open loop
open loop
MZN–PI MZN–PI
FOC–PI FOC–PI
0 0
0 1 2 3 4 5 0 1 2 3 4 5 6 7 8
time (s) time (s)

Fig. 7. Step response comparison: modified Z–N versus FOPI. Fig. 8. Robustness to wind disturbance.

0.2601 rad  1, Ki = 28.4091 rad  1, Kd = 0. The step response micro UAVs, the wind gust can cause crashes if the controller is
comparison (103 for roll tracking) using modified Ziegler–Nichols not well designed. So both FOPI controller and MZN PID controller
(MZN) controller and FOPI controller are shown in Fig. 7: are tested under extreme conditions when the wind gust arrives
It can be observed that the designed FOPI controller respond 10 m/s for 0.25 s. The results are shown in Fig. 8. It can be seen
more quickly and settle faster than the IOPI controller. that the FOPI controller has less overshoot than the MZN PID one
and returns to the steady state faster.
Payload variation is also a big issue for small and micro UAVs
5.5. Comparison since the payload can have a big impact on the flight performance.
It could be useful if the controller could adapt itself for different
To show the advantages of FOPI controller over integer order sensor payloads. A controller robust to the payload variations
PID controller, two more experiments were performed to examine could save the UAV end users a lot of time while changing
the robustness. Wind gusts are very common and nontrivial different payloads. To demonstrate the robustness to payload,
disturbances to the flight control system. Especially for small or different controller gains C 1(s) are tested with 80%K and 120%K of
ARTICLE IN PRESS
768 H. Chao et al. / Control Engineering Practice 18 (2010) 761–772

12

10

8
φ (deg.)

desired
2 open loop
MZN–PI
FOC–PI
0
0 1 2 3 4 5
Fig. 10. ChangE UAV platform.
time (s)

12 Table 1
ChangE UAS specifications.

ChangE UAV Specifications


10
Weight about 5.5 lbs
Wingspan 60 in
8
Control inputs Elevon and Throttle
φ (deg.)

Flight time r1 h
Cruise speed 15 m/s
6 Take-off Bungee
Operational range up to 5 miles

desired
2 open loop
MZN–PI The ChangE UAV has both manual RC control mode and
FOC–PI autonomous control mode. It communicates with the ground
0 control station (GCS) through a 900 MHz serial modem.
0 1 2 3 4 5 The navigation waypoints and flying modes could be changed in
time (s) real time from the GCS, shown in Fig. 11. The safety pilot
could also switch between the manual and autonomous control
Fig. 9. Effects of payload gain variations. (a) 80% variation. (b) 120% variation.
mode through the RC transmitter in case of emergency.
In addition, the Paparazzi GCS software provides on-line
parameter changing and plotting functions, which could be
the original roughly tuned proportional gain. The final step easily modified for in-flight tuning of the user-defined controller
response plots show that the FOPI controller is more robust as parameters.
compared to the MZN PI controller (Fig. 9).

6.2. System identification


6. UAV flight testing results
The steady flight tuning is the first step to do a roll-loop
6.1. The changeE UAV platform system identification. The UAV needs to be manually tuned first to
achieve a steady state flight with zero trim on the elevon at the
ChangE, an AggieAir UAS platform (Chao, Jensen, Han, & Chen, nominal throttle, which is chosen as 70% based upon the RC flight
2009) developed at CSOIS, is used as the experimental platform experiences. The Paparazzi flight controller is replaced by the user
for the flight controller design and validation (CSOIS, 2008). It is designed flight controller (Aggie controller inner loop) both at
built by the authors from the delta wing RC airframe called 60 Hz, as shown in Fig. 3. Both the inner roll and pitch PID
Unicorn. The UAV airborne system includes inertial sensors controllers only include the proportional part. The inner Kp for roll
(Microstrain GX2 IMU and u-blox 5 GPS receiver), actuators loop is selected as 10 038 count/rad, or the maximum value before
(elevon and throttle motor), a data modem, an open source oscillations is observed by the RC safety pilot. The aileron
Paparazzi Tiny Twog autopilot and lithium polymer batteries, as control inputs are limited within [  9600, 9600] counts. The
shown in Fig. 10. The Microstrain GX2 IMU could provide angle square response ([  201, 201]) is generated for the system
readings (f, y, c) at up to 100 Hz with a typical accuracy of 721 identification. The reference pitch angle is set as zero all the
under dynamic conditions (Microstrain Inc., 2008). The major time. The system response (roll) and the reference roll angle are
specifications of the ChangE UAV are shown in Table 1. shown in Fig. 12.
ARTICLE IN PRESS
H. Chao et al. / Control Engineering Practice 18 (2010) 761–772 769

Fig. 11. Paparazzi GCS.

40 20
ref roll
roll−id5 ref.
30 roll−id1
15
roll
20 10

10 5
φ (deg)

φ (deg)

0 0

−10 −5

−20 −10

−30 −15

−40 −20
1245 1250 1255 1260 1265 1270 1275 1280 1285 575 580 585 590 595
time (s) time (s)
Fig. 12. Roll-channel system identification. Fig. 13. Proportional controller for outer roll loop.

The first order ARX model of fref f loop is then calculated The FOPTD model could be calculated from the 5th-order ARX
based on the flight data log (20 Hz) using least squares algorithm model above using getfoptd function (Xue & Chen, 2007):
as follows:
e0:2793s
GðsÞ ¼ 0:9912 : ð31Þ
1:265 0:3414s þ1
GðsÞ ¼ :
0:901s þ 1
The 5th-order ARX model of fref f loop is also calculated 6.3. Proportional controller and integer order PI controller design
based on the flight log (20 Hz) using least squares algorithm as
N2 ðsÞ Given the FOPTD model identified above (31), a proportional
GðsÞ ¼ ; controller could be designed using Ziegler–Nichols tuning rule
D2 ðsÞ
(Xue & Chen, 2007),
where N2(s) = 0.06108s5  6.825s4 + 593.2s3  15720s2 +
1
220300s + 1071000 and D2(s) = s5 + 361.5s4 + 28940s3 + Kp ¼ ¼ 1:2332:
KL=T
136900s2 + 929000s + 1081000.
The square wave responses based on the identified model are The actual roll tracking result for square reference is shown in
simulated and plotted together with the real system response in Fig. 13. It is obvious that the proportional controller has a hard
Fig. 12. ‘‘id5’’ means the identified 5th-order ARX model and ‘‘id1’’ time tracking the roll reference smoothly without overshoots. At
means the 1st-order one. It can be seen that the response of the the same time, the steady-state tracking error with the designed
identified model can track the reference signal, and the 5th-order proportional controller is clearly shown.
ARX model identified has better transient responses compared to Similarly, an integer order PI controller could be designed
the first order ARX model. using modified Ziegler–Nichols tuning rule based upon the
ARTICLE IN PRESS
770 H. Chao et al. / Control Engineering Practice 18 (2010) 761–772

10
true mag. Bode
5 approximated mag. Bode

dB
0

-5

-10
10-2 10-1 100 101 102 103
frequency in Hz

20
true phase Bode
10 approximated Phase Bode
degree

-10

-20
10-2 10-1 100 101 102 103
frequency in Hz

Fig. 14. Bode plot of G(z).

identified FOPTD model (31),

0:3T
Kp ¼ ¼ 0:37; Ki ¼ 0:8T ¼ 3:66:
KL
The actual step tracking result with this designed integer order
PI controller are shown in the later section.

Fig. 15. Anti-windup for FOPI and IOPI controllers.


6.4. Fractional order PI controller design

20
The 60 in UAV model is identified as the first order plus time
delay (FOPTD) system in (31). According to this model, the design
procedure of the fractional order PI controller is summarized
below: 15

(1) Given T= 0.3414 s, oc ¼ 1:3 rad=s, fm ¼ 803 . 10


(2) Plot curve 1, ki w.r.t. l and plot curve 2, ki w.r.t. l based on
φ (deg.)

part I. Obtain the values of l and ki from the intersection point


on the above two curves, which reads l ¼ 1:1546, Ki = 1.482.
5
(3) Calculate the kp from (23), Kp = 0.8461.
(4) Then the designed fractional order PI controller can be
obtained.
0 IOPI
FOPI
ref
The fractional order part 1/s0.1546 could be approximated by a ref± 2 deg.
4th-order discrete controller using IRID algorithm (sampling –5
period Ts = 0.0167 s) (Chen, 2008): 615 620 625 630 635
time (sec.)
NðzÞ
GðzÞ ¼ ;
DðzÞ Fig. 16. FOPI controller for outer roll loop.

where N(z) = 0.5203z4  1.1750z3 + 0.8691z2  0.2245z +


0.0117, D(z) = z4  2.4276z3 +1.9873z2 0.6062z + 0.0478.
The Bode plot of G(z) is shown in Fig. 14. It can be observed 6.5. Flight test results
that the 4th-order discrete controller could approximate the
frequency response of 1/s0.1546 around the gain crossover To make a fair comparison between controllers designed using
frequency 1.3 rad/s of the open-loop system designed. the modified Ziegler–Nichols tuning rule and using the flat phase
An anti-windup block is also added for both the FOPI and IOPI FOPI tuning rule, the flight tests were conducted for 3 h on
controllers shown in Fig. 15. kt is chosen as 2Ki. October 21, 2009 in the Cache Junction research farm owned by
ARTICLE IN PRESS
H. Chao et al. / Control Engineering Practice 18 (2010) 761–772 771

techniques. Future work is to make more comparisons between


20 IOPI and FOPI controller performance for different scenarios like
various wind conditions, various payloads, etc.

15

Acknowledgments
10
This work is supported in part by the Utah Water Research
φ (deg.)

5 Laboratory (UWRL) MLF Seed Grant (2006–2009) on ‘‘Development


of Inexpensive UAV Capability for High-Resolution Remote Sen-
sing’’. The authors would like to thank the Paparazzi UAV forum and
0 Unmanned Dynamics for sharing their projects for free, Professor
Raymond L. Cartee for providing the USU farm as the flight test
ref
Kp
field, and Dr. Don Cripps for helping in proof reading. Ying Luo
–5
80%Kp would like to thank the China Scholarship Council (CSC) for the
120%Kp financial support. The authors also want to thank the anonymous
–10 reviewers for their comments to improve the quality of this paper.
780 785 790 795 800
time (sec.)
References

20 Beard, R., Kingston, D., Quigley, M., Snyder, D., Christiansen, R., & Johnson, W., et al.
(2005). Autonomous vehicle technologies for small fixed wing UAVs. AIAA
Journal of Aerospace, Computing Information, and Communication, 5(1),
15 92–108.
Cai, G., Chen, B. M., Peng, K., Dong, M., & Lee, T. (2008). Modeling and control of the
yaw channel of a UAV helicopter. IEEE Transactions on Industrial Electronics,
55(9), 3426–3434.
10
Chao, H., Baumann, M., Jensen, A.M., Chen, Y. Q., Cao, Y., Ren, W., et al. (2008).
Band-reconfigurable multi-UAV-based cooperative remote sensing for real-
φ (deg.)

time water management and distributed irrigation control. In Proceedings of


5 IFAC World congress (pp. 11744–11749), Seoul, Korea.
Chao, H., Cao, Y., & Chen, Y. Q. (2010). Autopilots for small unmanned aerial
vehicles: a survey. International Journal of Control, Automation and Systems,
0 8(1), 36–44.
Chao, H., Jensen, A. M., Han, Y., Chen, Y. Q., & McKee, M. (2009). AggieAir: Towards
low-cost cooperative multispectral remote sensing using small unmanned
ref
Kp aircraft systems. In Advances in Geoscience and Remote Sensing, Aleksandar
–5 Lazinica, Ed. Vukovar, Croatia: IN-TECH, pp. 467–490.
80%Kp
Chen, Y. Q. (2008). Impulse response invariant discretization of fractional order
120%Kp
integrators/differentiators. Category: filter design and analysis, MATLAB
–10 Central /www.mathworks.com/matlabcentral/fileexchange/loadFile.doobjectId=
615 620 625 630 635 21342objectType=FILES.
Chen, Y. Q. (2009). Applied fractional calculus in controls. In Proceedings of
time (sec.) American control conference (pp. 34–35), St. Louis, MO, USA.
Chen, Y. Q., Bhaskaran, T., & Xue, D. (2008). Practical tuning rule development for
Fig. 17. FOPI versus IOPI controller with various system gains. (a) FOPI controller. fractional order proportional and integral controllers. Journal of Computational
(b) IOPI controller. and Nonlinear Dynamics, 3(2).
CSOIS (2008). OSAM UAV website. Online. URL /www.engr.usu.edu/wiki/index.
php/OSAMS.
Desborough, L. & Miller, R. (2001). Increasing customer value of industrial control
Utah State University. The wind on the ground was predicted to
performance monitoring-Honeywell’s experience. In Proceedings of 6th inter-
be 0.45–0.9 m/s (1–2 mile/h). Fig. 16 shows one of the five flight national conference chemical process control (pp. 172–192), Tuscon, Arizona,
tests for both IOPI and FOPI controllers. The results are fairly USA.
repeatable and reproducible. The designed FOPI controller could Duranti, S. & Conte, G. (2007). In-flight identification of the augmented flight
dynamics of the RMAX unmanned helicopter. In Proceedings of seventeenth
track the step 101 within the sensor resolution range 721 IFAC symposium on automatic control in aerospace, St. Louis, MO, USA.
(Microstrain Inc., 2008). From Fig. 16, it can observed and Lee, Y., Kim, S., & Suk, J. (2002). System identification of an unmanned aerial
concluded that the designed FOPI controller outperforms the vehicle from automated flight tests. In Proceedings of AIAA’s 1st technical
conference and workshop on unmanned aerospace vehicles, Portsmouth, Virginia,
designed IOPI controller in both the rise time and overshoot. USA, AIAA 2002-3493.
The FOPI flight controller is also tested under various system Li, H., Luo, Y., & Chen, Y. Q. (2010). A fractional order proportional and derivative
gains to show the robustness of the FOPI controller, shown in (FOPD) motion controller: Tuning rule and experiments. IEEE Transactions on
Control System Technology, 18(2), 516–520.
Fig. 17. It can be observed that the rise time with the FOPI Ljung, L. (2009). MATLAB system identification toolbox 7 User’s Guide. The
controller is shorter than that with the IOPI controller. MathWorks.
Luo, Y., & Chen, Y. (2009). Fractional order [proportional derivative] controller for a
class of fractional order systems. Automatica, 45(10), 2446–2450.
Microstrain Inc. (2008). GX2 IMU specifications. Online. URL /www.microstrain.
7. Conclusion and future work com/3dm-gx2.aspxS.
Monje, C. A., Liceaga-Castro, E., & Liceaga-Castro, J. (2008). Fractional order control
of an unmanned aerial vehicle (UAV). In Proceedings of IFAC World congress (pp.
In this paper, the fractional order proportional integral (FOPI)
15285–15290), Seoul, Korea.
controller is designed and implemented on the roll loop of a small Monje, C. A., Vinagre, B. M., Feliu, V., & Chen, Y. Q. (2008). Tuning and auto-tuning
UAV. To the authors’ best knowledge, it is the first fractional order of fractional order controllers for industry applications. Control Engineering
flight controller that has been implemented to guide the UAV in Practice, 16(7), 798–812.
Niculescu, M. (2002). Aerosim Blockset User’s Guide. /www.u-dynamics.comS.
autonomous flights. Both simulation results and real flight test Nino, J., Mitrachea, F., Cosynb, P., & Keyser, R. D. (2007). Model identification of a
data show the effectiveness of the proposed controller design micro air vehicle. Journal of Bionic Engineering, 4(4), 227–236.
ARTICLE IN PRESS
772 H. Chao et al. / Control Engineering Practice 18 (2010) 761–772

Oustaloup, A., Sabatier, J., & Lanusse, P. (1999). From fractional Wu, H., Sun, D., Peng, K., & Zhou, Z. (2004). Modeling identification of a micro air
robustness to CRONE control. Fractional Calculus and Applied Analysis, 2(1), vehicle in loitering flight based on attitude performance evaluation. IEEE
1–30. Transactions on Robotics, 20(4), 702–712.
Podlubny, I. (1999a). Fractional differential equations. New York: Academic Press. Xue, D., & Chen, Y. Q. (2007). Linear feedback control: Analysis and design with
Podlubny, I. (1999b). Fractional-order systems and PIl Dm controller. IEEE MATLAB. Philadelphia, PA: SIAM Press.
Transactions on Automatic Control, 44(1), 208–214. Xue, D., Zhao, C., & Chen, Y. Q. (2006). Fractional order PID control of a DC-motor
Stevens, B. L., & Lewis, F. L. (2003). Aircraft control and simulation (2nd ed.). with elastic shaft: a case study. In Proceedings of American control conference
New York: Wiley. (pp. 3182–3187), Minneapolis, Minnesota, USA.

You might also like