24
58 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited. Keywords: Adaptive Control, Dynamic Model, Quadrotor, Trajectory Tracking, UnmannedAerial Vehicle (UAV) INTRODUCTION Unmanned aerial vehicles (UAV’s) have re- ceived great attention in both military and civil- ian domains in recent decades. These kinds of vehicles are used in many applications such as search and rescue operations, surveillance and photography. Quadrotor is one of new drones, which has four independent rotors. Controlling a quadrotor is performed by proper velocity control of each rotor. High maneuverability is one of the most interesting features of the quadrotor. It is essential to model UAV in order to control it. The dynamics of UAV’s have special features that complicate the process of designing a tracking controller. Unknown nonlinearities, strong coupling between subsystems, unknown physical parameters, nonparametric uncertain- ties in inputs and external disturbances such Modeling and Adaptive Tracking Control of a Quadrotor UAV Mostafa Mohammadi, Department of Electrical Engineering, Iran University, Tehran, Iran Alireza Mohammad Shahri, Department of Electrical Engineering, Iran University of Science and Technology, Tehran, Iran Zahra Boroujeni, Department of Electrical Engineering, Iran University, Tehran, Iran ABSTRACT The dynamics of UAV’s have special features that can complicate the process of designing a trajectory track- ing controller. In this paper, after modelling the quadrotor as a VTOLUAV, a nonlinear adaptive controller is designed to solve trajectory tracking problem in the presence of parametric and nonparametric uncertain- ties. This controller doesn’t need knowing any physical parameters of the quadrotor, and there isn’t need to retune the controller for various payloads. In this approach, the control of a quadrotor is performed by using decentralized adaptive controllers in the inner (attitude control) and outer (translational movement control) loops. The outer loop generates the instantaneous desired angles for inner loop. The inner loop stabilizes the orientation of the vehicle. Inverse kinematic of robot is used to convert outputs of the outer loop to inputs of the inner loop. The controller needs some unknown physical parameter to generate control signals. A robust parameter identiier estimates the required parameters for the outer control loops. Simulations are carried out to illustrate the robustness and tracking performance of the controllers. DOI: 10.4018/ijimr.2012100105

Modeling and Adaptive Tracking Control of a Quadrotor UAV

  • Upload
    dodien

  • View
    229

  • Download
    4

Embed Size (px)

Citation preview

Page 1: Modeling and Adaptive Tracking Control of a Quadrotor UAV

58 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

Keywords: AdaptiveControl,DynamicModel,Quadrotor,TrajectoryTracking,UnmannedAerialVehicle(UAV)

INTRODUCTION

Unmanned aerial vehicles (UAV’s) have re-ceived great attention in both military and civil-ian domains in recent decades. These kinds of vehicles are used in many applications such as search and rescue operations, surveillance and photography. Quadrotor is one of new drones, which has four independent rotors. Controlling a quadrotor is performed by proper velocity

control of each rotor. High maneuverability is one of the most interesting features of the quadrotor.

It is essential to model UAV in order to control it. The dynamics of UAV’s have special features that complicate the process of designing a tracking controller. Unknown nonlinearities, strong coupling between subsystems, unknown physical parameters, nonparametric uncertain-ties in inputs and external disturbances such

Modeling and Adaptive Tracking Control of a Quadrotor UAV

MostafaMohammadi,DepartmentofElectricalEngineering,IranUniversity,Tehran,Iran

AlirezaMohammadShahri,DepartmentofElectricalEngineering,IranUniversityofScienceandTechnology,Tehran,Iran

ZahraBoroujeni,DepartmentofElectricalEngineering,IranUniversity,Tehran,Iran

ABSTRACTThedynamicsofUAV’shavespecialfeaturesthatcancomplicatetheprocessofdesigningatrajectorytrack-ingcontroller.Inthispaper,aftermodellingthequadrotorasaVTOLUAV,anonlinearadaptivecontrollerisdesignedtosolvetrajectorytrackingprobleminthepresenceofparametricandnonparametricuncertain-ties.Thiscontrollerdoesn’tneedknowinganyphysicalparametersofthequadrotor,andthereisn’tneedtoretunethecontrollerforvariouspayloads.Inthisapproach,thecontrolofaquadrotorisperformedbyusingdecentralizedadaptivecontrollersintheinner(attitudecontrol)andouter(translationalmovementcontrol)loops.Theouterloopgeneratestheinstantaneousdesiredanglesforinnerloop.Theinnerloopstabilizestheorientationofthevehicle.Inversekinematicofrobotisusedtoconvertoutputsoftheouterlooptoinputsoftheinnerloop.Thecontrollerneedssomeunknownphysicalparametertogeneratecontrolsignals.Arobustparameteridentiierestimatestherequiredparametersfortheoutercontrolloops.Simulationsarecarriedouttoillustratetherobustnessandtrackingperformanceofthecontrollers.

DOI: 10.4018/ijimr.2012100105

Page 2: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 59

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

as wind gust are some of the basic difficulties associated with the control of such systems. Therefore, an advanced control strategy is required to achieve good performance of the controller. Many researchers have solved the trajectory tracking problem for UAV’s in dif-ferent ways.

Das, Lewis, and Subbaro (2009) used backstepping approach for controlling a UAV. In this study aerodynamic forces and moments are estimated by neural networks as a method for handling unknown nonlinearities. A nonlin-ear adaptive controller for the quadrotor was proposed in Madani and Benallegue (2008). This controller which is based on backstepping technique is combined with neural networks. Huang, Xian, Diao, Yang, and Feng (2010) presented a backstepping based techniques to design a nonlinear adaptive controller which can compensate for the mass uncertainty of the vehicle. Michini and How (2009) devel-oped an L1 adaptive output feedback control design process. This controller has robustness to time delay and actuators failure. However, only linear methods are applied in this paper. In Dierks and Jagannathan (2010), output feedback control of a quadrotor UAV using neural networks is performed. Nicol, Macnab, and Ramirez-Serrano (2011) proposed a new adaptive neural network control to stabilize a quadrotor helicopter against modeling error and considerable wind disturbance. The new method is compared to both dead zone and e-modification adaptive techniques. Roberts and Tayebi (2011) presented an adaptive position-tracking control scheme is proposed for a UAV for a set of bounded external disturbances.

Raffo, Ortega, and Rubio (2010) used an integral predictive and nonlinear robust control strategy to solve the path following problem for a quadrotor. Aerodynamic disturbances and parametric uncertainties are considered in this paper. In Mhammed and Hicham (2009) a high gain observer and sliding mode controller is designed which allows on-line estimation of the roll and pitch angles as well as all the linear

and angular velocities of the vehicle. Under the restriction that only the inertial coordinates and yaw angle are available for measurement. Das, Lewis, and Subbaro (2009) apply dynamic in-version to the inner loops, which yields internal dynamics that are not necessarily stable. Instead of redesigning the output control variables to guarantee stability of the internal dynamics, a robust control approach is used to stabilize the internal dynamics. In Lee, Kim, and Sas-try (2009) two types of nonlinear controllers for an autonomous Quadrotor helicopter are presented. A feedback linearization controller, which involves high-order derivative terms, and the second type involves a new approach to an adaptive sliding mode controller using input augmentation. In Benallegue, Mokhtari, and Fridman (2008) a feedback linearization based controller with a high-order sliding mode observer running parallel is applied to a VTOL unmanned aerial vehicle. Zhang, Quan, and Cai (2011) discussed the attitude control of a quadrotor aircraft subject to a time varying and non-vanished disturbances and stabilized using a feedback controller with a sliding mode term. Efe (2011) presented different control architectures; a robust control scheme that can alleviate disturbances. A Proportional Integral and Derivative (PID) type controller with noninteger order derivative and integration is proposed as a remedy. A neural network is used to train to provide the coefficients.

Zemalache and Maaref (2009) applied a fuzzy controller based on on-line optimization of a zero order Takagi–Sugeno fuzzy inference system, which is tuned by a back propagation-like algorithm, for a drone. It is used to mini-mize a cost that prevents an excessive growth of parameters. In this paper some uncertainties are considered. Orsag, Poropat, and Bogdan (2010) used an innovative method to solve the quadrotor control problem, which is based on a discrete automaton. This automaton combines classical PID and more sophisticated LQ con-trollers to create a hybrid control system. Fahimi and Saffarian (2011) presented an innovative

Page 3: Modeling and Adaptive Tracking Control of a Quadrotor UAV

60 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

approach that uses the spatial three-dimensional coordinates of a point on the helicopter’s local coordinate frame other than its centre of gravity, called the control point, and the helicopter’s yaw angle as four control outputs. With this choice of control outputs, the helicopter’s input–output model becomes a square control system.

Vision based control of UAVs is discussed in Guenard, Hamel, and Mahony (2008); Ma-hony, Corke, and Hamel (2008); Bourquardez, Mahony, Guenard, Chaumette, Hamel, and Eck (2009); García Carrillo, Rondon, Sanchez, Dzul, and Lozano (2011) and Eberli, Scaramuzza, Weiss, and Siegwart (2011). In Tarhan and Altug (2011), catadioptric systems in UAVs to estimate vehicle attitude using parallel lines that exist on many structures in an urban environment was used. In order to increase the estimation and control speed an Extended Kalman Filter (EKF) was used.

Most of these control schemes don’t con-sider parametric and nonparametric uncertain-ties in their models. In addition most of them were ignoring important practical issues such as dynamics of actuators and battery discharging during flight time. It is important also to note that he quadrotor structure and its mass are constant but quadrotor payload can change in every mission. Therefore, mass properties of quadrotor are changing and a time-invariant feedback control could not provide a satisfying performance.

The contribution of this paper is to describe a clear, comprehensive and step by step model-ling procedure. On the other hand a controller of proper structure having a feasible attitude control inner loop and a practical position con-trol outer loop is designed. This uses inverse kinematic instead of small angle approximation to achieve better accuracy. An online robust parameter estimation to cope with parametric uncertainty is the explicit part of this controller. The proposed non-linear adaptive controller doesn’t depend on the physical parameter of the

UAV such as mass or moment of inertia tensor. Furthermore the proposed controller works well with various payloads. Also in designing this controller both of the parametric and non-parametric uncertainties are considered.

In this paper the general dynamics of VTOL UAV’s is obtained by Lagrange-Euler formalism. These dynamic equations are speci-fied for a quadrotor UAV configuration. Then an adaptive controller is designed to solve trajectory tracking problem in the presence of all mentioned problems. In this approach the control of the UAV is performed in two inner and outer control loops. The outer control loop, which controls the translational movements, generates the instantaneous desired angles as a reference trajectory to an inner control loop. In addition, translational forces are produced in the outer loop. The inner loop as attitude control stabilizes the orientation of the vehicle accord-ing to the desired angles which are generated by an outer loop. Decentralized adaptive con-trollers are used in both inner and outer control loops to cope with uncertain dynamics of the system. Inverse kinematics of the robot is used to convert outputs of the outer loop to inputs of the inner loop. Controller needs some physical parameters of UAV, like total mass, to generate appropriate control signals. A robust parameter identifier estimates the required parameters for the controller. Finally, the proposed controller is developed for the quadrotor and simulations are carried out to illustrate the robustness and tracking performance of the controller.

Comparing with the other adaptive control-lers that used to trajectory tracking control of the quadrotor, which most of them are based on the backstepping technique and neural networks, the proposed controller unlike backstepping based controllers has a simple and clear structure, and unlike neural network based controllers doesn’t need training. It is important to note that the training a neural network in order to identify a non-linear multi-input multi-output system such

Page 4: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 61

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

as quadrotor is not easy at all. The suggested decentralized adaptive controller doesn’t need to a high speed microprocessor as a control unit because it is not a high computing controller.

The reminder of the paper presents the gen-eral model of a UAV, as well as a quadrotor is introduced as rotary wing UAV. Next the control strategy and decentralized adaptive controller is described. Simulation results are presented in next. Finally, the major conclusions of the paper are provided.

UAV MODELLING

Having mathematical dynamic model of a vehicle is essential for designing a good controller. Nevertheless a UAV model always includes some uncertainties. As the model becomes simpler the controller becomes more complicated. A model with more details leads to a more efficient controller. But modelling with all details is an expensive task and needs the special apparatus such as a wind tunnel and hardware in the loop (HIL) facilities.

UAV modelling procedure includes the following steps:

• Determining the dynamic equations of the vehicle;

• Determining the structure of uncertain dynamics;

• Determining the relationship between control inputs and outputs of the actuators for a specified UAV;

• Determining the actuators dynamics.

Dynamics Equation of Rigid Body

For obtaining the dynamic equations of 6DOF rigid body, two frames should be defined. The inertial frame and the body frame. Let B B B B= , , 1 2 3 be the body fixed frame and E Ex Ey Ez= , , be the inertial frame. The inertial frame is considered fixed with respect to the Earth (Figure 1).

The vector ξ = [ , , ]x y z T is the position of UAV in inertial frame and the vector η θ ψ= [ , , ]φ T is the orientation of body frame with respect to a fixed frame, and referred to as Euler angles. These angles are bounded as follows:

roll

pitch

yaw

:

:

:

− < <

− < <

− < <

π π

π π

π ψ π

2 2

2 2

φ

θ

(1)

The dynamics equations of motion can be obtained by the Lagrange-Euler formulation as follows:

H C

m mg

Ez

η η τη η η

ξ

η

ξ

( ) + ( ) =

+

=

,

0

0 f

(2)

The derivation procedure of the dynamic model (2) is provided in Appendix A.

Structure of Uncertain Dynamics

Let us consider and determine the structure of uncertain dynamics. Some of uncertain dynam-ics are as follows:

Aerodynamic moments and forces: these are produced by movement of the body in the air. These moments and forces completely depend on air density and angular and linear velocity of the body. These moments and forces haven’t certain form, thus we represent those by 3×1 vectors A

ηη( ) and A

ξξ( )

(Bouabdallah, 2007).Friction forces: produced by body move-

ment in the air, those depend on the area of body that is in contact with the air and veloc-

Page 5: Modeling and Adaptive Tracking Control of a Quadrotor UAV

62 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

ity of movement. So we can represent them by a 3×1 vector F

ξξ( ) .

Now we can express all uncertain forces and moments in unit term.

τ η η

ξ ξ ξη

ξ ξ

uncertain

uncertain

A

F A F

( )

= ( )( )= ( )+ ( )

(3)

Therefore, dynamic equations of UAV are as follows:

m mg

E

H C

z

ξ

η

ξ

η η η

ξ+

= + ( )

( ) + ( )

0

0 f Funcertain

, η τ τ ηη

= + ( )

uncertain (4)

Determining the Relationship between Control Inputs and Actuators Outputs for Quadrotor Helicopter

As a propeller rotates in the air, it produces a force (thrust) and a moment (drag). Thrust and drag are denoted by T and D. The direction of drag is the opposite of rotation’s direction. In hover condition both of these are proportional by square of rotational speed.

T

D

=

=

K

KT

D

Ω

Ω

2

2 (5)

where KT> 0 and K

D> 0 are thrust and

drag coefficients, respectively, and Ω is rota-tional speed of the propeller.

Figure1.Inertialandbodyframesofrigidbody

Page 6: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 63

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

Quadrotor is a UAV configuration with four independent rotors operated by proper velocity control of each rotor. We denote the force produced by rotors by T1, T2, T3, and T4. Moments produced by rotors are denoted by D1, D2, D3, and D4. Since propellers 1 and 3 rotate in the opposite direction of propellers 2 and 4, then the signs of D1 and D3 are opposite to the signs of D2 and D4 (Figure 2).

Quadrotor has six degrees of freedom like other UAVs. Since the number of actuators is less than the degrees of freedom we could not control all degrees of freedom simultaneously. These kinds of systems are called underactu-ated mechanical systems.

When all rotors have the same rotational speed, and the lift force is equal to the weight of the vehicle, then quadrotor has a fixed and stable attitude. In this condition the orientation of the body frame with respect to the inertial frame is fixed, and the quadrotor is in the hov-

ering mode. In order to change the altitude of quadrotor we must change the lift force which is defined by:

U Ti

i=

=

∑1

4

(6)

Longitudinal movements are achieved by a change in the roll angle, and a change in the roll angle is taken place whenever T1 and T3 are not equal. So for controlling the longitudinal movements we must control the roll angle. We define the roll control input as follow:

τφ= − +( )l T T

1 3 (7)

where l is the distance between the center of the rotor to the center of the vehicle (Figure 2).

Figure2.Quadrotorhelicopterscheme

Page 7: Modeling and Adaptive Tracking Control of a Quadrotor UAV

64 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

Lateral movements are achieved by a change in the pitch angle. The pitch angle is changed whenever T2 and T4 are not equal. Thus for controlling the lateral movements we must control the pitch angle. We define the pitch control input as follow:

τθ= − +( )l T T

2 4 (8)

Yaw movement is the rotation about B3 direction. This movement is achieved by a change in the sum of D1, D2, D3 and D4. It must be noted that the signs of D1 and D3 are opposite the signs of D2 and D4, thus we define yaw moment as follows:

τψ= + + +D D D D

1 2 3 4 (9)

From (2) and (12), fξ

can be expressed as follows:

f

S S C S CU

m

C S S S CU

m

C CU

m

ξ

ψ ψ θ

ψ ψ θ

θ

=

+( )

− +( )

( )

φ φ

φ φ

φ

(10)

Further, τη

can be expressed as follows:

τ

τ

τ

τη θ

ψ

=

− +( )− +( )+ + +

=

l T T

l T T

D D D D

1 3

2 4

1 2 3 4

φ

(11)

The final step for specifying the quadrotor model from the general form of a UAV model (2) is determining H η( ) and C η η, ( ) matrices.

A quadrotor usually has a symmetric structure, so its moment of inertia tensor can be assumed in diagonal form.

I

Ixx

Iyy

Izz

=

0 0

0 0

0 0

(12)

Actuators Dynamics

Due to high power and low weight and fast response, a brushless DC motor (BLDC) is the common type of actuator that is used in com-mercial UAV. These types of actuators are usu-ally modeled by experimental methods. BLDC motor, its driver and propeller are considered as a unique system. The speed response of this unit can be modeled as a linear system, which has a second order transfer function:

G ss s

n

n n

( )=+ +

ω

ςω ω

2

2 22

(13)

where ωn

and ς are natural frequency and damping ratio respectively.

CONTROLLER DESIGN

To achieve a good trajectory tracking for a quadrotor helicopter, the following steps are necessary. Firstly a trajectory generator provides a reference trajectory for the position. Then, according to the difference between reference trajectory and the path travelled by UAV the position control signals are generated by a decentralized adaptive controller. Inverse ki-nematics of robot is used to convert outputs of the outer loops to inputs of the inner loops. The outputs of the inverse kinematics block are U,

Page 8: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 65

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

desired roll angle, and desired pitch angle. The controller needs some physical parameters of UAV e.g., total mass, to generate appropriate control signals. A parameter identifier estimates the required parameters for the inverse kinemat-ics equations. A leakage modification is applied to the parameter identifier to increase its robust-ness against disturbances and uncertain dynam-ics. Inner control loops stabilize the attitude of UAV. Each of inner control loops is a decentral-ized adaptive controller. The outputs of inner control loops are elements of τ

η. Finally,

control signals are converted to speed of rotors. The overall scheme of the control strategy is depicted in Figure 3.

Reference Trajectory Generator

It is required for the UAV to fly from a prescribed initial position [ , , ]x y z

di di di to a prescribed

final position [ , , ]x y zdf df df

in a specified time tf such that the jerk (rate of change of the ac-celeration) is minimized over the time horizon. This trajectory ensures that the velocities and accelerations at the end point are zero. Assum-ing:

x t x a t a t

a t a t a t

d di x x

x x x

( )= + +

+ + +

1 2

2

3

3

4

4

5

5 (14)

The initial and final velocities and accel-erations are zero; therefore two consecutive differentiation provides the following equation:

a

a

a

t t

t t

t t

x

x

x

f f

f f

f f

3

4

5

2

2

2

1

3 4 5

6 12 20

=

−1

0

0

dx

(15)

where

dx x

tx

df di

f

=−( )3

(16)

Thus, the desired trajectory for the x direc-tion is given by

x t x a t a t a td di x x x( )= + + +

3

3

4

4

5

5 (17)

Figure3.UAVcontrolscheme

Page 9: Modeling and Adaptive Tracking Control of a Quadrotor UAV

66 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

The reference trajectories for the y and z directions are given by similar relationships (Spong, Hutchinson, & Vidyasagar 2006).

Decentralized Adaptive Control

Consider the dynamic equations of a UAV as:

m mg

E

H C

z

ξ ξ

ηη η η

ξ+

− ( )=

( ) + ( )

0

0 F funcertain

, η τ η τη

− ( )=

uncertain

(18)

By matrix multiplication the dynamic model of the quadrotor can be rewritten as:

m

ξ ξ

η

ξ ξ

ηξi

i

Ti

ii i

d f

H d

+ ( )=+

, ,

,ηη η τ, , ,( )= =

· i i 1 2 3

(19)

In the proposed decentralized control scheme which is motivated from (Seraji, 1989), an independent controller is designed for each channel of (19). The control laws considered in this section are restricted to be decentralized, that is, each local controller operates solely on its own subsystem with no exchange of infor-mation between the subsystems. The adaptive independent controllers dedicated to η

iand

are described by:

( ) ( ) ( ) ( )..

f t f t

K t e t K t t

e

i Ti

T i Ti T i Ti di

ξ

ξ

( )= ( )

+ +( )+0 1 q

Ä·· i i

i i i i

t f t

K t e t K t te

( )= ( )+ ( ) ( )+ ( ) ( )( )0 1

(20)i = 1 2 3, ,

where ei ri i= −η η is the orientation error.

eTi ri i= −ξ ξ is the position error. ξ

ri and

ηriare the desired trajectories. The control law

(20) is composed of three components, name-ly:

i. The term f t( ) which is an auxiliary signal synthesized by the adaptation scheme to improve the tracking performance and partly compensating for the d

i and d

Ti;

ii. The term K t e t K t tei i i i0 1( ) ( ) ( ) ( )+( ) which

is due to the adaptive feedback controller with adjustable gains K t

i0( ) and K t

i1( ) ,

that acting on defined errors;

iii. The term qdiξ..

which is contributed by the adaptive acceleration feed forward control-ler with the adjustable gains q operating

on the desired acceleration ξdi

..

.

The following Theorem provides the con-troller adaptation laws for tracking the desired trajectory that is produced by the outer loops.

Theorem 1:

Consider the UAV dynamic equation (19) and adaptive control low (20), the controller adaptation laws which ensure asymptotic trajec-tory tracking are based on the weighted error r ti( ) as follows:

r t W e t W

r t W e t W

e (t)

e (t)

i pi i vi

Ti Tpi Ti Tvi

i

Ti

( )= ( )+

( )= ( )+

.

.

(21)

Auxiliary signal

f t f r t r t

f t f

i i i

t

i i i

Ti Ti Ti

( )= ( )+ + ( )

( )= ( )+

∫0

0

0

δ ρ

δ

( )dt

00

t

Ti Ti Tir t r t∫ + ( )

( )dt ρ

(22)

Feedback gains

Page 10: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 67

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

K t K r

t e t r t e t

K

ij ij ij

t

i

i

j

ij i i

j

Ti

( )= ( )+

+ ( ) ( )∫

( ) ( )

00

α

β( ) ( )dt

jj Tij Tij

t

Ti

Ti

j

Tij Ti Ti

j

t K r

t e r t e

( )= ( )+

+ ( )∫

( ) ( )

00

α

β( ) ( )dt t

(23)

j = 0 1,

Feedforward gain

q t q r

t t dt r t t

i i i

t

Ti

i Tidi di

( )= ( )+

+ ( ) ( )

∫00

γ

λξ ξ( ) ( ).. ..

(24)

where in e ti

j( ) ( ) , the superscript “(j)” denotes

the jth derivative.δ α δ α γi ij Ti Tij, , , , a re any posi

tive scalar integral adaptation gains, ρ β ρ β λi ij Ti Tij, , , , are zero or any positive

propor t ional adapta t ion gains , and W W W Wpi vi Tpi Tvi, , , are positive scalar

weighting factors.r ti ( ) and r t

Ti ( ) are used to tuning the

controller. If the response is slow, Wpi

and

WTpi

must increase. If more stable response is

required, Wvi

and WTvi

must increase.

Proof: The Theorem is proven in Appendix B using an improved Lyapunov-based Model Reference Adaptive Control (MRAC) technique.

Inverse Kinematic

which is given in (20) must be converted to the instantaneous desired angles and transla-tional forces. Translational forces are com-manded to the UAV actuators directly and the desired angles are given to the rotational con-

trollers as desired trajectories (Figure 3). Cal-culating translational forces and desired angles is performed by using inverse kinematics. Substituting f

ξ that is obtained from equation

20 in equation 10 yields:

f

S S C S CU

m

C S S S CU

m

C CU

m

ξ

ψ ψ θ

ψ ψ θ

θ

=

+( )

− +( )

( )

φ φ

φ φ

φ

=

f

f

f

x

y

z

ξ

ξ

ξ

(25)

For solving these equations we assumed that there are no uncertain dynamics or distur-bances. Solving equation (25) gives:

U m f f f

Atanf C f S

f

x y z

x y

z

= + +

=+

ξ ξ ξ

ξ ξ

ξ

θψ ψ

2 2 2

=−

Atanf S f C

fcos

x y

z

φ ( ( ))ξ ξ

ξ

ψ ψθ

(26)

Parameter Estimation

As it is clear in (26), calculating U needs the value of total mass of the vehicle, m. However, we assumed that the value of m and other ve-hicle mass parameters such as momentum of inertia are unknown. In order to determine m, consider the third row of (18) as:

z gm

U+ = ( ) ( )( ) +1

1cos cosθ µφ (27)

If we define new variables as follow:

Z g

U

= +

=

= ( ) ( )( )= ( )+

z

m

F

*

uncertainz

cos cos

Θ1

1ϕ φ

µ κ

θ

ξ

(28)

Page 11: Modeling and Adaptive Tracking Control of a Quadrotor UAV

68 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

where µ is a nonparametric bounded uncer-tainty, that consists of third element ofFuncertain

ξ( ) and the output disturbances. As-suming κ as a bounded disturbance, we can redefine (27) as follow:

Z*= +Θ ϕ µ (29)

Then Θ* can be estimated as Θ by the following differential equation:

Θ = −γϕ γωΘε (30)

where ε is a filtered error signal, which is given by (31), and γ is positive constant that determines the speed of convergence.

ε Θϕ= −Z (31)

Various choices of the leakage term ω( )t are available. The common choice for ω( )t is a positive constant:

ω σt t( )= ∀ ≥, 0 (32)

where σ is a small positive design parameter. This method is referred to as the σ modification or leakage modification.

It is proven that if U is a Persistence Excit-ing signal, Θ will converge to its true value *Θ . Also convergence of this adaption law has been proven in Ioannou and Sun (1996).

SIMULATION RESULTS

In this section, computational analysis and computer simulations are performed to validate the tracking performance and the robustness of the proposed controllers in the presence of parametric and nonparametric uncertainties. All simulations are carried out with a fixed time

step of 1 millisecond. The UAV parameters are chosen based on a real world aerial robot. Physical parameters of UAV are listed in Table 1.

Initial control parameters of inner control loops are determined as follows:

W diagp= ( , , )10 10 10 , W diag

v= ( , , )1 1 1

f 0 0 0 0( )= [ , , ] , δ = [ , , ]1 1 1 , ρ = [ , , ]1 1 1

K Ki i0 10 5 5 5 0 1 1 0 4( )= ( )=[ , , ], [ , , . ]

i iα α1 25 5 5 1 1 1= =[ , , ] [ , , ] ,

iβ11 1 1= [ , , ] ,

iβ21 1 1= [ , , ]

Initial control parameters of outer control loops are determined as follows:

W diagTp= ( , , )7 7 4 ,

W diagTv= ( . , . ,. )0 7 0 7 3

fT0 0 0 9 81( )= [ , , . ] , δT = [ , , ]1 1 1 ,

Tρ = [ , , ]1 1 1 KTi00 11 11 5 5( )=

, , . ,

KTi10 0 5 0 5 0 5( )=

. , . , .

αTi1

2 2 2= [ , , ] , Tiα

21 1 1= [ , , ] ,

Tiβ11 1 1= [ , , ] ,

Tiβ21 1 1= [ , , ]

q 0 1 1 1( )= [ , , ] , γ = [ , , ]1 1 1 , λ = [ , , ]1 1 1

The following persistent light gusts of wind are considered as external disturbances on the aerodynamic forces and moments:

τφ= =1 4 3. Nmint s ;

τθ= =1 4 4. Nmint s ;

τψ= =1 4 5. Nmint s ;

F N in t sx= =2 6 ; F N in t s

y= =2 7

and F N in t sz= =2 8 .

Maximum control torque in any rotational axis is 2 N.m. Rotational external disturbance is 1.4N.m, which is directly applied to the system.

Page 12: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 69

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

rotationalexternaldisturbance

MaximumControl torqueana

xxismomentumof inertiaodaxis

.

/ ( . )%= ≈

1 4

2 0 535

Therefore the rotational external distur-bance is equal to 35 per cent of the maximum applied torque.

The maximum control force is 22 N, and translational external disturbances are 2 N in each axis.

Sumof translationalexternaldisturbance

MaximumControl f

oorce

=+ +

≈( )

%2 2 2

2227

Therefore the translational external distur-bance is equal to 27 per cent of the maximum applied force.

For simulation purposes, UAV is supposed to fly from the pre-specified initial position ξ

d0

to pre-specified final position ξdfin a specified

time tf. In this case we set ξd0

0 0 0= [ , , ] ,dfξ = [ , , ]5 5 5 and tf =10s. We assume that the

UAV’s initial position has a large error, which is equal to 4 percent of all displacement, i.e., ξ00 2 0 2 0 2= [ . , . , . ] and set ψ

d= 0 .

Furthermore, the controller is tested in the presence of nonparametric uncertainty. We assume that there are forces and torques in

the vehicle dynamics that is not considered in the dynamic model of the quadrotor, with the following values:

F K x y zuncertain Faero

T ξ( )=

2 2 2 and

τ η φ θ ψτuncertain aero

T

K ( )=

2 2 2

w h e r e K diagFaero= (. ,. ,. )25 25 25 a n d

K diagaeroτ= ( . , . , . )0 75 0 75 0 75 . Figure 4 shows

the desired and actual positions for this sce-nario.

As it clear from the Figure 4 that the con-trollers have rejected disturbances effectively and the system is robust in the presence of uncertain dynamics. It can be observed that the final error of position is zero. It can be seen that starting from an initial position far from the reference, the proposed control strategy is able to make the vehicle follow the reference trajectory.

Figure 5 shows the reference and actual attitudes. These reference attitudes generated by the inverse kinematics block at the end of outer control loops.

According to the results shown in Figure 5, it can be concluded that the rotational con-trollers has good performance in disturbance rejection, and drive the system to the stable position in a short time. Steady state errors are caused due to existence of external distur-bances, which are not considered in inverse

Table1.Valuesofquadrotorphysicalparameters

Unit Value Parameter

Kg 1 m

Kg.m2 0.5 Ixx

Kg.m2 0.5 Iyy

Kg.m2 0.85 Izz

M 0.24 l

N.m.s2 1.1×10-6 KD

N.s2 54.2×10-6 KT

Page 13: Modeling and Adaptive Tracking Control of a Quadrotor UAV

70 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

kinematic calculation. Thus, the reference trajectory angles for inner loops are generated imperfectly. Furthermore, it can be seen that the controller eliminate interactions effec-tively, so that disturbance in each channel causes to change the control signal of the same chan-nel. These results show that control strategy

provides a robust path following in the presence of parametric and nonparametric uncertainties when sustained disturbances are applied to the system.

Figure 6 shows the control signals U, produced by translational controllers, and U2,

Figure4.Threepositioncommands

Figure5.Threeorientationcommands

Page 14: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 71

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

U3, U4, the moments, which are calculated by inner controllers.

Control signals are limited (0 to 22 N for forces and -2 to 2 N.m for torques) and pass through a slew rate limiter (100 N per second for force and 10 N.m per second for torques) such that the control signals are completely feasible. As it is shown in Figure 6, control signals stabilize the system and provide good trajectory tracking.

CONCLUSION

The general form of the dynamic model of an UAV is presented. A decentralized tracking controller has been designed based on model reference adaptive control for the UAV. The control strategy has been split into two stages. Outer position control loops and inner dy-namic attitude control loop. The computational analysis and simulation results show that the designed controllers are not dependent on physi-cal parameter. Furthermore, the controllers are robust, and have a good performance in trajec-tory tracking in the presence of parametric and nonparametric uncertainties. These controllers are also able to reject sustained disturbances. The controllers were designed purposefully to be

easy to implement. The main drawback of this method is that uncertainty in control input and measurement noise are not considered. Future work will involve the implementation of the control strategy in a real quadrotor.

REFERENCES

Asada, H., & Slotine, J. (1986). Robotanalysisandcontrol. New York, NY: John Wiley & Sons.

Benallegue, A., Mokhtari, A., & Fridman, L. (2008). High-order sliding-mode observer for a quadrotor UAV. InternationalJournalofRobustandNonlinearControl, 18(4-5), 427–440. doi:10.1002/rnc.1225

Bouabdallah, S. (2007). Design and control ofquadrotor with application to autonomous flying (Unpublished doctoral dissertation). EPFL Univer-sity, Lausanne, Switzerland.

Bourquardez, O., Mahony, R., Guenard, N., Chau-mette, F., Hamel, T., & Eck, L. (2009). Image-based visual servo control of the translation kinematics of a quadrotor aerial vehicle. IEEE Transac-tions on Robotics, 25(3), 743–749. doi:10.1109/TRO.2008.2011419

Das, A., Lewis, F., & Subbaro, K. (2009). Backstep-ping approach for controlling a quadrotor using lagrange form dynamics. Journalof Intelligent&Robotic Systems, 56(1-2), 127–151. doi:10.1007/s10846-009-9331-0

Figure6.Controlsignals

Page 15: Modeling and Adaptive Tracking Control of a Quadrotor UAV

72 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

Das, A., Lewis, F., & Subbaro, K. (2009). Dy-namic inversion with zero-dynamics stabilisation for quadrotor control. IETControlTheoryApplication, 3, 303–314. doi:10.1049/iet-cta:20080002

Dierks, T., & Jagannathan, S. (2010). Output feedback control of a quadrotor UAV using neural networks. IEEE Transactions on Neural Networks, 21(1), 50–66. doi:10.1109/TNN.2009.2034145

Eberli, D., Scaramuzza, D., Weiss, S., & Siegwart, R. (2011). Vision based position control for MAVs using one single circular landmark. JournalofIntelligent&RoboticSystems, 61(1-4), 495–512. doi:10.1007/s10846-010-9494-8

Efe, M. Ö. (2011). Neural network assisted compu-tationally simple PID control of a quadrotor UAV. IEEETransactionsonIndustrialInformatics, 7(2), 354–361. doi:10.1109/TII.2011.2123906

Fahimi, F., & Saffarian, M. (2011). The control point concept for nonlinear trajectory-tracking control of autonomous helicopters with fly-bar. InternationalJournalofControl, 84(2), 242–252. doi:10.1080/00207179.2010.549842

García Carrillo, L. R., Rondon, E., Sanchez, A., Dzul, A., & Lozano, R. (2011). Stabilization and trajec-tory tracking of a quadrotor using vision. JournalofIntelligent&RoboticSystems, 61(1-4), 103–118. doi:10.1007/s10846-010-9472-1

Guenard, N., Hamel, T., & Mahony, R. (2008). A practical visual servo control for an unmanned aerial vehicle. IEEE Transactions on Robotics, 24(2), 331–340. doi:10.1109/TRO.2008.916666

Huang, M., Xian, B., Diao, C., Yang, K., & Feng, Y. (2010). Adaptive tracking control of underactuated quadrotor unmanned aerial vehicles via backstepping. In ProceedingsoftheAmericanControlConference, Baltimore, MD (pp. 2076-2081).

Ioannou, P., & Sun, J. (1996). Robustadaptivecontrol (pp. 555–565). Upper Saddle River, NJ: Prentice Hall.

Lee, D., Kim, H., & Sastry, S. (2009). Feedback linearization vs. adaptive sliding mode control for a quadrotor helicopter. International Journal ofControl. AutomationandSystems, 7(3), 419–428. doi:10.1007/s12555-009-0311-8

Madani, T., & Benallegue, A. (2008). Adaptive con-trol via backstepping technique and neural networks of a quadrotor helicopter. In Proceedingsofthe17thWorld Congress The International Federation ofAutomaticControl, Seoul, Korea (pp. 6513-6518).

Mahony, R., Corke, P., & Hamel, T. (2008). Dy-namic image-based visual servo control using cen-troid and optic flow features. JournalofDynamicSystems,Measurement, andControl, 130, 35–46. doi:10.1115/1.2807085

Mhammed, G., & Hicham, M. (2009). A high gain observer and sliding mode controller for an autono-mous quadrotor helicopter. InternationalJournalofIntelligentControlandSystems, 14(3), 204–212.

Michini, B., & How, J. (2009). L1 adaptive control for indoor autonomous vehicles: Design process and flight testing. In ProceedingsoftheAIAAGuidance,Navigation,andControlConference, Chicago, IL (pp. 5754-5768).

Nicol, C., Macnab, C. J. B., & Ramirez-Serrano, A. (2011). Robust adaptive control of a quadrotor helicopter. JournalofMechatronics, 21(6), 927–938. doi:10.1016/j.mechatronics.2011.02.007

Orsag, M., Poropat, M., & Bogdan, S. (2010). Hy-brid fly-by-wire quadrotor controller. Automatika(Zagreb), 51(1), 19–32.

Raffo, G., Ortega, M., & Rubio, F. (2010). An integral predictive/nonlinear control structure for a quadrotor helicopter. Automatica, 46, 29–39. doi:10.1016/j.automatica.2009.10.018

Roberts, A., & Tayebi, A. (2011). Adaptive posi-tion tracking of VTOL UAVs. IEEE Transac-tions on Robotics, 27(1), 129–142. doi:10.1109/TRO.2010.2092870

Seraji, H. (1989). Decentralized adaptive control of manipulators: Theory, simulation, and experimenta-tion. IEEETransactionsonRoboticsandAutomation, 5(2), 183–201. doi:10.1109/70.88039

Spong, M., Hutchinson, M., & Vidyasagar, M. (2006). Robotmodeling and control (pp. 149–186). New York, NY: John Wiley & Sons.

Tarhan, M., & Altug, E. (2011). EKF based attitude estimation and stabilization of a quadrotor UAV us-ing vanishing points in catadioptric images. JournalofIntelligent&RoboticSystems, 62(3-4), 587–607. doi:10.1007/s10846-010-9459-y

Zemalache, K., & Maaref, H. (2009). Controlling a drone: Comparison between a based model method and a fuzzy inference system. AppliedSoftComput-ing, 9, 553–562. doi:10.1016/j.asoc.2008.08.007

Zhang, R., Quan, Q., & Cai, K.-Y. (2011). Attitude control of a quadrotor aircraft subject to a class of time-varying disturbances. IETControlTheoryApplication, 5(9), 1140–1146. doi:10.1049/iet-cta.2010.0273

Page 16: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 73

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

MostafaMohammadiwasborninSardasht,Iranin1986.HereceivedaBSandMScin2008and2011inControlEngineeringinIUST.Hisresearchinterestsare:Nonlinearandadaptivecontrol,Systemidentification,Adaptivecontrol,aerialrobots,MobileRobots,andMechatronicsystems.

AlirezaMohammadShahrireceivedaBSdegreeinElectricalengineeringfromK.N.ToosiUni-versityofTechnology,Iranin1985.HethenreceivedhisMEngandPhDdegreesinElectricalEngineeringfromUniversityofWollongong,Australiain1994and1998,respectively.Hisresearchinterestsare:Instrumentationandmeasurementsystems,Industrialcomputernetworks,MobileRobots,andMechatronicsystems.Dr.ShahriiscurrentlyFacultyMemberatthedepartmentofElectricalEngineeringatIranUniversityofScience&Technology.

ZahraBoroujeniwasborninTehran,Iranin1989.ShereceivedaB.S.degreeinElectricalengineering (control) from Iran university science and technology, Tehran (IUST) in 2010.NowsheisstudentofMScControlEngineeringinIUST.Herresearchinterestsare:Nonlinearcontrol;Systemidentification;Adaptivecontrol;Robotic;Mechatronic.Sheiscurrentlywork-ingonsurgeryrobots.

Page 17: Modeling and Adaptive Tracking Control of a Quadrotor UAV

74 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

APPENDIX A

Derivation Procedure of the Dynamic Model

The rotation matrix from B to E, is Rθ, which is obtained by post-multiplying the three basic

rotation matrices in the following order: Rotation about the Ez axis of the angle ψ (yaw), Rotation about the New y axis of the angle θ (pitch), and Rotation about the resultant x axis of the angle φ (roll). R

θ is given by (34). Let VB be the translational velocity vector in body

fixed frame. The relationship between the derivatives of ξ and VB is as follows:

ξθ

= R VB (33)

R

C C S C C S S S S C S C

S C C C S S S C S S S Cθ

ψ θ ψ ψ θ ψ ψ θ

ψ θ ψ ψ θ ψ ψ θ=

− + +

+ − +

φ φ φ φ

φ φ φ φ

SS C S C Cθ θ θφ φ

(34)

where C cos. (.)= and S sin. (.)= .Let ωB be rotational velocity vector in body fixed frame. The relationship between the

derivatives of η ( η ) and ωB is as follows:

η ωθ

= T B (35)

T

s t c t

c s

s c c cθ

θ θ

θ θ

= −

1

0

0

φ φ

φ φ

φ φ/ /

(36)

where t tan. (.)= .The dynamics equations of motion can be expressed by the Lagrange-Euler formulation:

Qd

dt

L L

qq

i

i

i

=∂

−∂

= −

.

L T U

(37)

where q RTT

=

ξ η ∈, 6 is the generalized coordinates vector. Q is the generalized force vector and L is the Lagrangian. T and U are kinetic and potential energy, respectively. Since the La-grangian does not contain any term that combines ξ with η , dynamics equation can be sepa-rated to the rotational and the translational parts.

Page 18: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 75

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

Rotational Dynamics

In rotational dynamics there is no potential energy. Thus, L T= . where T is the Kinematic energy, which is produced by rotational motion. Let I be the moment of inertia tensor of the rigid body. Rotational kinematic energy is obtained by the following equation:

T B B==

∑1

21

3

i

i

T

i iIω ω

(38)

By using (35), the previous equation can be rewritten as follows:

T IT= − −1

2

1 1 η η

θ θT TT (39)

Therefore Lagrangian can be expressed as follows:

L HT=

1

2

η η (40)

where

H I= − −T TTθ θ

1 1 (41)

Thus the Lagrange-Euler rotational dynamics in terms of η can be expressed as follows:

H Cη η η η η τη( ) + ( ) = , (42)

τη

represents the roll, pitch and yaw moments. The first term of the left hand side of (42) represents the inertial moments, while the second term includes Coriolis and centrifugal forces (Asada & Slotine, 1986).

Translational Dynamics

In translational dynamics, in contrast to rotational dynamics, there is the gravitational potential energy. Therefore, (37) can be expressed as follows:

L m mgT= −

1

2

0

0 ξ ξ

Ez

(43)

Page 19: Modeling and Adaptive Tracking Control of a Quadrotor UAV

76 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

where m is the total mass of the body and g is gravitational constant. The translational dynam-ics equations can be expressed as follows:

m mg fξξ

+

=

0

0

Ez

(44)

where fξ

is 3×1 vector containing all translational forces.

APPENDIX B

Controller Adaptation Laws

The controller adaptation laws derived using an improved Lyapunov-based MRAC method. We first prove this Theorem for translational part.

Consider the ith row of the translational part of (19) and the adaptive control law (20). On applying (20) to (19), we obtain the error differential equation:

m d f t

K t e t K t t qe

i i i

i Ti i Ti di

ξ ξ ξ ξ

ξ

..

, ,+ ( )= ( )

+ ( ) ( )+ ( ) ( )( )+

0 1

... (45)

If we substitute ξ ξi id Ti

e= − then dropping the subscript i for convenience, (45) can be rewritten as follow:

me k e k e d f m qd

+ + = − + −1 0

( )ξ (46)

Let us define the 2×1 error vector X t e t e(t) T( ) [ , ].

= ( ) and rewrite (46) as the “adjustable system:”

X(t) k

m

k

m

X t d f

m

.

= − −

( )+ −

0 0 0

0 1

+ −

0

m q

m

dξ (47)

Let the desired performance of the tracking error e t( ) , denoted by e tm( ) , be described by

the second-order homogeneous differential equation:

e m e t e tm m m m

.. ..

( )+ ( )+ ( )=2 02ζω ω (48)

Page 20: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 77

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

ω and ζ are natural frequency and damping ratio respectively. Rewriting (48) in a vector form, we obtain the “reference model”:

X (t) X t A X tm

m

m m m

.

=− −

( )= ( )

0 1

22ω ζω (49)

whereX te t

e tm

m

m

( )=( )

( )

. . Since the reference model (49) is stable, there exist symmetric positive-

definite constant 2×2 matrices P and Q which satisfies the Lyapunov equation.

PA A P Qm m

T+ = − (50)

The initial values of the desired and actual trajectories are often the same, and hence the

initial error is usually zero, i.e., Xe

em

m

m

00

0( )=

( )

( )

. . Thus the solution of the homogeneous equa-

tion (49) is identically zero; that is X tm( )≡ 0 for t > 0.

We shall now derive the controller adaptation laws which ensure that, for any desired trajec-

tory ξdt( ) , the tracking error X t( ) tends to desire value X t

m ( )=

0

0 asymptotically. Let us

define the 2×1 adaptation error vector E t X t X tm( )= ( )− ( ) . From the (49) and (47) obtain

the error differential equation as:

E(t) E t

k

m

k

m

.

=− −

( )

+− −

0 1

2

0 0

2

2

0 2 1

ω ζω

ω ζω

( )

+ − +

+ − +

X t

d f

m

m q

m

0 0

ξr

..

(51)

Let us now define the scalar positive-definite Lyapunov function:

Page 21: Modeling and Adaptive Tracking Control of a Quadrotor UAV

78 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

V E PE Qd f

mf

Qk

mk

Qk

mk

Qq

T *

*

*

= +− +

+ − −

+ − −

+

0

2

1

0 2

0

2

2

1

1

2

3

2

( )

( )

( )

(

ω

ζω

−−−

m

mq*)2

(52)

where P is given by (50) and , , , Q Q Q Q0 1 2 3

are arbitrary positive scalars and , , , f k k q* * * *

0 1

are functions of time to be specified later. Now, differentiating V along the error trajectory (51), and after simplification we obtain:

V E QEd f

mQ

f

mf rT *= − +

− +

20

− −

+ −

2

2

0

0 2

1

Q ff

mf

k

mQk

mk

* *

0

0

ω

.

**

* 0

0

*

re

Q kk

mk

.

..

− −

21 0

+ −

k

mQk

mk1

1

*2 2

1

2ζω

.

.

− −

re

Q kk

mk* 1

1

*

22 1

.

.

+−

q m

mQq

mq*2

3

.

−−

− −

r

Q qq

mq

d

* *

ξ..

.

23

(53)

As previously defined, r is the scalar weighted error; r W e W eTp Tv

= + . In deriving (53), it is assumed that the coefficients m and d in the model (19) are unknown and “slowly time varying” in comparison with the controller gains. Now, for the adaptation error E to vanish as-ymptotically, V must be negative definite in E. For this purpose we set:

Page 22: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 79

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

Qf

mf r*

0

=

.

Qk

mk re0

0

*

1

.

.

=

Qk

mk re1

1

*

2

..

=

Qq

mq r*

d3

=

. ..

ξ (54)

In this case, V reduces to:

V E QE Q f r

Q k re Q k re Q q r

T *

* * *

d

= − −

− − −

2

2 2 2

0

1 0 2 1 3ξ.. (55)

Now, let us choose f * , k *0

, k *1

as follows:

f Q r* *=0

k Q re* *

0 1=

k Q re* *

1 2=

q Q r* *

d=

3ξ..

(56)

where Q Q Q Q* * * *

0 1 2 3, , , are zero or positive scalars. Hence, V simplifies to:

V E QE Q r

Q r e Q r e Q r

T *

* * *

d

= − −

− − −

2

2 2 2

0

2

1

2 2

2

2 2

3

2

2

ξ.. (58)

This is a negative definite function of E. Consequently, the error differential equation (51) is asymptotically stable. Implying that E orX t X t ast

m→ ( )→ ( )= →0 0 ∞ . Thus, from

(53) and (56), the controller adaptation laws are found to be:

f mQ rm

Qr*= +

0

0

Page 23: Modeling and Adaptive Tracking Control of a Quadrotor UAV

80 International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

k mQd

dtre

m

Qre

0

*.

( ) ( )= +1

1

k mQd

dtre

m

Qre

1

*.

( ) ( )= +2

2

q mQd

dtr

m

Qr*

d d= +

3

3

( ).. ..

ξ ξ (59)

In order to make the adaptation laws independent of h, we choose:

Qm

Qm

Qm

Qm

* * * *

0 1

1

2

2

3= = = =ρ β β λ

Qm

Qm

Qm

Qm

0 1

1

2

2

3= = = =δ α α γ

(60)

where ρ β β λ, , ,1 2

are zero or any positive scalars and δ α α γ, , ,1 2

are any positive sca-

lars. Note that since m is positive and slowly time-varying, we have Q Qi

*

i≥ ≥0 0, and

both Qi

* , Qi are also slowly time-varying. Thus, from (59) and (60), we obtain the controller

adaptation laws:

f r r= +ρ δ

kd

dtre re

0

.

( ) ( )= +β α1 1

kd

dtre re

1

.

( ) ( )= +β α2 2

q d

dtr rd d

= +

λ γξ ξ( )

.. ..

(61)

Integrating (61) yields the controller terms as:

f t f r t dt r tt

( )= ( )+ ( ) + ( )∫0

0

δ ρ

K t K

r t e t dt r t e tt

0 0

1

0

1

0( )= ( )+ + ( ) ( )∫α β( ) ( )

Page 24: Modeling and Adaptive Tracking Control of a Quadrotor UAV

International Journal of Intelligent Mechatronics and Robotics, 2(4), 58-81, October-December 2012 81

Copyright © 2012, IGI Global. Copying or distributing in print or electronic forms without written permission of IGI Global is prohibited.

K t K

r t t dt r t te et

1 1

2

0

2

0( )= ( )+ + ( ) ( )∫α β( ) ( )

q t q r t dt r tt

d d( )= ( )+ + ( )∫0

0

γ ξ λ ξ( ).. ..

(62)

The controller adaptation law (62) ensures asymptotic stability of the ith local subsystem. To show global asymptotic stability, we combine the second-order translational subsystem dynamics (19) for i = 1,2,3 to obtain the 6th order composite system and sum up the local Lyapunov functions V E

i( ) of the individual subsystems to form the global Lyapunov function V E( ) , where E is the

6×1 composite error vector. Since V E( ) >0 and V E( ) <0 , we conclude that the composite system is globally asymptotically stable using the local adaptive controllers.

Proving stability and obtaining adaption low for rotational dynamic subsystem is completely similar to the translational part. It is enough to set q equal to zero.