Professional Documents
Culture Documents
Reference 14 (1DOF)
Reference 14 (1DOF)
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.
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.
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.
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
System ID P(s)
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
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)
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.
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).
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
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.
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
15
Acknowledgments
10
This work is supported in part by the Utah Water Research
φ (deg.)
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.)
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.