Academia.eduAcademia.edu

LQR and SMC Stabilization of a New Unmanned Aerial Vehicle

2009

We present our ongoing work on the development of a new quadrotor aerial vehicle which has a tilt-wing mechanism. The vehicle is capable of take-off/landing in vertical flight mode (VTOL) and flying over long distances in horizontal flight mode. Full dynamic model of the vehicle is derived using Newton-Euler formulation. Linear and nonlinear controllers for the stabilization of attitude of

World Academy of Science, Engineering and Technology 58 2009 LQR and SMC Stabilization of a New Unmanned Aerial Vehicle Kaan T. Oner, Ertugrul Cetinsoy, Efe Sirimoglu, Cevdet Hancer, Taylan Ayken, and Mustafa Unel Abstract— We present our ongoing work on the development of a new quadrotor aerial vehicle which has a tilt-wing mechanism. The vehicle is capable of take-off/landing in vertical flight mode (VTOL) and flying over long distances in horizontal flight mode. Full dynamic model of the vehicle is derived using Newton-Euler formulation. Linear and nonlinear controllers for the stabilization of attitude of the vehicle and control of its altitude have been designed and implemented via simulations. In particular, an LQR controller has been shown to be quite effective in the vertical flight mode for all possible yaw angles. A sliding mode controller (SMC) with recursive nature has also been proposed to stabilize the vehicle’s attitude and altitude. Simulation results show that proposed controllers provide satisfactory performance in achieving desired maneuvers. Keywords–UAV, VTOL, dynamic model, stabilization, LQR, SMC I. INTRODUCTION Unmanned aerial vehicles (UAV) designed for various missions such as surveillance and exploration of disasters (fire, earthquake, flood, etc...) have been the subject of a growing research interest in the last decade. Airplanes with long flight ranges and helicopters with hovering capabilities constitute the major mobile platforms used in research of aerial vehicles. Besides these well known platforms, many researchers recently concentrate on the tilt rotor aerial vehicles combining the advantages of horizontal and vertical flight. Because these new vehicles have no conventional design basis, many research groups build their own tilt-rotor vehicles according to their desired technical properties and objectives. Some examples to these tilt-rotor vehicles are large scaled commercial aircrafts like Boeing’s V22 Osprey [1], Bell’s Eagle Eye [2] and smaller scale vehicles like Arizona State University’s HARVee [3] and Compiègne University’s BIROTAN [4] which consist of two rotors. Examples to other tilt-rotor vehicles with quad-rotor configurations are Boeing’s V44 [5] (an ongoing project for the quad-rotor version of V22) and Chiba University’s QTW UAV [6] which is a completed project. Different controllers designed for the VTOL vehicles with quad-rotor configurations exist in the literature. Cranfield University’s LQR controller [7], Swiss Federal Institute of Technology’s PID and LQ controllers [8], Lakehead University’s PD2 [9] controller and Lund University’s PID controller [13] are examples to the controller developed on quad-rotors linearized dynamic models. Among some other control methods of quad-rotor vehicles are CNRS K. T. Oner, E. Cetinsoy, E. Sirimoglu, C. Hancer, T. Ayken and M. Unel are with Sabanci University, Orhanli-Tuzla, 34956, Istanbul TURKEY (corresponding author: [email protected]) 554 and Grenoble University’s Global Stabilization [10], Swiss Federal Institute of Technology’s Full Control of a Quadrotor [11] and Versailles Engineering Laboratory’s Backstepping Control [12] that take into account the nonlinear dynamics of the vehicles. In this paper we are presenting our current work on the modeling and control of a new tilt-wing aerial vehicle (SUAVI: Sabanci University Unmanned Aerial VehIcle) that is capable of flying in horizontal and vertical modes. The vehicle consists of four rotating wings and four rotors, which are mounted on leading edges of each wing. The organization of this paper is as follows: In section II, full dynamic model of the vehicle is derived using NewtonEuler formulation. In section III, state-space controllers, a Linear Quadratic Regulator (LQR) and a Sliding Mode Controller (SMC) are developed. Section IV gives the simulation results of the proposed control schemes. Section V concludes the paper with a discussion of future works. II. DYNAMIC MODEL OF THE VEHICLE The vehicle is equipped with four wings that are mounted on the front and at the back of the vehicle and can be rotated from vertical to horizontal positions. Fig. 1 below shows the aerial vehicle in various flight modes including the vertical (first one) and the horizontal (last one) flight modes. Fig. 1. SUAVİ with integrated actuators in different flight configurations With this wing configuration, the vehicle’s airframe transforms into a quad-rotor like structure if the wings are at the vertical position and into an airplane like structure if the wings are at the horizontal position. To keep the control complexity on a minimum level, the rotations of the wings World Academy of Science, Engineering and Technology 58 2009 are used as attitude control inputs in addition to motor thrust inputs in horizontal flight mode. Therefore the need for additional control surfaces that are put on trailing edges of the wings on a regular airplane are eliminated. Two wings on the front can be rotated independently to act like the ailerons while two wings at the back are rotated together to act like the elevator. This way the control surfaces of a regular plane in horizontal flight mode are mimicked with minimum number of actuators. and  1 0 E(φ , θ ) = 0 cφ 0 −sφ  −sθ sφ c θ  cφ cθ The abbreviations sβ and cβ are used instead of sin(β ) and cos(β ) respectively. The dynamic equations obtained for 6 DOF rigid body transformation of the aerial vehicle in inertial reference frame W are given as: Ft = mV̇b + Ωb × (m ·Vb ) (3) Mt = Ib Ω̇b + Ωb × (Ib · Ωb ) (4) where m is the mass and the Ib is the inertia matrix expressed in the body frame B. The total force Ft acting on the vehicle’s center of gravity is the sum of the forces Fth created by the rotors, the gravity Fg , the lift and drag forces generated by the wings Fw and the aerodynamic forces Fd which is considered as a disturbance, namely Ft = Fg + Fw + Fth + Fd where Fig. 2. Aerial Vehicle in a Tilted Configuration (0 < θi < π2 )  −sθ Fg = sφ cθ  · mg cφ cθ  and The two reference frames given in Fig. 2 are body fixed reference frame B : (Ob , xb , yb , zb ) and earth fixed inertial reference frame W : (Ow , xw , yw , zw ). Using this model, the equations describing the position and attitude of the vehicle are obtained by relating the 6 DOF kinematic equations with the dynamic equations. The position and linear velocity of the vehicle’s center of mass in world frame are described as,     X Ẋ Pw = Y  ,Vw = P˙w = Ẏ  Z Ż The attitude and angular velocity of the vehicle in world frame are given as,     φ̇ φ αw =  θ  , Ωw = α˙w =  θ̇  ψ ψ̇ where, φ , θ , ψ are named roll, pitch and yaw angles respectively. The equations for the transformation of the angular and linear velocities between world and body frames are given in equations (1) and (2):   vx (1) Vb = vy  = R(φ , θ , ψ ) ·Vw vz   (cD (θ1 , vx , vz ) + cD (θ2 , vx , vz ) + 2cD (θ3 , vx , vz ))  0 Fw =  (cL (θ1 , vx , vz ) + cL (θ2 , vx , vz ) + 2cL (θ3 , vx , vz )) and    kω1 2 cθ1 + cθ2 + cθ3 + cθ3  2  kω2 2  0 Fth =  kω3  −sθ1 − sθ2 − sθ3 − sθ3 kω4 2  note that the propeller thrusts F(1,2,3,4) are modeled as: Fi = kωi2 Because the wings at the back are rotated together their angle of attacks are the same for all time (θ3 = θ4 ). Note that the lift function cL (θi , vx , vz ) and the drag function cD (θi , vx , vz ) are not just functions of linear velocities (vx and vz ) like on a fixed-wing type of an airplane, but also functions of angle of attack θi for each wing. The reader is referred to the Appendix for the explicit forms of these equations. The total torque Mt acting on the vehicle’s center of gravity is the sum of the torques Mth created by the rotors Mw created by the drag/lift forces of the wings, Mgyro created by the gyroscopic effects of the propellers and the aerodynamic torques Md which is considered as a disturbance, namely where R(φ , θ , ψ ) = Rz (ψ )Ry (θ )Rx (φ )   p Ωb =  q  = E(φ , θ ) · Ωw r (5) Mt = Mgyro + Mw + Mth + Md where  cθ i Mgyro = ∑ J[ηi Ωb ×  0 ωi ] i=1 −sθi 4 (2) 555  (6) World Academy of Science, Engineering and Technology 58 2009 η(1,2,3,4) = 1, −1, −1, 1 Linearized state-space equation is given as: χ̇ = Aχ + Bu and   (cL (θ1 , vx , vz ) − cL (θ2 , vx , vz )) Mw = (cL (θ1 , vx , vz ) + cL (θ2 , vx , vz ) − 2cL (θ3 , vx , vz )) (−cD (θ1 , vx , vz ) + cD (θ2 , vx , vz )) (11) Full yaw control is obtained by interpolating LQR controllers designed for certain number of nominal operating points. and  ls sθ1 Mth =  ll sθ1 ls cθ2  −cθ1 + 0 sθ 1 −ls sθ2 ll sθ2 −ls cθ2 −cθ2 0 sθ2    kω 2 −ls sθ3  1 2  k ω2  −ll sθ3   kω3 2  −ls cθ3 k ω4 2    λ1 kω1 2 −cθ3  λ2 kω2 2   0  λ3 kω3 2  sθ3 λ4 k ω 4 2 ls sθ3 −ll sθ3 ls cθ3 −cθ3 0 sθ3 B. Attitude and Altitude Stabilization via Sliding Mode Control (SMC) The equations of motion for VTOL mode can be recast as: ξ̇ = F(ξ ) + B(ξ )u (12) Note that the sum of torques created by the rotors result in a roll moment along the x axis in horizontal flight mode (θ1,2,3 = 0) and in a yaw moment along the z axis in vertical flight mode (θ1,2,3 = π /2) III. STATE-SPACE CONTROLLER DESIGN To synthesize various controllers, equations derived in Section II are put into state-space form. The state vector χ consists of the position (Pw ), the attitude (αw ), the linear velocity (Vb ) and the angular velocity (Ωb ).   Pw  Vb   (7) χ = Ωb  αw In light of equations (1)-(6) we have     R−1 (αw ) ·Vb Ṗw  V̇b   1/m · [Ft − Ωb × (m ·Vb )]     χ̇ =  Ω̇b  = I −1 · [Mt − Ωb × (Ib · Ωb )] b α˙w E −1 (αw ) · Ωb σ = Gξ (8) (9) Note that the aerial vehicle is an under-actuated system with 12 dimensional state vector and a 4 dimensional input vector. σ̇ = Gξ̇ = GF + GBu u = ueq − Ksgn(σ ) (15) where ueq is the equivalent control, which is the continuous part of the control u, sgn(.) is the well-known signum function and K > 0. The equivalent control is obtained by setting σ̇ = 0, namely (16) However, computation of ueq can be difficult since the exact knowledge of F(ξ ) and B(ξ ) are required. Below we will eliminate computation of ueq using continuity of ueq and obtain a recursive control law. Note that in light of (14) and (16) we have: σ̇ = (GB)(u + (GB)−1 GF) = (GB)(u − ueq ) (17) Choosing a Lyapunov function V = (1/2)σ T σ ≥ 0, and differentiating with respect to time one gets: V̇ = σ T σ̇ , 556 (14) Sliding mode control is given as: A. Linearized System and LQR Controller Synthesis For LQR controller design, the dynamic equations of the vehicle are linearized around nominal operating points in hovering condition. In the hovering mode, the controlled variables of the plant are chosen to be the position (X,Y, Z) and yaw angle (ψ ). In order to simplify the controller design, the actuating forces and torques are decomposed into four virtual control inputs (ui ) as follows:     −k (ω12 + ω22 + ω32 + ω42 ) u1 u2   k ls · [(ω 2 + ω 2 ) − (ω 2 + ω 2 )]  1 3 2 4    (10) u= u3  =  k ll · [(ω 2 + ω 2 ) − (ω 2 + ω 2 )]  1 2 3 4 u4 k (λ1 ω12 + λ2 ω22 + λ3 ω32 + λ4 ω42 ) (13) where G is a 4 × 8 matrix such that (GB) is invertible. By differentiating σ one gets: σ̇ = GF + GBueq = 0 ⇒ ueq = −(GB)−1 GF which is a nonlinear plant of the form χ̇ = f (χ , u) where ξ = [Z, Ż, φ , φ̇ , θ , θ̇ , ψ , ψ̇ ]T and u = [u1 , u2 , u3 , u4 ]T . Note that this equation is affine in input. Using this observation, it is possible to develop a sliding mode controller for the stabilization of the roll-pitch-yaw angles and vehicle’s altitude. Let’s define the sliding variable as: (18) where D is a positive-definite matrix. V̇ can be made negative-definite by selecting σ̇ = −Dσ ⇒ V̇ = −σ T Dσ ≤ 0 (19) In light of (17) and (19), the following equations can be obtained: σ̇ = (GB)(u − ueq ) ⇒ u − ueq = (GB)−1 σ̇ (20) and (GB)(u − ueq ) = −Dσ ⇒ u − ueq = −(GB)−1 Dσ (21) World Academy of Science, Engineering and Technology 58 2009 (23) ∆→0 (24) Assuming that the sampling time is small (i.e. T ≈ ∆), ueq (kT ) = ueq ((k − 1)T ) y coordinate [m] lim ueq (t − ∆) = ueq (t) 10 x coordinate reference 0 −10 0 2 4 6 8 10 12 14 time [s] Since the equivalent control is continuous, we have 10 y coordinate reference 0 −10 0 2 4 6 8 10 12 14 time [s] (25) Substituting (25) into (22) and (23), and approximating σ̇ using Euler’s backward difference one derives the following recursion for the control law: (I + T D)σ [k] − σ [k − 1] u[k] = u[k − 1] − (GB)−1 [ ] (26) T where I is the identity matrix and [k] denotes (kT ). This control is implemented to achieve roll-pitch-yaw stabilization and altitude control for hovering operation. Once the controller takes the vehicle into a desired altitude, tilt wing transition is then carried out which is given in the following section. z coordinate [m] u(kT ) − ueq (kT ) = −(GB)−1 Dσ (kT ) (22) 20 z coordinate reference 0 −20 0 2 4 6 8 10 12 14 time [s] Fig. 3. roll angle [rad] u((k − 1)T ) − ueq ((k − 1)T ) = (GB)−1 σ̇ ((k − 1)T ) x coordinate [m] Computing above equations at two different sampling instants, i.e. t = (k − 1)T and t = kT , namely Position control of the vehicle using LQR 0.5 φ coordinate reference 0 −0.5 IV. SIMULATION RESULTS 0 2 4 6 8 10 12 14 557 θ coordinate reference 0 −0.5 0 2 4 6 8 10 12 14 yaw angle [rad] time [s] 2 ψ coordinate reference 0 −2 0 2 4 6 8 10 12 14 time [s] F1 [N] Fig. 4. Attitude control of the vehicle using LQR 12 10 8 0 2 4 6 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 F2 [N] time [s] 15 10 5 0 2 4 6 F3 [N] time [s] 15 10 5 0 2 4 6 time [s] F4 [N] The performance of the LQR controller is evaluated on the nonlinear dynamic model of the vehicle given by (8) in MATLAB/Simulink. Q and R matrices used in LQR design are selected as Q = 10−1 · I12x12 and R = diag(10−1 , 10, 10, 10) Starting with the initial configuration Pw = (0, 0, 0)T and αw = (0, 0, 0)T of the vehicle, the simulation results given in Fig. 3 and Fig. 4 show the variation of the position and attitude variables for the reference inputs Pre f = (5, −5, −10)T and ψr = π /2 under random disturbance. Note that position and angle references are tracked with negligible steady state errors. The lift forces generated by each rotor are shown in Fig. 5. It is important to note that the control effort is small and the magnitude of the forces that need to be generated don’t exceed the physical limits (≃ 16 N) of the rotors and remain in the ±%20 margin of nominal thrust. A 3D visualization environment in MATLAB using VR tool has been developed to visualize maneuvers of the aerial vehicle in 3D space. Result of applying LQR control is depicted in Fig. 6. The sliding mode controller performed very good in tracking the reference inputs. Fig. 7 and Fig. 8 show the response of sliding mode controller in tracking the desired references. Note that, even though the reference angles are relatively large (i.e. 0.5 rad), the controller reaches the desired roll and pitch angles within almost 1 second. The sluggish response in yaw movement is due to the nature of the actuation. Moreover, even though the altitude response is almost as fast as LQR controller, the sliding mode control of altitude has almost zero overshoot in comparison to LQR. Fig. 9 shows the control effort of sliding mode control. pitch angle [rad] time [s] 0.5 15 10 5 0 2 4 6 time [s] Fig. 5. Forces generated by the motors World Academy of Science, Engineering and Technology 58 2009 0.5 z coordinate [m] 0 −0.5 −1 z coordinate reference −1.5 −2 F1 [N] Fig. 8. F2 [N] F3 [N] F4 [N] 10 12 14 16 0 2 4 6 8 time [s] 10 12 14 16 0 2 4 6 8 time [s] 10 12 14 16 0 2 4 6 8 time [s] 10 12 14 16 0 2 4 6 8 time [s] 10 12 14 16 10 20 10 20 10 0 φ coordinate reference 0 0 2 4 6 8 time [s] 10 12 14 Fig. 9. 16 Control Effort in Sliding Mode Controller 0.5 θ coordinate reference 0 0 2 4 6 8 time [s] 10 12 14 VII. APPENDIX The drag and lift forces created by the wings are modeled using the data obtained from ANSY Sr simulations. 16 2 ψ coordinate reference 0 −2 0 2 4 6 8 time [s] 10 12 14 16 0 Lift [N] yaw angle [rad] −0.5 Fig. 7. Attitude Control Using Sliding Mode Controller 0 Drag [N] roll angle [rad] 8 time [s] Altitude Control Using Sliding Mode Controller 0.5 −0.5 6 20 0 pitch angle [rad] 4 10 0 Visualization of Position and Heading Control Results of LQR 2 20 0 Fig. 6. 0 −10 −20 100 Vx [km/h] V. CONCLUSION AND FUTURE WORKS Authors would like to acknowledge the support provided by TUBITAK (The Scientific and Technological Research Council of Turkey) under grant 107M179. 558 Vx [km/h] Drag [N] −20 −30 100 100 50 Vz [km/h] Fig. 10. 0 0 50 theta [degrees] 0 0 100 50 theta [degrees] −2 −4 −6 100 50 Vz [km/h] The Lift and Drag Forces Created by the Wings (2.4 + 10θ 2 ) (−5(π /4 − θ )2 + 3.0842) |Vx | Vx − |Vz | Vz 256 256 θ −0.3 )2 cL = − VI. ACKNOWLEDGMENTS 100 50 theta [degrees] 0 −10 cD = − 0 0 50 50 theta [degrees] 0 Lift [N] In this paper we have reported our ongoing work on modeling and control of a new tilt-wing aerial vehicle (SUAVI). The full dynamic model of the vehicle is derived using Newton-Euler formulation. An LQR based position control algorithm is developed and applied to the nonlinear dynamic model of the vehicle in vertical flight mode. A good position tracking performance is obtained using this controller. Furthermore, a sliding mode controller with recursive implementation is tested to provide the attitude and altitude stability of the vehicle. Results show that the proposed method performs good tracking of the desired attitude and altitude. Future work will include improvements on the controller synthesis. Experiments will be performed on the actual vehicle. 0 0 −40 −60 100 100 50 −20 9.81e−( 0.6 256 |Vx | Vx − (1 + 10(π /2 − θ )) |Vz | Vz 256 World Academy of Science, Engineering and Technology 58 2009 R EFERENCES [1] Boeing, V-22 Osprey, September 13, 2008. http://www.boeing.com/rotorcraft/military/v22/index.htm [2] The Bell Eagle Eye UAS, September 13, 2008. http://www.bellhelicopter.com/en/aircraft/military/bellEagleEye.cfm [3] J.J. Dickeson, D. Miles, O. Cifdaloz, Wells, V.L. Rodriguez, A.A., ”Robust LPV H Gain-Scheduled Hover-to-Cruise Conversion for a Tilt-Wing Rotorcraft in the Presence of CG Variations,” American Control Conference. ACC ’07 , vol., no., pp.5266-5271, 9-13 July 2007 [4] F. Kendoul, I. Fantoni, R. Lozano, ”Modeling and control of a small autonomous aircraft having two tilting rotors,” Proceedings of the 44th IEEE Conference on Decision and Control, and the European Control Conference, December 12-15, Seville, Spain, 2005 [5] Snyder, D., ”The Quad Tiltrotor: Its Beginning and Evolution,” Proceedings of the 56th Annual Forum, American Helicopter Society, Virginia Beach, Virginia, May 2000. [6] K. Nonami, ”Prospect and Recent Research & Development for Civil Use Autonomous Unmanned Aircraft as UAV and MAV,” Journal of System Design and Dynamics, Vol.1, No.2, 2007 [7] I. D. Cowling, O. A. Yakimenko, J. F. Whidborne and A. K. Cooke, ”A Prototype of an Autonomous Controller for a Quadrotor UAV,” European Control Conference 2007 Kos, 2-5 July, Kos, Greek, 2007. [8] S. Bouabdallah, A. Noth and R. Siegwart, ”PID vs LQ Control Techniques Applied to an Indoor Micro Quadrotor,” Proc. of 2004 IEEE/RSJ Int. Conference on Intelligent Robots and Systems, September 28 - October 2, Sendai, Japan, 2004. [9] A. Tayebi and S. McGilvray, ”Attitude Stabilization of a FourRotor Aerial Robot” 43rd IEEE Conference on Decision and Control, December 14-17 Atlantis, Paradise Island, Bahamas, 2004. [10] A. Hably and N. Marchand, ”Global Stabilization of a Four Rotor Helicopter with Bounded Inputs”, Proc. of the 2007 IEEE/RSJ Int. Conference on Intelligent Robots and Systems, Oct 29 - Nov 2, San Diego, CA, USA, 2007 [11] S. Bouabdallah and R. Siegwart, ”Full Control of a Quadrotor ”, Proc. of the 2007 IEEE/RSJ Int. Conference on Intelligent Robots and Systems, Oct 29 - Nov 2, San Diego, CA, USA, 2007. [12] Tarek Madani and Abdelaziz Benallegue, ”Backstepping Control for a Quadrotor Helicopter ”, Proc. of the 2006 IEEE/RSJ Int. Conference on Intelligent Robots and Systems, October 9 - 15, Beijing, China, 2006. [13] Tommaso Bresciani, ”Modeling Identification and Control of a Quadrotor Helicopter ”, Master Thesis, Department of Automatic Control, Lund University, October, 2008. 559