0% found this document useful (0 votes)
227 views6 pages

Attitude Control of A Quadrotor

This study includes altitude stabilization, hovering control any desired position and attitude control of quadrotor. Classically PD controller derived and applied to this system. Linear and nonlinear control techniques applied to attitude control of this vehicle.

Uploaded by

Ghada Beydoun
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
227 views6 pages

Attitude Control of A Quadrotor

This study includes altitude stabilization, hovering control any desired position and attitude control of quadrotor. Classically PD controller derived and applied to this system. Linear and nonlinear control techniques applied to attitude control of this vehicle.

Uploaded by

Ghada Beydoun
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Attitude Control of a Quadrotor

. Can Dikmen Air Force Academy ASTIN Istanbul/TURKEY [email protected] Aydemir Arsoy Air Force Academy Dept. of Electronics Eng. Istanbul/TURKEY [email protected] II. Hakan Temelta Istanbul Technical University Electrical-Electronics Faculty, Istanbul/TURKEY [email protected] QUADROTORS DYNAMICS

Abstract This study includes altitude stabilization, hovering control any desired position and attitude control of quadrotor. Classically PD controller derived and applied to this system. Inverse dynamic control, feedback linearization control and sliding mode control methods have used to derive as nonlinear controllers. Linear and nonlinear control techniques applied to attitude control of this vehicle. Derived control methods have been performed using computer simulations and compared the results according to this study objective. Keywords-quadrotor; robust control; back stepping; sliding mode; inverse dynamic control.

A. Modelling: By design, the quadrotor is only controlled by independently varying the speed of the four rotors [1], [2], [3], [4], [5], [6], [7].

4 U1 l

I.

INTRODUCTION

Autonomous Unmanned Aerial Vehicles (UAV) are getting very popular on commercial, military and 2 3 m academic platforms. Military applications currently represent the biggest part of the unmanned flying 3 2 vehicle market, and this industrial sector is growing V V strongly. Because of the structural simplicity but the complexity on controls, quadrotor are getting most Figure 1. Quadrotor. of the interest. Different control techniques tested By changing the rotor speeds torques and moments can be even on simulation and on real systems before [1], created on the system. Let Vi is the speed and i is the trust of [2], [3], [4] and [5]. This study has been focused on ith rotor. So that total trust applied to the system is (1) U1=1+2+3+4 understanding the basics of the Quadrotor, mathematical model for simulation and control of the speed of rotors number 2 and 4 roll moment like this system. Consequently four different control can Varying be achieved techniques studied in this paper and compared (2) U2=l(4 2) 4 under the aim of the study. So varying the speed of rotors 1 and 3 will result pitch This study includes altitude stabilization, hovering control any desired position and attitude control of moment (3) U3=l(3 1) 4 quadrotor. Classically PD controller derived and applied to this system. Inverse dynamic control, And varying rotors speed dually will result a yaw moment feedback linearization control and sliding mode (4) U4=(1 2 + 3 4) control methods have used to derive as nonlinear controllers. Linear and nonlinear control techniques We can write trust and moment in square of rotor speed applied to attitude control of this vehicle. Derived because it is shown to be a positive function of trust [5]. control methods have been performed using Ti = bi2 (b,d: constant) computer simulations and compared the results 2 Di = d i according to this study objective.

978-1-4244-3628-6/09/$25.00 2009 IEEE

722

So moments and disturbance on the system becomes


2 2 U1 = l ( 4 - 2 ) 2 2 U 2 = l (3 - 1 ) 2 2 2 U 3 = (1 - 2 2 + 3 - 4 )

A. PD Control In PD control the system can be forced to the desired attitude. This is achieved by calculating error and adding it to the input after multiplying with a constant. As to schematize;

(5)

r = 1 2 + 3 4 U1,2,3 will be our inputs. The dynamic model is derived using Euler-Lagrange formalism [5], [6], [7]. under the following assumptions: The structure is supposed to be rigid. The structure is supposed symmetrical. The center of mass and the body fixed frame origin are assumed to coincide. The propellers are supposed rigid. The thrust and drag are proportional to the square of the propeller speed. Using the Lagrangian and the derived formula for the equations of motion:
L= T V i =
Figure 1. PD control sheme

 ) U1 = C p (d ) + Cd ( d  ) U 2 = C p ( d ) + Cd ( d  d ) U 3 = C p ( d ) + Cd (
Basic equations used at [7], [8], [9], [10].

(10)

d L L i qi dt q

B. Inverse Control In this method its tried to drive the system by its inverse dynamics. The underlying idea is to precalculating systems reaction and inversing it [11].

i are the generalized coordinates and ithe where q generalized forces. Then equation of motion can be written as

 =   (I - I ) + J  I xx yy zz R r + U1  =   (I - I ) + J  I yy zz xx R r + U 2  ( I - I ) + U  = I
zz xx yy 3

(7) (8) (9)


Figure 2. Inverse Control sheme.

Symbol r m L b,d
TABLE I.

Definition roll angle pitch angle yaw angle trust rotor speed disturbance mass arm length trust, drug factors
LIST OF VARIABLES

If constants are renamed and equations rewritten as matrix form


 0  = a3 + a4 r a5  Where a1 a2 a3 a4 a5 b1 b2 b3
TABLE II.

a1 + a2 r 0 a5

 b a1 1  a3 + 0 0  0

0 b2 0

0 U 2 0 U 3 U 4 b3

III.

CONTROL

In this section the control algorithms applied to the angular subsystem of quadrotor will be presented. These are PD control, inverse control, backstepping control and sliding mode control.

(Iy-Iz)/Ix -Jr/Ix (Iz-Ix)/Iy Jr/Iy (Ix-Iy)/Iz 1/Ix 1/Iy 1/Iz


LIST OF CONSTANTS

Assuming that r is constant on equilibrium near hover conditions; Inverse of the dynamic system is then

978-1-4244-3628-6/09/$25.00 2009 IEEE

723

U 2 b1 U 3 = 0 U 4 0 b1 0 0

0 b2 0 0 b2 0

0 0 b3

   0 a + a 4 r 3 a5 a1 + a2 r 0 a5  a1  a3  0

system into first-order system. In that way, simple control algorithm can be applied [14], which is very straightforward and robust. Our system can be defined as

0 0 b3

1 = x2 x 2 = f ( x) + g ( x)U x Define coordinate with respect to the stable manifold s = x2 + Cx1 =x 2 + Cx 1 = f ( x) + g ( x)U + Cx2 s Then a Lyapunov candidate function is chosen as V= 1 2 s 2  = ss  = s[ f ( x) + g ( x) + Cx2 ] V stability is insured if

C. Backstepping Control In this control algorithm, as presented [12] and [13] control law forces the system to follow a desired trajectory. For the first step error is calculated z1 = x1d x1 1 V ( z1 ) = z12 2 (11) (12)

and its time derivative is,

Time derivative of (12)


 ( z ) = z (x 1d x2 ) V 1 1

(13) (14) (15) (16) (17)


2 1 1

Then a virtual input created


1d + 1 z1 with 1 >0 x2 = x  ( z ) = z 2 V 1 1 1 1d z1 z2 = x2 x V ( z1 , z2 ) = 1 2 2 ( z1 + z2 ) 2
while

< ( x) for s > 0 U = ( x) for s = 0 > ( x) for s < 0 f ( x) + Cx2 g ( x)

( x) =

This is insured by using the control law U = ( x) Ksign( s ) , K>0 In application of our system
 ) = (d ) S1 + ( d

(22)

 ( z z ) = z (a x x + a x + b U ) z z z V r 1 2 2 1 4 6 2 4 1 2 1 2 z 2 (  x1d 1 ( z2 + 1 z1 ))  (z z ) < 0  x1,2,3d = 0 Satisfying V 1 2

(18)

(23) (24)

So U2 can be extracted as
U1 = 1 ( z1 a1 x4 x6 a2 x4 r 1 ( z 2 + 1 z1 ) 2 z2 b1

( x) =

  +a   a1 2 r + S2 b1

(19)

U1 =

  +a   a1 2 r + S2 K1 s ign( ) b1

(25)

[13]

U2 and U3 can be calculated with the same steps [12], (20) (21)

U2 and U3 can be calculated with the same steps


U2 = U3 =
  +a   a3 4 r + S 4 K 2 s ign( ) b2 + S  a5 6 K3 s ign( ) b3

1 U 2 = ( z3 a3 x2 x6 a4 x2 r 3 ( z4 + 3 z3 ) 4 z4 b2 1 U 3 = ( z5 a5 x2 x4 5 ( z6 + 5 z5 ) 6 z6 b3

(26)

(27)

D. Sliding Mode Control For sliding mode controller, Lyapunov stability method is applied to keep the nonlinear system under control. The sliding mode approach is method which transformed a higher-order

978-1-4244-3628-6/09/$25.00 2009 IEEE

724

IV.

SIMULATION RESULTS

A. PD Control By using Simulink Signal Constraint block Cp and Cd constants optimized with thresholds; Without Noise Time(sec) phi theta psi 0.1 0.1 0.1
TABLE III.

B. Inverse Dynamics By using Simulink Signal Constraint block Cinv1,2,3,4,5,6 constants optimized with thresholds; Without Noise Time(sec) Value(deg) 5.73 5.73 5.73
TABLE IV.

With Noise Time(sec) 0.2 0.2 0.2 Value(deg) 5.73 5.73 5.73

With Noise Time(sec) 0.2 0.2 0.2 Value(deg) 5.73 5.73 5.73

phi theta psi

0.1 0.1 0.1

Value(deg) 5.73 5.73 5.73

CONSTRAINTS

CONSTRAINTS

Without noise Cinv1 = 11.3537 , Cinv2 = 2.0359 Cinv 3 = 11.2894 , Cinv4 = 2.0969 Cinv 5 = 7.0429 , Cinv6 = 0.2953
pi/10

Without noise
C p = 15.4765 , Cd = 0.5578 C p = 7.0685 , Cd = 0.4078 C p = 5.0379 , C d = 0.2438
pi/10

Angle (rad)

Angle (rad)
0 0 0 0 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1

Time (sec) Time (sec)

Figure 5. INV control results with initial conditions of /10; without noise.

Figure 3. PD control results with initial conditions of /10; without noise.

with gaussian noise of mean=0, variance=0.01 rad. With gaussian noise of mean=0, variance=0.01 rad. C p = 15.3529 , Cd = 2.1557 C p = 7.0314 , Cd = 0.7961 C p = 5.0170 , C d = 0.5169
pi/10

Cinv1 = 6.0012 , Cinv2 = 1.2902 Cinv 3 = 5.8267 , Cinv4 = 2.3858 Cinv 5 = 6.2079 , Cinv6 = 0.3028

pi/10

Angle (rad)

Angle (rad)
0 0 0 1 2 3 4 5

Time (sec)
0 1 2

Time (sec)

Figure 6. INV control results with initial conditions of /10; with noise.

Figure 4. PD control results with initial conditions of /10; with noise.

978-1-4244-3628-6/09/$25.00 2009 IEEE

725

C. Backstepping Control Optimization constraints are Without Noise Time(sec) phi theta psi 0.15 0.15 0.15
TABLE V.

D. Sliding mode Control Optimization constraints are With Noise Time(sec) 0.2 0.2 0.2 Value(deg) 5.73 5.73 5.73 phi theta psi Without Noise Time(sec) 0.1 0.1 0.1 Value(deg) 5.73 5.73 5.73
TABLE VI.

With Noise Time(sec) 0.2 0.2 0.2 Value(deg) 5.73 5.73 5.73

Value(deg) 5.73 5.73 5.73

CONSTRAINTS

CONSTRAINTS

Without noise optimized constants are as shown below.

Without noise optimized constants are as shown below. S1 = 13.0695 , S2 = 0.2061 S3 = 15.0095 , S4 = 0.2066 S5 = 12.7414 , S6 = 2.0252 K1 = 1.2279 K 2 = 0.7130 K 3 = 2.8838

1 = 17.2615 , 2 = 15.1757 3 = 15.4668 , 4 = 15.4668 5 = 15.6415 , 6 = 15.6415

pi/10

pi/10

Angle (rad)

Angle (rad)
0
0 0.2 0.4 0.6 0.8 1

Time (sec)

0.2

0.4

0.6

0.8

Time (sec)

Figure 7. Backstepping control results with initial conditions of /10; without noise

Figure 9. Sliding mode control results with initial conditions of /10; without noise

Constants optimized with gaussian noise of mean=0, variance=0.01 rad. are

Constants optimized with gaussian noise of mean=0, variance=0.01 rad. Are S1 = 13.7401 , S2 = 0.0301 S3 = 15.0000 , S4 = 0.1686 S5 = 13.5617 , S6 = 1.9976 K1 = 1.9621 K 2 = 0.8593 K 3 = 3.5613

1 = 17.2615 , 2 = 15.1757 3 = 15.4668 , 4 = 15.4668 5 = 15.6415 , 6 = 15.6415

pi/10

pi/10

Angle (rad)

Angle (rad)
0 1 2 3 4 5

Time (sec)

Figure 8. Backstepping control results with initial conditions of /10; with noise

Time (sec)

Figure 10. Sliding mode control results with initial conditions of /10; with noise

978-1-4244-3628-6/09/$25.00 2009 IEEE

726

V.

CONCLUSION
[1]

REFERENCES
Patrick Adigbli, Nonlinear Attitude and Position Control of a Micro Quadrotor using Sliding Mode and Backstepping Techniques, 3rd US-European Competition and Workshop on Micro Air Vehicle Systems (MAV07) & European Micro Air Vehicle Conference and Flight Competition (EMAV2007), 2007, Toulouse, France Muriel Labadille, Non-linear Control of a Quadrotor,MS thesis, School of Engineering Cranfield University,2007 Randal W. Beard, Quadrotor Dynamics and Control, Brigham Young University,2008 Advances in Unmanned Aerial Vehicles State of the Art and the Road to Autonomy, Springer, 2007 Samir Bouabdallah, Design And Control Of Quadrotors With Application To Autonomous Flying, Phd Thesis, cole Polytechnique Fdrale De Lausanne, 2007 http://www.asl.ethz.ch/education/master/aircraft/ C.Ballas, Modellng and Lnear Control Of A Quadrotor, Ms Thesis, Cranfield University, 2007 Samir Bouabdallah, Andre Noth and Roland Siegwart, PID vs LQ Control Techniques Applied to an Indoor Micro Quadrotor Tommaso Bresciani, Modelling, Identification and Control of a Quadrotor Helicopter, Master Thesis, Lund University, 2008 Gabriel M. Hoffmann, Haomiao Huang, Steven L. Waslander, Claire J. Tomlin, Quadrotor Helicopter Flight Dynamics and Control: Theory and Experiment, AIAA Guidance, Navigation and Control Conference and Exhibit 2007 Sciavicco L. and Siciliano B., Modelling and Control of Robot Manipulators., Springer, 2000. Lorenzo Pollini, Alessandra Metrangolo, Simulation and Robust Backstepping Contro of a Quadrotor Aircraft AIAA Modeling and Simulation Technologies Conference and Exhibit, 2008 Samir Bouabdallah, Backstepping and Sliding-mode Techniques Applied to an Indoor Micro Quadrotor, IEEE International Conference on Robotics and Automation Barcelona, Spain, April 2005 http://www.control.lth.se/~fusyntes/lectures/lec34_2004/SlidingMode_ martin_kjaer.pdf

In this study different control techniques applied on quadrotor dynamics. Thus we could observe the basic advantages and disadvantages of these techniques. So we are one step closer to our aim of finding optimum controller for the quadrotor project of Control Lab in TuAF Academy (Turkish Air Force). As seen in Fig. 12 sliding mode technique has better performance especially on high initial conditions. This is encouraging us for further studies on real system including full autonomous control and trajectory tracking.
3 PD Inverse Backstepping Sliding M ode

[2] [3] [4] [5]

Total Error

[6] [7] [8] [9]


0 -0.5 0

[10]
0.2 0.4 0.6 0.8 1

Time

Figure 11. Total error with initial condition of /3 rad.

[11] [12]

ACKNOWLEDGMENT Authors would like to thank to our commanders at TuAF Academy and ASTIN (Aviation And Space Technologies Institute). For their contribution and supports on encouraging us.
[13]

[14]

978-1-4244-3628-6/09/$25.00 2009 IEEE

727

You might also like