Anda di halaman 1dari 6

Actuator Fault Detection System

for a Mini-Quadrotor
A. Freddi, S. Longhi and A. Monteri
Dipartimento di Ingegneria Informatica, Gestionale e dellAutomazione
Universit Politecnica delle Marche
Via Brecce Bianche, 60131 Ancona, Italy
Email: freddi@diiga.univpm.it, {sauro.longhi, a.monteriu}@univpm.it

AbstractThis paper addresses the problem of actuator fault


detection for a mini-quadrotor. First a model for a four-rotor
vehicle, obtained via a Lagrange approach, is presented. In order
to stabilize the quadrotor at low cruise speed, a control strategy
based on nested saturation controllers is presented. Using a
Thaus observer, a diagnostic system has been developed for the
nonlinear model of the quadrotor. Different simulation trials have
been performed and the analysis of the results proves that the
developed diagnostic system represents an effective solution to
the problem of actuator fault detection in mini-flying machines.

I. I NTRODUCTION
Unmanned aerial vehicles (UAVs) or flying robots have
attracted enormous interest during the last years. Recent developments in solid state disks, integrated miniature actuators
and MEMS (Micro Electromechanical Systems) technology
Fig. 1. Quadrotor rotorcraft.
sensors have made autonomous miniaturized flying robots possible. One type of mini-aerial vehicle with a strong potential is
the four-rotor aerial vehicle, also called quadrotor. This vehicle of fault accommodation strategies which would guarantee failhas been chosen by many researchers as a very promising safe operation of the control system.
vehicle for indoor/outdoor navigation using multidisciplinary
Several methods have been proposed to control a quadrotor
concepts ([1], [2], [3], [4]).
vehicle ([1], [6], [7], [8]), and different approach have been
A quadrotor simply consists in four DC motors on which developed for detecting and isolating sensor faults on a such
propellers are fixed. These motors are arranged to the extrem- vehicle ([9], [10]), however only few researches have been
ities of a X-shaped frame, where all the arms make an angle devoted to the important problem of detecting the vehicle
of 90 degrees with one another. As shown in Figure 1, the actuator faults.
front and rear motors (M1 and M3 ) spin in the clockwise
The interest of the present work is to successfully develop
direction with angular velocities 1 and 3 , while the other and apply a diagnostic observer to the nonlinear quadrotor
pair of rotors (M2 and M4 ) spin in the counter-clockwise model for detecting the rotorcraft actuator faults. Exploiting
direction with angular velocities 2 and 4 . Thus, a quadrotor the Lipschitzianity of the nonlinear model, a full order Thau
is an under-actuated system with four independent inputs and observer ([11]) is obtained and used to generate the residuals
six coordinate outputs. The quadrotor has some advantages on which the FDI system is based. In faultless situations,
over conventional mini-helicopters. One of the advantages of residuals remain around zero, while if an actuator fault occurs,
quadrotors is that they have more lift thrusts than conventional their values change, permitting to detect the fault. The scheme
helicopters. Moreover, they are potentially simpler to build and proposed in this paper permits to detect actuator faults, and to
highly maneuverable.
isolate which pair of rotors is faulty.
To ensure the normal operation, and increase the safety and
The nonlinearity of the quadrotor model does not permit to
reliability of such vehicles, the problem of fault detection is exploit the significant developments which have been made in
very important. If a fault is rapidly detected, the structure the area of fault detection in linear systems ([12]).
of the controller can be changed to get the best possible
The paper is organized as follows. In Section II, the nonresponse of the system, or even the system can be brought to linear model of a mini-quadrotor is presented. The strategy to
an
emergency manoeuvre ([5]). The
information
978-1-4244-6392-3/10/$26.00
2010
IEEE provided by
2055control the quadrotor is detailed in Section III. The proposed
an efficient diagnostic system could assist in the development actuator fault diagnostic nonlinear observer is described in

Section IV. Section V is devoted to the presentation of the


simulation results obtained for various fault scenarios when
the proposed scheme is applied to the quadrotor. Conclusions
and future directions are presented at the end of the paper.
II. DYNAMICAL MODELING OF QUADROTOR
The mathematical model developed here is based on some
basic assumptions as given below:
Design is symmetrical.
Quadrotor body is rigid.
Propellers are rigid.
There are not external effects on quadrotor body such as
air friction, wind pressure, etc.
Free stream air velocity is zero.
The four electric motors dynamic is relatively fast and
therefore it will be neglected as well as the flexibility of
the blades.
Two frames are used to study the system motion: an
inertial earth frame {RE } (O, x, y, z), and a body-fixed frame
{RB } {OB , xB , yB , zB }, where OB is supposed to be at
the mass center of the quadrotor. {RB } is related to {RE }

T
describing the position of
by a vector = x y z
the center of gravity in {RE }, and three independent an
T
gles = , respectively roll, pitch and yaw,

which describethe rotorcraft orientation, with 2 < 2 ,
2 < 2 and ( < ) (see Figure 1).
The small rotorcraft is supposed to have six degrees of
freedom according to the earth fixed frame given respectively
by quadrotor position and its attitude. The weight force acts
at the center of mass and is always along negative z-axis. If
l is the length of each arm, then each motor can be located
~ 1 = lB , L
~ 2 = l
~ 3 = lB and
by position vectors: L
B , L

~
L4 = l
B , with (B , B , kB ) as versors of (xB , yB , zB )-axis.
Analogously, all the forces shown in the Figure 1 by f~i = fi k~B
~ i (i = 1, 2, 3, 4).
are located in RB by position vectors L
With these assumptions, the quadrotor is a solid body
evolving in 3D and subject to one force and three torques.
The imbalance of the forces f~j , where j = 1, 3 or j = 2, 4,
results in torques, along a direction perpendicular to the plane
~ j . This torque is
containing the force f~j and the vector L
responsible for the rotation of the vehicle along xB -axis and
yB -axis. The rotation about zB -axis is due to imbalance of
clockwise and counter-clockwise torques.
The translational kinetic energy of the rotorcraft is expressed
as ([13])
1
(1)
Ttrans , mT
2
where m denotes the whole mass of the rotorcraft.
The rotational kinetic energy is given by ([14])
1
Trot , T J
(2)
2
where J is the inertia matrix expressed directly in terms of the
generalized coordinates
J = WT IW

with

1
0
W = 0 C
0 S

S
S C
C C

(4)

where S(.) and C(.) represent sin (.) and cos (.) respectively,
and I is the moment of inertia tensor, which is diagonal due
to the symmetry of the quadrotor.
The only potential energy which needs to be considered is
due to the gravitational field. Therefore, potential energy is
expressed as
U = mgz .
(5)
 T

T T

Let q =
= [x, y, z, , , ]T R6 be the
generalized coordinates vector for the flying machine, the
Lagrangian is given by
1
1
L (q, q)
= Ttrans + Trot U = mT + T J mgz (6)
2
2
The model for the full quadrotor aircraft dynamics is
obtained from the Euler-Lagrange equations with external
generalized force
d L L

=F
(7)
dt q
q
T

where F = FT T . F defines the translational force
applied to the aerial robot due to the control inputs and relative
to the frame {RE }, and is the generalized torques vector.
The small body forces are ignored, and we only consider the
principal control inputs uf and , where uf represents the
total thrust, and is the generalized torque.
Because of each spinning propeller generates vertically
upward lifting force, labeled as f1 , f2 , f3 and f4 , all the motion
of the quadrotor is a consequence of the sum of these forces:
uf = f1 + f2 + f3 + f4

(8)

with
fj = Kl j2

(i = 1, 2, 3, 4)

(9)

where j is the angular speed of motor Mj (j = 1, 2, 3, 4),


while Kl > 0 is the lift constant depending on the air density
, the lift coefficient Cz and the blade rotor characteristics S
(diameter, step, profile, ...) and it results as
1
(10)
Kl = SCz .
2
Then, the force applied to the mini-rotorcraft relative to the
frame {RB } is defined as

T
F = 0 0 uf
.
(11)
Consequently

F = RBE F

(12)

where RBE is the rotation transformation from the body


reference frame to the earth reference frame given by

C C C S S C S C C S + S S
2056RBE = C S S S S + C C C S S C S .
(3)
S
C S
C C


Indicating the generalized torque as ,
the Euler-Lagrange equation can be rewritten as

0
m + 0 = F
mg

1
T J = .
J
+ J
2

T

(13)

(14)

Defining the Coriolis vector as



1 T J
Fc (, )
= J
2

A. Altitude and yaw control


The control of the vertical position can be obtained by using
the following control input ([7])
uf = (az1 z az2 (z zd ) + mg)

1
C C

where az1 , az2 are positive constants and zd is the desired


altitude.
The control of the yaw displacement can be obtained by
using the following control input ([7])
= a1 a2 ( d )

(15)

the expression (14) can be rewritten as

(27)

(28)

where a1 and a2 are positive constants, d is the desired


yaw angle.
B. Attitude control

J
+ Fc (, )
=

(16)

.
Finally, the equations of motion for the mini rotorcraft are
expressed as

0
m = F + 0
(17)
mg
J
= Fc (, )
.

(18)

Since J is nonsingular, it is possible to simplify the analysis,


without loss of generality, changing the input variables as
follows
= J
+ Fc (, )

(19)


T
with = .
Then, with the new inputs, it results:
= .

(20)

Rewriting (17) and (18) gives


m
x = (C C S + S S )uf

(21)

m
y = (C S S C S )uf
m
z = (C C )uf mg
=

(22)
(23)

=
=
III. C ONTROL STRATEGY

(24)
(25)
(26)

The control of the attitude can be obtained by using the


nested saturations strategy ([7]). The law for roll control is:

= 1 ( + 2 (1 + 3 (2 + 4 (3 ))))

y yd
y

3 = 3 + 3
g
g
(29)
y

2 = 2 +

1 = +
The law for pitch control is:

= 1 ( + 2 (1 + 3 (2 + 4 (3 ))))

x
x xd

3 = 3 + + 3 +
g
g
x

2 = 2 + +

1 = +

(30)

In both equations a (s) is a saturation function defined as

a, if s > a

s, if a s a
(31)
a (s) =

a, if s < a

while xd and yd are the desired longitudinal and lateral


positions.
IV. FDI SYSTEM
A model-based fault diagnosis system consists of a residual
generation module and a residual evaluation module. This
section recalls the theoretical aspects for developing a residual
generation module and a residual evaluation module for the
considered quadrotor system.
A. Residual generation

In literature several model-based methods have been


A control strategy for stabilizing the quadrotor near hover adopted for generating residual to be used in FDI schemes for
is recalled in this section. The control input uf is essentially UAVs. Luenberger observers have been used both for sensor
used to make the altitude reach a desired value. The control and actuator fault detection (see [5]). Kalman filters (simple,
input is used to set the yaw displacement to zero. is extended or unscented) have been used for fault adaptive and
used to control the pitch angle and the horizontal movement tolerant control (see, e.g., [15] and [16]).
in the x-axis. Similarly is used to control the roll angle and
2057 Most of the times the easiest and practical solution when
the horizontal displacement in the y-axis ([7]).
dealing with model-based techniques is to choose a proper

working point and linearize the system around it. However


this solution is suitable only for those vehicles operating most
of the time near the considered conditions. In all the other
cases there are two possible alternatives: linearizing the system
around different operating conditions or using a non-linear
model-based approach.
[11] developed an observer for a special class of non-linear
systems. This observer has already been applied to the fault
detection and isolation of non-linear dynamic systems and uses
the following non-linear system model ([12]):

x(t)

= Ax(t) + Bu(t) + h(x(t), u(t)) + F 1 f (t)


(32)
y(t) = Cx(t) + F 2 f (t)
where x Rn is the state vector, u Rr is the input vector,
y Rp is the output vector, f Rh is the fault vector,
A, B and C are known system matrices with appropriate
dimensions, h(x(t), u(t)) represents the nonlinearity, and F 1
and F 2 are known fault entry matrices which represent the
effect of faults on the system.
For developing the Thau observer, the system model (32)
has to satisfy the two following conditions:
C1 - the pair (C, A) must be observable;
C2 - the non-linear function h(x(t), u(t)) must be locally
Lipschitz with constant , i.e.
||h(x1 (t), u(t)) h(x2 (t), u(t))|| ||(x1 x2 )||
(33)
When these two conditions are satisfied, a stable observer for
the system (32) has the form

x
(t) = A
x(t) + Bu(t) + h(
x(t), u(t)) + K(y(t) y
(t))
y(t) = C x
(t)
(34)
where K is the observer gain matrix defined by
T
K = P 1
C .

(35)

The matrix P is the solution to the Lyapunov equation


AT P + P A C T C + P = 0

(36)

where is a positive parameter which is chosen such that (36)


has a positive definite solution.
In order to develop the Thau observer for the quadrotor
system considered in this paper, it is necessary to write the
system described by the equations (21)-(26) in a state-space
form. Defining

T
x = x y z x y z
(37)

T
(38)
u = uf

T
(39)
f = fx fy fz f f f

T
y= x y z
(40)

B = 0124 ,

C = I6

(42)


0(66) ,

(43)

061
(C C S + S S ) u
m

(C S S C S ) u
m

h(x, u) =

1 (C C ) m g

J1 (( Fc (, )

))

1
J2 (( Fc (, )
))

J1
))

3 (( Fc (, )

(44)

F 1 = 0(126) ,

(45)

and


F 2 = 0(63)

0(33)
I3

(46)

where I n is the n-by-n identity matrix, 0(nm) is the n-by-m


is the i th row of the J1 matrix.
matrix of zeros and J1
i
The observability matrix results

T
O = C T (CA)T (CA2 )T (CA11 )T
(47)
 T

T
= I 12 , while CAi = 0(612) (i =
where C
(CA)T
2, . . . , 11). Thus, the observability matrix has full rank, and
the pair (C, A) is observable, and condition C1 is satisfied.
h(x(t), u(t)) is a continuously differentiable function and
thus the condition C2 is satisfied as long as u(t) is bounded
([17]).
The parameter , and thus the gain matrix K, defines how
much the difference between the real system outputs and
the observer outputs must affect the residuals and should be
chosen as the best trade-off between the magnitude of residuals
due to faults and that due to noise. After several simulations
the gain matrix has been chosen as


1.1I 6
K=
.
(48)
0.3025I 6
Since the considered quadrotor system is supposed to be
equipped with either a GPS receiver (outdoor operation) or
a vision system (indoor flight) and an Attitude and Heading
Reference System (AHRS), the system outputs are the position
in the earth frame (x, y and z) and the attitude angles (,
and ). The residuals are built as the difference between the
system outputs and the Thau observer outputs, that is to say:
r1 (t) = x(t) x
(t)
r2 (t) = y(t) y(t)

(49)
(50)

r3 (t) = z(t) z(t)

r4 (t) = (t) (t)

(51)

(52)
as the state, input, fault and output vector, respectively, then

r5 (t) = (t) (t)


(53)
the system described in (21)-(26) can be rewritten as a state
.
r6 (t) = (t) (t)
(54)
space system of the form (32), where


I6
2058which are supposed to be zero as long as there are no faults
,
(41)
A = 0(1212)
on the actuators and to differ from zero in case of faults.
0(66)

The residual evaluation module detects a change in the mean


of an observed and distributed random sequence achieved by
sequential change detection algorithms. Based on the residual
evaluation algorithm developed by [18], each residual ri
(i = 1, . . . , 6) has been compared to a fixed threshold, and
the following decision is made at time t:
ri (t) Hi or ri (t) hi in faulty case

(55)

ri (t) < Hi or ri (t) > hi in fault-free case

(56)

where Hi and hi are the upper and lower thresholds, respectively, with i = 1, . . . , 6.
V. S IMULATION RESULTS
The non-linear quadrotor system along with the FDI system
R softhave been developed using the Matlab and Simulink
ware. The system outputs are supposed to be the linear positions in the earth frame (x, y and z) and the euler angles (,
and ). Noise is included in the model, affecting the sensors
measurment with an uncertainity of 15cm on the linear
position and 2 deg on the attitude position. The residuals
(six) are built as the difference between the nonlinear system
outputs and the Thau observer outputs. They are supposed to
be almost zero as long as there are no faults and to differ from
zero in case of faults.
The controller is set in order to allow the quadcopter to
reach a height of 25m and to remain in hover flight thereafter.
During the hover flight, a fault is introduced into one of the
actuators: indicating with T the instant time when a stuck fault
occurs, the behaviour of the actuator fi can be modelled as:

fj (t),
t < T
fj (t) =
for j=1, . . . ,4
(57)

fj T , t T
The faulty actuator can no longer change its value once that
the fault has occurred. For the simulation a time T = 20s has
been chosen (fig. 2).

Once the actuator is stuck, the controller can no longer


control the position of the vehicle, due to the yaw displacement
that differs from zero, while it can still stabilize the attitude
angle on the axis in which the faulty actuator is present (that
is to say the angle if the fault is on f1 or f3 , and if the
fault is on f2 or f4 ). Thus all the residuals should differ from
zero when a fault occurs on f1 or f3 with the exception of
the residual of , or with the exception of the residual of in
case of fault on f2 or f4 .
Due to the symmetry of the system, a fault on f1 or f3
produces the same results as a fault on f2 or f4 : this implies
that a fault can always be detected, but the isolation logic can
only isolate the couple on which the fault has occurred and
not the single faulty actuator. These assumptions are confirmed
by the simulation results. Due to the symmetry of the problem
they are reported only for a fault on the actuators f1 and f2 .
In absence of faults all the residuals show the same behaviour, and they are affected only by noise and slightly differ
from zero.
When the actuator f1 get stuck the dynamic of the real
system behaves in a different way then that of the observer:
the residual raises above the maximum value it had in the
faulty-free case (fig.3).
20
r
18

[m]

threshold

16
14
12

r1 [m]

B. Residual evaluation

10
8
6
4
2
0
0

1.35

10

15
time [s]

20

25

30

Fig. 3.

Residual 1 in case of fault on the 1st actuator.

f1 [N]

1.3

A similar behaviour can be seen in all the other residuals,


as
with the exception of the residual calculated as ( ),
shown in fig. 4.
As already stated before, a similar behaviour can be seen if
the fault occurs on f3 (see table I).
In case of faults on f2 all the residual are similar to that of

fig. 5 with the exception of the residual calculated as ( ),


as shown in fig. 6.
As already stated before, a similar behaviour can be seen if
the fault occurs on f4 (see table I).

1.25

1.2

1.15
0

10

Fig. 2.

15

20
time [s]

25

f1 in case of fault.

30

35

40

VI. C ONCLUDING REMARKS


2059 In this paper, the FDI problem for a quadrotor vehicle has
been faced. Using a Thaus observer, a set of residuals have

0.07

0.07
r

[rad]

0.06

0.06

0.05

0.05

0.04

0.03

0.03

0.02

0.01

0.01

Fig. 4.

10

15
time [s]

20

25

Residual 4 in case of fault on the 1st actuator.

6
r1 [m]

[rad]

0.04

0.02

0
0

threshold

r5 [rad]

r4 [rad]

threshold

30

0
0

Fig. 6.

10

15
time [s]

20

25

30

Residual 5 in case of fault on the 2nd actuator.

TABLE I
E FFECTS OF THE ACTUATOR FAULTS ON THE RESIDUALS

threshold
5

r1 [m]

r1
r2
r3
r4
r5
r6

f1
1
1
1
0
1
1

f2
1
1
1
1
0
1

f3
1
1
1
0
1
1

f4
1
1
1
1
0
1

[5] G. Heredia, A. Ollero, M. Bejar, and R. Mahtani, Sensor and actuator


fault detection in small autonomous helicopters, Mechatronics, 2007.
[6] S. Bouabdallah, P. Murrieri, and R. Siegwart, Design and control of an
1
indoor micro quadrotor, 2004, pp. 43934398.
[7] P. Castillo, R. Lozano, and A. Dzul, Modelling and control of mini-flying
machines. Springer-Verlag, 2005.
0
0
5
10
15
20
25
30
[8] A. Das, K. Subbarao, and F. Lewis, Dynamic inversion with zerotime [s]
dynamics stabilisation for quadrotor control, IET Contr. Theory &
Applications, pp. 303314, 2009.
[9] C. Berbra, S. Lesecq, and J. Martinez, A multi-observer switching
Fig. 5. Residual 1 in case of fault on the 2nd actuator.
strategy for fault-tolerant control of a quadrotor helicopter, in Control
and Automation, 2008 16th Mediterranean Conference on, 2008, pp.
10941099.
been generated for FDI tasks. The Thau observer estimates [10] H. Rafaralahy, E. Richard, M. Boutayeb, and M. Zasadzinski, Simultaneous observer based sensor diagnosis and speed estimation of
the system states using a simple algorithm and it is accurate
unmanned aerial vehicle, 2008, pp. 29382943.
enough to provide a reliable signal for the FDI system, thus [11] F. Thau, Observing the state of non-linear dynamic systems, Int. Jour.
of Control, vol. 17, no. 3, pp. 471479, 1973.
representing an effective alternative to Kalman-based filters.
Simulation trials have shown that faults on the actuators can be [12] J. Chen and R. Patton, Robust model-based fault diagnosis for dynamic
systems, 1999.
correctly detected and that the couple on which the fault occurs [13] S. Salazar, H. Romero, R. Lozano, and P. Castillo, Modeling and
real-time stabilization of an aircraft having eight rotors, Journal of
can be correctly isolated. A strategy for disturbance reduction
Intelligent and Robotic Systems, vol. 54, no. 1, pp. 455470, 2009.
and fault tolerant control is currently under investigation.
[14] G. Raffo, M. Ortega, and F. Rubio, An integral predictive/nonlinear
control structure for a quadrotor helicopter, Automatica, pp. 2939,
R EFERENCES
2009.
[15] J. Qi, Z. Jiang, X. Zhao, and J. Han, UKF-based rotorcraft UAV Fault
[1] E. Altug, J. Ostrowski, and R. Mahony, Control of a quadrotor heliadaptive control for actuator failure, in IEEE International Conference
copter using visual feedback, in Proc. of IEEE Int. Conf. on Robotics
on Robotics and Biomimetics, 2007. ROBIO 2007, 2007, pp. 15451550.
and Automation, 2002.
[16] C. Rago, R. Prasanth, R. Mehra, R. Fortenbaugh, S. Inc, and M. Woburn,
[2] A. Mokhtari and A. Benallegue, Dynamic feedback controller of euler
Failure detection and identification and fault tolerant controlusing the
angles and wind parameters estimation for a quadrotor unmanned aerial
IMM-KF with applications to the Eagle-Eye UAV, in Proc. of the 37th
vehicle, 2004.
IEEE Conf. on Decision and Control, 1998.
[3] A. Tayebi and S. McGilvray, Attitude stabilization of a vtol quadrotor
[17] H. Khalil, Nonlinear systems (3rd edition). Prentice Hall, 2002.
aircraft, IEEE Transactions on Control Systems Technology, vol. 14,
[18] A. Monteri, P. Asthana, K. Valavanis, and S. Longhi, Real-Time
no. 3, pp. 562571, 2006.
2060
Model-Based Fault Detection and Isolation for UGVs, Journal of
[4] B. Bethke, M. Valenti, and J. How, Uav task assignment, IEEE Trans.
Intelligent and Robotic Systems, vol. 56, no. 4, pp. 425439, 2009.
on Robotics and Automation, vol. 15, no. 1, pp. 3944, 2008.

Anda mungkin juga menyukai