Modeling and Backstepping-Based Nonlinear Control
Modeling and Backstepping-Based Nonlinear Control
net/publication/245231122
CITATIONS READS
214 2,247
2 authors, including:
SEE PROFILE
All content following this page was uploaded by Ashfaq Ahmad Mian on 09 April 2014.
Abstract
In this article, a nonlinear model of an underactuated six degrees of freedom (6 DOF) quadrotor helicopter is derived on the basis
of the Newton-Euler formalism. The derivation comprises determining equations of the motion of the quadrotor in three dimensions and
approximating the actuation forces through the modeling of aerodynamic coefficients and electric motor dynamics. The derived model
composed of translational and rotational subsystems is dynamically unstable, so a sequential nonlinear control strategy is used. The con-
trol strategy includes feedback linearization coupled with a PD controller for the translational subsystem and a backstepping-based PID
nonlinear controller for the rotational subsystem of the quadrotor. The performances of the nonlinear control method are evaluated by
nonlinear simulation and the results demonstrate the effectiveness of the proposed control strategy for the quadrotor helicopter in
quasi-stationary flights.
*Corresponding author. Tel.: +86-13770928494. Fig.1 Forces and moments acting on a quadrotor helicopter.
E-mail address: [email protected]
Foundation item: Higher Education Commission, Government of Paki-
stan (1-3/PM-OVER/China/2005)
· 262 · Ashfaq Ahmad Mian et al. / Chinese Journal of Aeronautics 21(2008) 261-268
Simultaneous increase or decrease in speed of copter with only two backstepping steps. Results
the four motors will generate vertical motion. When from the nonlinear simulation verify the effective-
the motor pair (3, 1) is allowed to operate inde- ness of the proposed control strategy for the
pendently, the pitch angle T about the y axis can quadrotor helicopter under near quasi-stationary
be controlled with the indirect control of motion conditions.
along the same axis. Similarly, the independent op-
eration of the motor pair (2, 4) could control the roll 2 Quadrotor Dynamics
angle I about the x axis with an indirect control of The aerodynamic forces and moments are
motion along the same axis. Finally, the counter- sought out by combining momentum with blade
clockwise rotation of the pair (3, 1) and the pair (2, element theory[7-8]. A quadrotor has four motors
4) can control the yaw angle \ about the z axis. In with propellers. The power applied to each motor
this manner, the quadrotor helicopter has 6 DOF. generates a net torque on the rotor shaft, Qi , which
Most recent studies on the theoretical analysis results in a thrust, Ti . If the rotor disk is rotating,
of a 6 DOF quadrotor helicopter were carried out by there is a difference in relative velocity between the
means of a commercially available four rotor aerial blade and the air as the rotor is moving on forward
robot (Draganflyer V Ti)[1]. A control strategy for and backward sweep and causing a net moment
the quadrotor was designed by using internal lin- about the roll axis, Ri . Forward velocity also
earization[2], whereas a quaternion-based feedback causes a drag force on the rotor that acts in opposi-
control scheme was proposed for exponential atti- tion to the direction of travel, Di . Thrust and drag
tude stabilization[3]. However, in this case, the can be defined with the aerodynamic coefficients,
problem to control an underactuated quadrotor was CT and CD as
degenerated to the one of controlling a fully actu- T CT U Ar 2: 2 (1)
ated one.
D CD U Ar 2: 2 (2)
In this article, a feedback linearization- and
where A is a blade area, U the density of air, r the
backstepping-based PID (BS-PID) control strategy
radius of the blade and : the angular velocity of
is designed for motion control of the underactuated
a propeller.
quadrotor. The main idea is to associate the robust-
In much the same way, the torque Q and the
ness against disturbances offered by backstepping
rolling moment R could be defined with the CQ
with robustness against model uncertainties by inte-
and CR as
gral action. The integrator action in backstepping
Q CQ U Ar 2 : 2 r (3)
proposed for linear systems[4-5] is obtained by add-
ing the integral of tracking error to the error found R CR U Ar 2 : 2 r (4)
in first step of backstepping procedure. The total force, f total , and the total moment,
Besides higher payload capacity and better W total , acting on the body frame of a quadrotor are
maneuverability, a quadrotor helicopter has impor- given by
tant advantages in having small rotors and being 1
f total Cx, y , z Ac U ( x 2 y 2 z 2 ) mgZ
enclosed, thereby able to be safer for indoor flights. 2
4 4
On the other side, it is rather energy consuming and (5)
¦ Ti z ¦ Di ( x y)
is fairly big in size. i 1 i 1
4 4
This article is devoted towards deriving a com- W total (1)i ¦ Qi z (1)i 1 ¦ Ri ( x y ) h<
plete dynamic model of a quadrotor helicopter on i 1 i 1
4
the basis of Ref.[6], and to design feedback lineari-
¦ Di ( y x) (T4 T2 )lx (T3 T1 )ly
zation with PD control and backstepping-based PID i 1
control strategy for the nonlinear quadrotor heli- {[( D2 D4 ) ( D3 D1 )]l}z (6)
Ashfaq Ahmad Mian et al. / Chinese Journal of Aeronautics 21(2008) 261-268 · 263 ·
In Eq.(5), the first term represents the friction force Dx 4 ) and ( Dy 3 Dy1 ) the drag force unbalances
on the quadrotor body in horizontal motion with during forward and sideward flights, respectively.
Cx , y , z denoting longitudinal drag coefficients, Ac 2.2 Translational dynamics
is the fuselage area, x , y and z speeds in the x, y
By neglecting the effects of body moments on
and z direction, respectively, Z is the vertical axis in
the translational dynamics, from Eq.(5) and Eq.(7),
inertial coordinates, (x y) the direction of velocity, m
the translational dynamics governing the quadrotor
the total mass of quadrotor, and g the force because
are given by
of gravity. In Eq.(6), h is the vertical distance be-
tween propeller center and center of gravity (CG) of mX (cos I sin T cos \ sin I sin \ )<
4 4
quadrotor. 1
¦ Ti ¦ Di 2 Cx Ac U x x (12)
Given the quadrotor being a single rigid body i 1 i 1
with 6 DOF, and assuming that the earth is flat ne- mY (cos I sin T sin \ sin I cos \ )<
4 4
glecting ground effect, the equations of motion for a 1
¦ Ti ¦ Di 2 C y Ac U y y (13)
rigid body subjected to a body force, f b R 3 , and i 1 i 1
ter of mass and expressed in Newton-Euler formal- mZ mg (cos I cos T )¦ Ti C z Ac U z z (14)
i 1 2
ism[6], are given by
ª mI 0 º ª v b º ª Ȧb u mv b º ª f bº 3 Engine Model
«0 « »« » « b» (7)
¬ J »¼ ¬« Ȧ b ¼» ¬« Ȧb u JȦb ¼» ¬« IJ ¼» Let a current I a at a driving voltage Va flow
b 3 b
where v R is the body velocity vector, Z through a DC motor with inductance Lm , resistance
R 3 the body angular velocity vector, m R the Rm , and back electro motive force (EMF) voltage
total mass, I R 3u3 an identity matrix, and J Vemf ; then,
R 3u3 an inertial matrix. dI a
Va Vemf Lm Rm I a (15)
dt
2.1 Rotational dynamics
The motor converts the current into a me-
Assuming that in a symmetric design of quad-
chanical torque applied to the shaft, Tm K tm I a .
rotor, the inertia tensor is diagonal, the moment
The torque, which produces angular velocity Zm
equation governing the quadrotor is given by
according to inertia J m and motor load Tl , is de-
IJb Ȧb u JȦb IJ total (8) scribed by
From Eq.(6) and Eq.(8), rotational dynamics of dZ
Tm J m m Tl (16)
the quadrotor in body axis are given by dt
J I T\
x
( J J ) l T T
y z 4 2
By defining Vemf K eZm , neglecting the in-
4 4 ductance of the motor because of its small size and
¦ (1)i1 Rxi h¦ Dyi (9) introducing propeller and gearbox models, from Eq.
i 1 i 1
(15) and Eq.(16) it can be obtained
J yT I\
( J J ) l (T T )
z x 3 1
K tm K e d K
4 4 Z m Zm 3 Zm2 tm Va (17)
Rm J m K rg J m Rm J m
¦ (1)i1 Ryi h¦ Dxi (10)
i 1 i 1
where K is the gear box efficiency, d the drag fac-
4
( J J ) (1)i Q tor, and rg the gear reduction ratio.
J z\ IT x y ¦ i
i 1
[( Dx 2 Dx 4 ) ( Dy 3 Dy1 )]l (11) 4 Control Strategy
where Rx and Ry represent the rolling moments, A nonlinear control strategy is proposed to sta-
h( Dx ) and h( D y ) the drag moments, and ( Dx 2 bilize the quadrotor under near quasi-stationary
· 264 · Ashfaq Ahmad Mian et al. / Chinese Journal of Aeronautics 21(2008) 261-268
conditions, i.e., hovering or near hovering. Since (13). Let xd and y d be the desired speed in x and
only the hovering is considered, the terms in trans- y direction, respectively; then the errors at desired
lational and rotational dynamics associated with and actual speed are separately given by
vehicular velocity become zero. Thus, the drag ex xd x (23)
forces and rolling moments because of the velocity ey y d y (24)
are neglected, and the thrust and the torque coeffi-
The desired roll and pitch angles in terms of
cients are supposed to be constant, i.e.,
errors between actual and desired speeds are, thus,
Ti b: i2 ½° separately given by
¾ (18)
Qi d : i2 °¿ Id arcsin(ue sin \ ue cos \ ) (25)
x y
K x ex m K y ey m
pitch actuator input u3 and the yaw moment input uex , ue y
u1 u1
u4 are defined as
where K x and K y are the positive constants and
u1 b(: 12 : 22 : 32 : 24 ) ½
° u1 is the desired vertical force input by the altitude
u2 b(: 24 : 22 ) °
¾ (19) control.
2 2
u3 b (: 3 : 1 ) °
2 2 2 2 ° 4.3 Rotational control
u4 d (: 2 : 4 : 1 : 3 ) ¿
The backstepping-based PID control technique
The control strategy is so designed that the al-
is designed for rotational subsystem, in which the
titude of the quadrotor is stabilized by using the
control inputs u2 , u3 and u4 control the quadrotor
vertical force input u1 . The desired roll and pitch
during hovering.
angles are formed on the rotation controller by the
Let the roll tracking error be defined as
position subsystem. The rotation controller is used
e I Id (27)
to stabilize the quadrotor under near quasi-station-
ary conditions with control inputs u2 , u3 and u4 . The first error considered in designing the
backstepping is
4.1 Altitude control
z1 K1e K 2 ³ edt (28)
The altitude subsystem Eq.(14) containing ver-
where K1 and K 2 are positive tuning parameters,
tical force input u1 is given by
and ³ edt the integral of roll error.
mZ mg u1 cos I cos T (20)
Lyapunov theory is used while using the
which can be linearized by selecting u1 as
mg Q Lyapunov function z1 as a positive definite and its
u1 (21) time derivative as a negative semi definite,
cos I cos T cos I cos T
1 2
The necessary condition for Eq.(21) is cos I V1 z1 (29)
2
cos T z 0 , where Q , a PD controller, is given by
Its derivative is given by
Q K d z K p ( z zd ) (22)
V1 z1 z1 z1 ( K1I K1Id K 2 e) (30)
where K p and K d are the proportional and the
There is no control input in Eq.(30). By letting
derivative positive gains and zd the desired alti-
I be the virtual control, the desired virtual control
tude.
(I) is defined as
d
4.2 Position control K 2e c1 z1
(I)d Id (31)
Position subsystem is given by Eq.(12) and Eq. K1 K1
Ashfaq Ahmad Mian et al. / Chinese Journal of Aeronautics 21(2008) 261-268 · 265 ·
roll, pitch, and yaw angles and maintaining them at from the conventional optimized one. From Fig.3, it
zero. This is accomplished by way of the backstep- is evident that the backstepping-based PID control-
ping-based nonlinear control law. ler presents higher robustness and better transient
Table 1 summarizes different system parame- performances than the traditional PID version.
ters of the prototype quadrotor helicopter.
Table 1 Physical parameters of quadrotor
Parameter Value
l /m 0.305 0
J x /(kg m 2 ) 0.015 4
J y /(kg m 2 ) 0.015 4
2
J z /(kg m ) 0.030 9
m /kg 0.615 0
6 Conclusions
References html.