Non-linear Dynamic Inversion

Similar documents
System analysis of a diesel engine with VGT and EGR


Aircraft Pitch Attitude Control Using Backstepping

Chapter 4 The Equations of Motion

Experimental Aircraft Parameter Estimation

Introduction to Flight Dynamics

Linköping University Electronic Press

An efficient implementation of gradient and Hessian calculations of the coefficients of the characteristic polynomial of I XY

Applications Linear Control Design Techniques in Aircraft Control I

DESIGN PROJECT REPORT: Longitudinal and lateral-directional stability augmentation of Boeing 747 for cruise flight condition.

CHAPTER 1. Introduction

Simulation of Non-Linear Flight Control Using Backstepping Method

Properties and approximations of some matrix variate probability density functions

Backstepping Designs for Aircraft Control What is there to gain?

Flight Dynamics and Control

Chapter 1 Lecture 2. Introduction 2. Topics. Chapter-1

Fault-Tolerant Control of a Unmanned Aerial Vehicle with Partial Wing Loss

Lecture AC-1. Aircraft Dynamics. Copy right 2003 by Jon at h an H ow

Lecture 11 Overview of Flight Dynamics I. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Lecture #AC 3. Aircraft Lateral Dynamics. Spiral, Roll, and Dutch Roll Modes

Aircraft Maneuver Regulation: a Receding Horizon Backstepping Approach

Problem 1: Ship Path-Following Control System (35%)

Modelling the dynamics of an unmanned aircraft using a graphical simulation tool

A relaxation of the strangeness index

/ m U) β - r dr/dt=(n β / C) β+ (N r /C) r [8+8] (c) Effective angle of attack. [4+6+6]

Chapter 9. Nonlinear Design Models. Beard & McLain, Small Unmanned Aircraft, Princeton University Press, 2012, Chapter 9, Slide 1

Block diagonalization of matrix-valued sum-of-squares programs

AB-267 DYNAMICS & CONTROL OF FLEXIBLE AIRCRAFT

A Backstepping Design for Flight Path Angle Control

Digital Autoland Control Laws Using Direct Digital Design and Quantitative Feedback Theory

April 15, 2011 Sample Quiz and Exam Questions D. A. Caughey Page 1 of 9

The Role of Zero Dynamics in Aerospace Systems

Exam - TTK 4190 Guidance & Control Eksamen - TTK 4190 Fartøysstyring

Equations of Motion for Micro Air Vehicles

Flight Control Simulators for Unmanned Fixed-Wing and VTOL Aircraft

Feasibility study of a novel method for real-time aerodynamic coefficient estimation

Optimal Control, Guidance and Estimation. Lecture 16. Overview of Flight Dynamics II. Prof. Radhakant Padhi. Prof. Radhakant Padhi

Robust Control Of A Flexible Manipulator Arm: A Benchmark Problem

Continuous Differentiation of Complex Systems Applied to a Hypersonic Vehicle

Dynamic Modeling of Fixed-Wing UAVs

MAV Unsteady Characteristics in-flight Measurement with the Help of SmartAP Autopilot

ANALYSIS OF AUTOPILOT SYSTEM BASED ON BANK ANGLE OF SMALL UAV

AE Stability and Control of Aerospace Vehicles

Turn Performance of an Air-Breathing Hypersonic Vehicle

LTI Approximations of Slightly Nonlinear Systems: Some Intriguing Examples

Institutionen för systemteknik

Department of Aerospace Engineering and Mechanics University of Minnesota Written Preliminary Examination: Control Systems Friday, April 9, 2010

Evaluation of different wind estimation methods in flight tests with a fixed-wing UAV

UAV Coordinate Frames and Rigid Body Dynamics

Institutionen för systemteknik

Linear Flight Control Techniques for Unmanned Aerial Vehicles

Minimal Altitude Loss Pullout Maneuvers

State Estimation for Autopilot Control of Small Unmanned Aerial Vehicles in Windy Conditions

Nonlinear Landing Control for Quadrotor UAVs

Investigation of Steering Feedback Control Strategies for Steer-by-Wire Concept

Visual Servoing for a Quadrotor UAV in Target Tracking Applications. Marinela Georgieva Popova

Quadrotor Modeling and Control for DLO Transportation

TTK4190 Guidance and Control Exam Suggested Solution Spring 2011

A Blade Element Approach to Modeling Aerodynamic Flight of an Insect-scale Robot

Simulation of UAV Systems P. Kaňovský, L. Smrcek, C. Goodchild

Aircraft Flight Dynamics & Vortex Lattice Codes

Aircraft Design I Tail loads

CDS 101/110a: Lecture 8-1 Frequency Domain Design

Design and modelling of an airship station holding controller for low cost satellite operations

Dynamic-Fuzzy-Neural-Networks-Based Control of an Unmanned Aerial Vehicle

Lane departure detection for improved road geometry estimation

Institutionen för systemteknik

What is flight dynamics? AE540: Flight Dynamics and Control I. What is flight control? Is the study of aircraft motion and its characteristics.

Frequency Domain System Identification for a Small, Low-Cost, Fixed-Wing UAV

A SIMPLIFIED ANALYSIS OF NONLINEAR LONGITUDINAL DYNAMICS AND CONCEPTUAL CONTROL SYSTEM DESIGN

Autopilot design for small fixed wing aerial vehicles. Randy Beard Brigham Young University

Dynamics and Control of Rotorcraft

Flight Dynamics and Control. Lecture 3: Longitudinal stability Derivatives G. Dimitriadis University of Liege

Robustness Study for Longitudinal and Lateral Dynamics of RLV with Adaptive Backstepping Controller

Stability and Control

AFRL MACCCS Review. Adaptive Control of the Generic Hypersonic Vehicle

Development of a novel method for autonomous navigation and landing of unmanned aerial vehicles

COMBINED ADAPTIVE CONTROLLER FOR UAV GUIDANCE

Department of Physics, Chemistry and Biology

AA 242B/ ME 242B: Mechanical Vibrations (Spring 2016)

Stability and Control Analysis in Twin-Boom Vertical Stabilizer Unmanned Aerial Vehicle (UAV)

16.400/453J Human Factors Engineering. Manual Control I

Robot Control Basics CS 685

Control System Design. Risk Assessment

Flight Test Results for Circular Path Following by Model Predictive Control

Mechanics of Flight. Warren F. Phillips. John Wiley & Sons, Inc. Professor Mechanical and Aerospace Engineering Utah State University WILEY

On Indirect Input Measurements

Diagnosis on a Principle Environmental Control System

Multi-layer Flight Control Synthesis and Analysis of a Small-scale UAV Helicopter

Real-time trajectory generation technique for dynamic soaring UAVs

Study. Aerodynamics. Small UAV. AVL Software

Probabilistic Control of Nonlinear Uncertain Systems

Improvement of flight regarding safety and comfort

Nonlinear Adaptive Flight Control for the X-38 Vehicle

Model Reduction using a Frequency-Limited H 2 -Cost

Consider a wing of finite span with an elliptic circulation distribution:

Localizer Hold Autopilot

Direct spatial motion simulation of aircraft subjected to engine failure

Flight Controller Design for an Autonomous MAV

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

Transcription:

Control of Unmanned Aerial Vehicles using Non-linear Dynamic Inversion Master s Thesis Division of Automatic Control Department of Electrical Engineering Linköping University Mia Karlsson LiTH-ISY-EX-3- Linköping

Control of Unmanned Aerial Vehicles using Non-linear Dynamic Inversion Master s Thesis Division of Automatic Control Department of Electrical Engineering Linköping University Mia Karlsson LiTH-ISY-EX-3- Supervisors: Examiner: M.Sc. Jonas Lövgren, Saab AB. Lic. Ola Härkegård, ISY, Linköping University. Prof. Torkel Glad, ISY, Linköping University. Linköping, December,

Avdelning, Institution Division, Department Institutionen för Systemteknik 3 LINKÖPING Datum Date -- Språk Language Svenska/Swedish X Engelska/English Rapporttyp Report category Licentiatavhandling X Examensarbete ISBN ISRN LITH-ISY-EX-3- C-uppsats D-uppsats Övrig rapport Serietitel och serienummer Title of series, numbering ISSN URL för elektronisk version http://www.ep.liu.se/exjobb/isy//3/ Titel Title Design av styrlagar för obemannade farkoster med hjälp av exakt linjärisering Control of Unmanned Aerial Vehicles using Non-linear Dynamic Inversion Författare Author Mia Karlsson Sammanfattning Abstract This master's thesis deals with the control design method called Non-linear Dynamic Inversion (NDI) and how it can be applied to Unmanned Aerial Vehicles (UAVs). In this thesis, simulations are conducted using a model for the unmanned aerial vehicle SHARC (Swedish Highly Advanced Research Configuration), which Saab AB is developing. The idea with NDI is to cancel the non-linear dynamics and then the system can be controlled as a linear system. This design method needs much information about the system, or the output will not be as desired. Since it is impossible to know the exact mathematical model of a system, some kind of robust control theory is needed. In this thesis integral action is used. A problem with NDI is that the mathematical model of a system is often very complex, which means that the controller also will be complex. Therefore, a controller that uses pure NDI is only discussed, and the simulations are instead based on approximations that use a cascaded NDI. Two such methods are investigated. One that uses much information from aerodata tables, and one that uses the derivatives of some measured outputs. Both methods generate satisfying results. The outputs from the second method are more oscillatory but the method is found to be more robust. If the signals are noisy, indications are that method one will be better. Nyckelord Keyword Non-linear Dynamic Inversion, exact linearization, cascaded structure, integral action, flight control, Unmanned Aerial Vehicles

Abstract This master s thesis deals with the control design method called Non-linear Dynamic Inversion (NDI) and how it can be applied to Unmanned Aerial Vehicles (UAVs). In this thesis, simulations are conducted using a model for the unmanned aerial vehicle SHARC (Swedish Highly Advanced Research Configuration), which Saab AB is developing. The idea with NDI is to cancel the non-linear dynamics and then the system can be controlled as a linear system. This design method needs much information about the system, or the output will not be as desired. Since it is impossible to know the exact mathematical model of a system, some kind of robust control theory is needed. In this thesis integral action is used. A problem with NDI is that the mathematical model of a system is often very complex, which means that the controller also will be complex. Therefore, a controller that uses pure NDI is only discussed, and the simulations are instead based on approximations that use a cascaded NDI. Two such methods are investigated. One that uses much information from aerodata tables, and one that uses the derivatives of some measured outputs. Both methods generate satisfying results. The outputs from the second method are more oscillatory but the method is found to be more robust. If the signals are noisy, indications are that method one will be better. I

II

Acknowledgments This thesis finalizes my Master of Science in Applied Physics and Electrical Engineering at Linköping university. I have written this master s thesis at Saab Aerospace, department Gripen Handling Qualities, from August to December. It has been a wonderful time, thanks to the people working there. I would especially like to thank my supervisor Jonas Lövgren and my vice-supervisor Karin Ståhl-Gunnarsson for being helpful and always finding time for my questions. Another person that I would like to thank is my supervisor at Linköping university, Ola Härkegård, with whom I have had many interesting discussions. I am also very grateful to all of you who have read the drafts of this thesis. I would also like to thank my family and friends, for their support and for giving me such a good time during my studies. Finally I would like to thank Markus, making my life happy, and to whom I am also grateful for making me interested in this very exciting and fascinating world of engineering. Linköping, December Mia Karlsson III

IV

Notation Symbol Unit Definition α rad angle of attack β rad sideslip angle b m wing span c m aerodynamic mean chord C l - rolling moment coefficient C L - lifting force coefficient C m - pitching moment coefficient C n - yawing moment coefficient C N - normal force coefficient C T - tangential force coefficient C Y - side force coefficient δ a rad aileron deflection δ e rad elevator deflection δ r rad rudder deflection φ rad roll angle F T N engine thrust force γ rad flight path angle g m/s acceleration due to gravity I x, I y, I z, I xz, I yz, I xy kgm moment of inertia L Nm rolling moment L lift N lift force m kg aircraft mass M - Mach number M Nm pitching moment n z - load factor N N normal force N Nm yawing moment p rad/s roll rate θ rad pitch angle q rad/s pitch rate q a N/m dynamic pressure ρ kg/m 3 air density r rad/s yaw rate S m reference area T N tangential force u m/s longitudinal velocity v m/s lateral velocity V T m/s true airspeed ω n rad/s natural frequency V

w m/s normal velocity (x b, y b, z b ) m body-axes coordinate system (x e, y e, z e ) m earth-axes coordinate system ψ rad yaw angle Y N side force ζ - damping factor VI

Contents Introduction.................................................. Background............................................. Objectives...............................................3 SHARC................................................ Limitations.............................................. Outline................................................ Flight Mechanics............................................... General Theory.......................................... Flight Mechanics Specific for SHARC....................... 9.. Forces and Aerodynamic Coefficients.................. 9.3 Control Surfaces..........................................3. Servos........................................... 3 Non-linear Dynamic Inversion................................... 3 3. Pure Non-linear Dynamic Inversion......................... 3 3. Cascaded Non-linear Dynamic Inversion..................... 3.3 An Example, Pure NDI versus Cascaded NDI................. Non-linear Dynamic Inversion Applied to SHARC................... 7. Pure Non-linear Dynamic Inversion......................... 7. Cascaded Non-linear Dynamic Inversion, Method One............ Longitudinal Mode................................... Lateral Mode......................................3 Cascaded Non-linear Dynamic Inversion, Method Two...........3. Longitudinal Mode..................................3. Lateral Mode..................................... 7. Control of the Load Factor................................. 3.. Control of the Load Factor by the Angle of Attack........ 3.. Control of the Load Factor by the Elevator.............. 3. Robustness............................................. 3. Poles of the Closed Loop System........................... 3.. General Theory.................................... 3.. System without Integrators........................... 3..3 System with Integrators............................. 3 Simulation.................................................. 39. Control Systems Requirements............................. 39. Deciding the Parameters...................................3 Simulation Environment................................... Plots and Comments...................................... VII

Conclusions................................................. Bibliography.................................................. 3 Appendix A................................................... Appendix B................................................... 7 VIII

Introduction This master s thesis has been carried out at Saab Aerospace, department Gripen Handling Qualities. The task is to investigate the control design method Non-linear Dynamic Inversion (NDI) and apply it to the unmanned aerial vehicle SHARC (Swedish Highly Advanced Research Configuration).. Background Non-linear Dynamic Inversion has been applied to flight control design during the two last decades, see []. The reason for investigating NDI is that Saab wants an easy control method that is applicable for non-linear systems. When for example Gripen is controlled, LQ-design is used. LQ-design is a method, where different controllers have to be designed for different flight cases, see []. The hope is that NDI is an easier method to use and that the same parameters can be used in the entire flight envelope. The intention is that the controller then easily can be adapted to other aircraft.. Objectives The purpose is to design control laws for the SHARC in both longitudinal and lateral motion using the design method Non-linear Dynamic Inversion. In order for the SHARC to behave well, even if there are model errors in the design, robust control laws have to be implemented..3 SHARC Sweden has tested UAV systems since the end of the 9 s. An example is the French UAV system UGGLAN that is used for tactical reconnaissance within the brigades. The UAVs can be divided into different groups: High-Altitude Long Endurance (HALE), Medium-Altitude Long Endurance (MALE), Unmanned Reconnaissance Aerial Vehicles (URAV), Unmanned Combat Aerial Vehicles (UCAV), and Tactical Unmanned Aerial Vehicles (TUAV).

Introduction In Sweden, the work with UAVs began in 99 within the framework of the National Aeronautical Research Programme (NFFP). Nine configurations were defined, and one of them was SHARC. At the same time a working team called IPT UAV was formed. It will suggest the direction for Swedish military activity on UAVs during to. Figure.: The SHARC. The SHARC is an UCAV that has a low signature feature, a range of km and it will have high surviveability and a low cost in serial production. It will also be autonomous. It is meters long, has a wingspan of meters, and a take-off-weight of about kg.. Limitations The controllers calculated in this master s thesis will not be tested on a real aircraft, only on a model of the SHARC. On the other hand, model errors will be implemented to simulate the reality. Another limitation is that the model not includes noise. The limits and the dynamics for the control surfaces of SHARC, are not definitive defined. The dynamics of the control surfaces are simulated by servos, that are approximations of the system.. Outline In Chapter, the general theory of flight mechanics is presented together with SHARC-specific theory, such as dependencies of aerodynamic coefficients, control surfaces, and servos. Chapter 3 discusses the differences between pure NDI and cascaded NDI.

Introduction In Chapter the theory is applied to the SHARC. A controller that uses pure NDI is discussed and two controllers that use cascaded NDI are designed. Chapter also deals with controllers that make the system more robust, and descriptions for the closed loop system are derived. In Chapter simulations are conducted and parameters are decided in order for the system to behave according the requirements. The conclusions are finally presented in Chapter. 3

Introduction

Flight Mechanics In this chapter, flight mechanics needed in order to design controllers for the SHARC is presented.. General Theory The motion of an aircraft can be divided into rotational and translational motion. The rotational motion is the rotation around the body axes (x b, y b, z b ) and the motion can be expressed in angular velocities (p, q, r) and moments (L, M, N), see Figures. and.. x e V T x b Ψ χ β p, L y b q, M Figure.: Definitions of moments, forces etc.

Flight Mechanics y b, Y, v φ y e r, N z b, Z, w z e Figure.: Definitions of moments, forces, velocities etc. Translational motion is movement in the directions of the body axes (x b, y b, z b ) and the motion can be described by the velocities (u, v, w) and the forces (X, Y, Z), see Figures.,., and.3. The coordinate system relative earth, (x e, y e, z e ) is also seen. In this thesis the forces X and Z are not used, bust instead the tangential force T = X and the normal force N = Z L lift x b, X, u V T θ α x e γ Figure.3: Definitions of forces, coordinates, attitudes and velocities. In Figures. and.3 the true airspeed V T is seen. The definition of true airspeed is: V T = v v w where v is the velocity of centre of gravity relative earth and v w is the velocity of wind relative earth, both expressed in (x b, y b, z b ). Another definition needed is the Mach number defined as: where a is the speed of the sound. M = V ------ T a

Flight Mechanics There are some angles that describe the attitude of the aircraft, for example the euler angles (φ, θ, ψ), see Figures.,., and.3, the angle of attack α, see Figure.3, and the sideslip angle β, see Figure.. The definitions for α and β are: α β w = arctan --- u v = arc sin ------ V T In Figure.3, the lift force L lift is seen and is defined as: L lift = q a SC L = q a S( C T sin( α) + C N cos( α) ) (.) The lift force L lift is written like this to get a non-dimensional expression, where C T and C N are aerodynamic coefficients corresponding to the tangential and normal forces, and q a is the dynamic pressure defined as: q a = --ρv T Using the lift force L lift, the load factor n z can be defined as: L n z = -------- lift (.) mg This is an approximation that is good enough for small α. Normally n z is defined as N n z = ------- mg The motion of an aircraft can also be separated into longitudinal and lateral motion. Longitudinal motion considers the forces N and T and the moment M. The equations used in this thesis to describe longitudinal motion are α and q, see (.3) and (.). Lateral motion considers the force Y and the moments L and N. The equations used to describe the lateral motion in this thesis are β, ṙ, and ṗ, see (.), (.), and (.9). In order to be able to control the SHARC in both longitudinal and lateral mode, equations for α, q, β, ṙ, and ṗ are needed. An expression for α is found in [3]: α = q ( pcosα + r sinα) tanβ+ ------------------------ ( (.3) mv T cosβ L F lift T sinα + mg( cosαcosθcosφ+ sinαsinθ) ) where F T is the engine thrust force. An expression for β is found in [3]: β = psin( α) r cos( α) + ----------- ( Y F mv T cos( α) sin( β) + mg 3 ) T where (.) 7

Flight Mechanics g 3 = g( cos( β) cos( θ) sin( φ) + sin( β) cos( α) sin( θ) sin( α) sin( β) cos( θ) cos( φ) ) and Y is the side force where Y = q a SC Y (.) The equations for q, ṗ,and ṙ are flat-earth approximations that do not include rotation of the earth and its curvature. The equations are found in []: L = I x ṗ I zx ( ṙ + pq) ( I y I z )qr (.) M = I y q I zx ( r p ) ( I z I x )rp N = I z ṙ I zx ( ṗ qr) ( I x I y )pq (.7) (.) Solving (.), (.7), and (.) for q, ṗ, and ṙ yields: N I L I zx qr + ( I x I y )pq + zx ------------------------------------------------------- + pq + ( I I ṗ z y I z )qr = ----------------------------------------------------------------------------------------------------------------------------- I zx --------- I I x I x z (.9) q = M + I zx ( r p ) + ( I z I x )rp ------------------------------------------------------------------------- I y (.) ṙ = L+ I N I zx pq +( I y I z )qr + zx -------------------------------------------------------- qr +( I I x x I y )pq ------------------------------------------------------------------------------------------------------------------------------- I zx --------- I I x I z z (.) The moments can also be expressed in non-dimensional aerodynamic coefficients: L = q a SbC l (.) M = q a ScC m (.3) N = q a SbC n (.)

Flight Mechanics. Flight Mechanics Specific for SHARC In this section, aerodynamic coefficients, control surfaces and servos specific for the SHARC is presented... Forces and Aerodynamic Coefficients The aerodynamic coefficients can be found in tables calculated using results from wind tunnel tests. For the SHARC, the dependencies of the aerodynamic coefficients are presented below. C m = C m ( M, α, β) + C m ( α ) + C m ( q) + C m ( δ e ) (.) where C m ( δ e ) C m + dc mδe (.) dδ e The expression in (.) is necessary later in this thesis, in order to be able to solve for the control surface δ e. It is expressed by a Taylor expansion, where only the first derivative is included to simplify the calculations. C m is calculated as: C m = C m ( δ e ) dc mδe dδ e The derivative of the aerodynamic coefficient is approximated by: dc m C m ( δ e + ) C m ( δ e ) ------------------------------------------------------------- dδ e (.7) where δ e is taken from the previous sample. The value of in (.7) is set to some convenient number to prevent the derivatives from becoming discontinuous. A good value for is 3, that is chosen after some tests have been performed. It would be preferred if the aerodata tables already had contained information about the derivatives. Other needed aerodynamic coefficients are: = C l ( M, αβ, ) + C l ( p) + C l ( r) + C l ( δ) C T C l C N = C n = C n ( M, α, β) + C n ( r) + C n ( δ) = C N ( M, αβ, ) + C N ( α ) + C N ( δ e ) C T ( M, αβ, ) + C T ( δ a ) + C T ( δ r ) + C T ( δ e ) (.) (.9) (.) (.) Some of these expressions are approximated using Taylor expansion in the same way as for C m. The new expressions are: 9

Flight Mechanics C l = d C l ( M, αβ, ) + C l ( p) + C l ( r) + Cl ( δ dδ a )δ a + Cl ( δ a dd δ r )δ r + C l r (.) C n = d C n ( M, αβ, ) + C n ( r) + Cn ( δ dδ a )δ a + Cn ( δ a dd δ r )δ r + C n r (.3) C N = C N ( M, αβ, ) + C N ( α ) + C N + dc N δe dδ e (.) Using the aerodata tables, one has to be certain that the inputs to the tables are part of the tables. Otherwise the outputs from the tables are set to zero. A solution to the problem is to limit those signals, such as the commanded control surface deflections..3 Control Surfaces The control surfaces that make it possible to control the SHARC are seen in Figure.. They are the elevator δ e, the aileron δ a, and the rudder δ r. δ a δ e, δ r δ a The definitions of the control surfaces are Figure.: The control surfaces for the SHARC. δ e δ a δ r left right δ e + δ = ---------------------------- e = ---------------------------- left right δ r δ = ---------------------------- r δ a left δ a right One has to decide which variables of the SHARC that should be controlled. Usually, for ordinary aircraft, α is controlled at low speed, and n z at high speed in longitudinal mode. This is because pilots feel most comfortable if the variables are controlled in that

Flight Mechanics way. Even for UAVs, it is natural to control these variables. The velocity when the angle of attack is no longer controlled, but instead the load factor n z, is called Corner speed. At the altitude meters, this occurs at about Mach.. To decide Corner speed, the commanded α is set to its maximum, degrees, and the Mach number is increased until n z reaches its maximum value, which for the SHARC is six. In lateral mode the angular velocity p and the sideslip angle β are to be controlled. The aim is to keep β to zero, except at landing if the wind is coming from the side. In this thesis, the SHARC will roll around the body axis x b. Other alternatives would be to roll around the velocity vector V T, or around a vector that points in a direction where missiles are fired. One must also decide which control surfaces that are supposed to control pitch, yaw and roll. One way is to control the moments and decide the angles of the control surfaces by solving a linearly constrained quadratic programming problem, see [] and []. One advantage with this approach is that if one control surface is damaged, then the other surfaces can be optimized to control the aircraft. The calculations are part of a so called control selector, see [7], that is needed if the control surfaces are redundant. This is however not the case in this thesis. The three angular accelerations that are of interest, are all controlled by three surfaces. The relations are found in tables that origin from wind tunnel tests. ṗ = f p ( δ a, δ e, δ r ) q = f q ( δ a, δ e, δ r ) ṙ = f r ( δ a, δ e, δ r ) There are three equations and three control surfaces, which means that all surfaces can be solved for. To simplify, let δ e control pitch and δ r and δ a together control yaw and roll. Even if δ e affects roll and yaw, as well as δ r and δ a affect pitch, the contribution is pretty small and can be approximated by zero..3. Servos In the model of the SHARC, servos for the control surfaces had to be added, see Figure.. The same model of a servo was added for all control surfaces. The model is simple but is a good approximation of general servo dynamics. δ *.s+ δ Figure.: The servo used for all control surfaces.

Flight Mechanics

3 Non-linear Dynamic Inversion In this thesis, two different ways to control the SHARC are investigated, pure Non-linear Dynamic Inversion and cascaded Non-linear Dynamic Inversion. The word pure is used to make a distinction between NDI and the approximated variant, which uses a cascaded NDI. 3. Pure Non-linear Dynamic Inversion Non-linear Dynamic Inversion (NDI), also known as exact linearization, see [], is a structured way to cancel the dynamics and then control the system as a linear system. The states are linearized by letting: z = y z = ẏ... z n = y n ) ż = z ż = z 3... = ψ( z, u) ż n Then let ż n = l r Lz = ψ( z, u) where matrix L is choosen to get proper poles, and solve for u. If the n th state derivative includes a control signal, the system can be exactly linearized. If the control signal occurs before the last state derivative, the entire closed loop system is not linearized and problems will occur if some states are unstable. 3

Non-linear Dynamic Inversion 3. Cascaded Non-linear Dynamic Inversion The other method used is a cascaded NDI, also known as NDI using time scale separation. The system is divided into an inner and an outer loop. The dynamics in the inner loop has to be faster than the dynamics in the outer loop. For example, the output from the inner loop in longitudinal mode is the angular velocity q, which is faster than the angle of attack α, which is output from the outer loop, because α q. The control surfaces have direct effect on ṗ, q, and ṙ, since the surfaces produce the corresponding moments, so δ e has more effect on q than on α. A cascaded NDI also cancels the dynamics of a system, but the cancellation is not exact. It relies on the approximation that the inner loop is so fast, that the time it takes to perform something in the inner loop is approximated by zero. The behavior of the closed loop system is decided by the demands of the derivatives in the inner and outer loops. An approximated description of the closed loop system can also be made and consequently the approximated poles can be calculated. The cascaded control structure for the pitch mode is demonstrated in Figure 3., where η and ξ are some arbitrary functions. α d q d δ e q η ξ q =... α =... α Figure 3.: The cascaded control structure for the pitch mode. 3.3 An Example, Pure NDI versus Cascaded NDI To see how these two methods differ, a simple example will be presented by studying the following system: ẋ = f ( x ) + x = u (3.) (3.) ẋ y = x (3.3) where f is some arbitrary function. Start with pure NDI and define the new states: z = x z = ẋ = f ( x ) + x The derivatives are: ż = z = f ( x ) + x ż = f ( x )ẋ + ẋ = f ( x )( f ( x ) + x ) + u = v and (3.)

Non-linear Dynamic Inversion y = ż dt = vdt The signal v is designed for the system to get proper poles: v = l r l z l z (3.) The system can then be expressed as: ẏ ẏ ż = = ż l l z + r z l Set (3.) and (3.) equal and solve for u expressed in the original states. The control signal u will generate the output y, with performances defined by the signal v. u = l r a x a ( f ( x ) + x ) + f '( x )( f ( x ) + x ) (3.) Now the second method with the cascaded NDI, will be examined. With the first method the desired closed loop system was designed with the help of matrix L. With the second method the desired closed system is designed by the derivatives in (3.7) and (3.) where x d and x d are the desired signals. ẋ ẋ = k x ( x d x ) = k x ( x d x ) (3.7) (3.) Use (3.) and (3.7), and solve for the x that generates the desired ẋ : x = k x ( x d x ) + f ( x ) (3.9) Now an approximation is made. The inner loop is supposed to be much faster than the outer loop, which means that x can be approximated with x d. Equation (3.9) can therefore be written as: x d = k x ( x d x ) + f ( x ) (3.) Use (3.) and (3.), and solve for the u that generates the wanted ẋ : u = k x ( x d x ) (3.) Insert (3.) into (3.) and solve for u: u = k x ( k x ( x d x ) + f ( x ) x ) (3.) The control signals for both methods now can be compared. Equation (3.) contains f ( x ), which is not included in (3.). The control signal calculated using pure NDI is more complex, but the advantage is that the system is exactly linearized in contrast to the cascaded NDI where approximations are made.

Non-linear Dynamic Inversion

Non-linear Dynamic Inversion Applied to SHARC In this chapter some different control methods using Non-linear Dynamic Inversion (NDI), are applied to the SHARC. First, pure NDI is evaluated. Then two controllers that use a cascaded NDI are calculated. The cascaded NDI method uses approximations that will help simplify the expressions. For example, the inner loops are assumed to be much faster than the outer loops, and the dynamics for the control surfaces are not included, because the surfaces are assumed to move instantly.. Pure Non-linear Dynamic Inversion As mentioned before, NDI is an exact linearization and the equations are complex, which soon will be noticed. Start with the pitch mode, where the angle of attack α is to be controlled. The servo for * the control surface angle δ e, see Figure., can be expressed by: Create the following states: δ e δ = --------------- e. z z z 3 δ e * = α = α = α (.) where α is found in (.3). The derivatives of the states are: ż = α = z 7

Non-linear Dynamic Inversion Applied to SHARC ż = z 3 = α = q ( ṗcos( α) psin( α)α + ṙ sin( α) + r cos( α)α ) tan( β) + β mv T ( cos( β) v ( pcos( α) + r sin( α) )------------------ T sin( β)β ) --------------------------------------------------------------- cos( β) m ( L F T sin( α) + v T cos( β) (.) mg( cos( α) cos( θ) cos( φ) + sin( α) sin( θ) )) + --------------------------- ( mv T cos( β) L F T sin( α) F T cos( α)α + mg( sin( α)α cos( θ) cos( φ) + cos( α) ( sin( θ)θ cos( φ) cos( θ) sin( φ)φ ) + cos( α)α sin( θ) + sin( α) cos( θ)θ ) ) ż 3 = α = In the equation for ż there are some derivatives needed, for example q that includes the moment M, see (.). The moment M is expressed by the elevator δ e, but the parameter of interest is δ e, see Figure.. To be able to express δ e, the state derivative ż 3 is * * also needed together with (.). The expression for ż 3 is huge and there are also many derivatives that must be realized, for example the derivatives of the aerodynamic coefficients and F T. To avoid this huge expression, it may be better to eliminate the derivatives of those variables that vary slowly, for example V T and F T. Next step is to make a closed loop system, let = v (.3) ż 3 Design v by a state feedback, where L is chosen to get proper poles: v = l α d Lz (.) Set (.3) and (.) equal and solve for. δ e * Continue with the lateral mode. Because of the servos for the control surfaces δ a and δ r, three states are needed. The equations for the servos are: δ a δ r δ = ---------------- a. δ a * δ = --------------- r. δ r * (.) (.)

Non-linear Dynamic Inversion Applied to SHARC The decision was to control the sideslip angle β, therefore the states are: z = β z = β z = β where β is found in (.). The derivatives of the states are: ż = β = z ż β = = z = ṗsin( α) + pcos( α)α ṙ cos( α) + r sin( α)α + (.7) ----------- ( q mv a SĊ Y + q asc Y F T cos( α) sin( β) F T ( sin( α)α cos( β) + T cos( α) cos( β)β ) + mg( sin( β)β cos( θ) sin( φ) + cos( β) ( sin( θ)θ sin( φ) + cos( θ) cos( φ)φ ) + cos( β)β cos( α) sin( θ) + sin( β) ( sin( α)α sin( θ) + cos( α) cos( θ)θ ) ( cos( α)α sin( β) + sin( α) cos( β)β ) cos( θ) cos( φ) + sin( α) sin( β) ( sin( θ)θ cosφ cos( θ) sin( φ)φ ))) v T --------- ( q a SC Y F T cos( α) sin( β) + mg( cos( β) cos( θ) sin( φ) + mv T sin( β) cos( α) sin( θ) sin( α) sin( β) cos( θ) cos( φ) )) ż = * * The state derivative ż is necessary because δ a and δ r are needed in the expression instead of δ a and δ r. Equations (.) and (.) are used for that purpose. The expression for ż is not derived in this thesis. The expression is huge and contains many derivatives, which must be approximated by filters. Now the closed loop will be shaped. Design v by letting: v = l β d Lz Let = v ż and solve for. This expression contains, so more equations are needed. Another variable to be controlled is p, hence create the new states: δ a * δ r * 9

Non-linear Dynamic Inversion Applied to SHARC The derivatives of the states are: z 7 z ż 7 ż = p = ṗ = ṗ = The equation for ṗis found in (.9). The moments L and N in that equation contain the * * surfaces deflections δ a and δ r. To be able to express in terms of δ a and δ r, ż is also needed. Once again this is a huge expression that not will be calculated in this thesis. It also contains derivatives that have to be approximated in some way. Design the signal v as: v = l p d Lz Let ż = v * * and solve for δ a. Now there are two equations where δ a is solved for. Let these equations be equal and solve for δ r *. Now the controller for the system is complete, and if no approximations are made, the system behaves exactly as desired. Unfortunately, the expressions are too complex, and contains too many derivatives that are difficult to create. One simplification is to say that the dynamics of the servos are so fast, that the expressions for the servos are not needed. In that case z 3, z, and z will not be used and the expressions for the controller will be smaller.. Cascaded Non-linear Dynamic Inversion, Method One Now, a method that uses a cascaded NDI is presented, see [] and [9]. The control signals in both longitudinal and lateral mode will be calculated... Longitudinal Mode At low speed the controlled variable is the angle of attack α and at high speed the controlled variable is exchanged for the load factor n z.the equations used when α is controlled are (.3) and (.9) and the equations used for the pitch moment are (.3), (.), and (.). The desired α and q can be expressed as a constant times the difference between the desired state and the measured state, which gives a first order system: α = k α ( α d α) (.) q = k q ( q d q) (.9) These equations determine how fast the system will respond on desired commands.

Non-linear Dynamic Inversion Applied to SHARC Solving for q in (.3) and exchanging α for the desired one in (.), gives that with this q, the desired α is obtained and also the desired α. Since the inner loop is faster than the outer loop, as described in Chapter 3.3, the approximation q q d can be made, which yields: q d = k α ( α d α) + ( pcosα + r sinα) tanβ ---------------------- (.) mv T cosβ F sin α + T mg( cosαcosθcosφ+ sinαsinθ) q a S( C T sin( α) + C cos( α) ) N Continue with the inner loop. Use (.) and exchange q for the desired one in (.9): k q ( q d q) = q a Sc C m ( M, αβ, ) + C m ( α ) + C m ( q) + C m + dc mδe dδ e ------------------------------------------------------------------------------------------------------------------------------------- + I y (.) I zx ( r p ) + ( I z I x )rp ------------------------------------------------------------- I y If δ e in (.) is solved for, that δ e will generate the desired q. Insert (.) into (.) and solve for δ e : δ e = Cm ( δ (.) dd δ e ) k e q I y k α ( α d α) + ( pcosα + r sinα) tan( β) mv ----------------------- ( T cosβ F sin α + mg ( cos α cos θ cos φ + sin α sin θ ) q T a S ( C T sin( α) + C N cos( α) )) q I zx ( r p ) ( I z I x )rp ----------- C q a Sc m ( M, αβ, ) C m ( α ) C m ( q) C m Equation (.) is used during simulation. If the inner loop is fast enough, α will almost conduct like what is expressed in (.), and so also the angle of attack α... Lateral Mode Lateral mode consists of both yaw and roll mode. In lateral mode, the same variables are controlled in both low and high speed. The variables are the roll rate p and the sideslip angle β and they are controlled by the surfaces δ a and δ r. At landing, β is sometimes commanded to a certain value, otherwise the desired β is normally zero. In roll mode, the angular velocity p is controlled. Use (.9) together with (.) and (.) and exchange ṗ for k p (p d -p). Solving for δ a means that with this δ a, the desired ṗ and consequently the desired p, are obtained.

Non-linear Dynamic Inversion Applied to SHARC I δ a ----------------------------------------------------------------------- k p ( p d p) zx = --------- I dc l I zx dc q a Sb ( δ dδ a ) ------ n I z I x x + ( δa ) a I z d δa (.3) d q a Sb C l ( M, αβ, ) + C l ( p) + C l ( r) + Cl ( δ dδ r )δ r + C l ( I r y I z )qr q a Sb d C n ( M, αβ, ) + C n ( r) + Cn ( δ dδ r )δ r + C n I r zx qr + ( I x I y )pq I zx ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- I z + pq In yaw mode, both an inner loop and an outer loop are needed. In the outer loop the sideslip angle β is controlled, and in the inner loop the faster yaw rate r is controlled. Use the expression for β in (.). Exchanging β for k β (β d -β) and r for r d and then solving for r d, means that with this r d, the desired β is obtained and thus the desired β. k β ( β d β) + psin( α) + --------- ( Y F mv T cos( α) sin( β) + mg 3 ) r T d = -------------------------------------------------------------------------------------------------------------------------------------------------- (.) cos( α) Continue with the inner loop. Use the expression for ṙ in (.) together with (.) and (.), and exchange ṙ for k r (r d -r). If δ a is solved for, that δ a would generate the desired r. Insert (.) into that equation and solve for δ a.

Non-linear Dynamic Inversion Applied to SHARC I zx δ a = --------------------------------------------------- ---------I d I zx dc I q a Sb Cn ------ l x I z z dδ α I x d δα psin( α) k β ( β d β) + ----------- ( q mv a SC Y F T cos( α) sin( β) + mg 3 ) ------------------------------------------------------------------------------------------------------------------------------------------------------------- T r cos( α) kr (.) d q a Sb C n ( M, αβ, ) + C n ( r) + Cn δ dδ r + r C n d I zx ---- q I a Sb C l ( M, αβ, ) + C l ( p) + C l ( r) + Cl δ x dδ r + r C l + I zx pq + ( I y I z )qr qr ( I x I y )pq 3

Non-linear Dynamic Inversion Applied to SHARC Let (.3) be equal to (.) and solve for δ r : dc l I zx dc ------ n dc n I zx dc ------ l + dδ δ r ----------- r I z d δr dδ ----------------------------------- r I x d δr + ------------------------------------- = q a Sb dc l I ------ zx dc n d I zx dc -------------------------------------------- + Cn ------ l + d I zx dc l dδ a I z d δa dδ a I x d δa Cn + ------ dδ α I x dδ α (.) I psin( α) k zx β ( β ref β) + ----------- ( q mv a SC Y F T cos( α) sin( β) + mg 3 ) --------- I I x I z k T r ----------------------------------------------------------------------------------------------------------------------------------------------------------------- z cos( α) r q a Sb( C n ( M, αβ, ) + C n ( r) + C n ) I zx ( q a Sb( C l ( M, α, β) + C l ( p) + C l ( r) + C l ) + I zx pq + ( I y I z )qr) ---------------------------------------------------------------------------------------------------------------------------------------------------------------- qr I z I ( I x I y )pq ------------------------------------- k p ( p d p) zx --------- I dc l I ------ zx dc n I z I x q a Sb( C l ( M, αβ, ) x + dδ a I z d δa + C l ( p) + C l ( r) + C l ) ( I y I z )qr I zx ( q a Sb( C n ( M, αβ, ) + C n ( r) + C n ) I zx qr + ( I x I y )pq) ---------------------------------------------------------------------------------------------------------------------------------------------- + pq I z Equations (.3) and (.) are implemented in the simulation environment. If the inner loop for the yaw mode is fast enough, the control signal δ r generates a β that almost will be as desired. The response of β also follow of the expression for the desired β. In roll mode there is no inner loop, so ṗ would be as desired if problems such as model errors and noise not existed.

Non-linear Dynamic Inversion Applied to SHARC.3 Cascaded Non-linear Dynamic Inversion, Method Two The expressions for the control signals earlier in Chapter. are big, therefore another method that brings less complicated equations would be preferable. In this section, a cascaded NDI that uses fewer aerodynamic coefficients is tested. Instead the derivatives of some measured outputs are used together with measured control surface deflections. The problem is, that it is difficult to use derivatives of measured signals because the signals may be noisy. The derivatives are implemented as high pass filters with the break-frequency rad/s. That is, for low frequencies it is a normal derivation, but for frequencies above rad/s, the gain of the transfer function is constant. This filter is used to avoid high frequency signals from being amplified too much. The filter is shown in Figure. where α is input and its derivative is output. α s α s + Figure.: The filter for the derivation. The control signals are calculated by substracting the desired d and sensored s equations for ṗ, q, ṙ, α, and β. These less complicated equations are then used in the same way as in the first method. That is in a cascaded control structure, where the inner loops are assumed to be much faster than the outer loops. This can be read about in [], where also results from flight tests are presented. The equations for the moments L, M, and N used for this controller, are the following: d L = q a Sb C l ( M, αβ, ) + C l ( p) + C l ( r) + ( Cl )δ (.7) dδ a + ( Cl )δ a dd δ r + C l r d = q a Sb Γ + ( C dδ l )δ a + ( Cl )δ a dd δ r r d M = q a Sc C m ( M, αβ, ) + C m ( α ) + C m ( q) + ( Cm )δ (.) dδ e + C m e d = q a Sc Λ + ( C dδ m )δ e e

Non-linear Dynamic Inversion Applied to SHARC d N = q a Sb C n ( M, αβ, ) + C n ( r) + ( Cn )δ dδ a + ( Cn )δ a dd δ r + C n r d = q a Sb Ω + Cn ( δ dδ a )δ a + Cn ( δ a dd δ r )δ r r (.9).3. Longitudinal Mode Start with the pitch mode and use (.3). In the first equation below, there are desired signals d and in the second equation there are sensored signals s. α d = q d ( pcosα + r sinα) tanβ+ (.) mv ---------------------- ( T cosβ L F T sinα + mg( cosαcosθcosφ+ sinαsinθ)) α s = q s ( pcosα + r sinα) tanβ + ---------------------- ( mv T cosβ L F T sinα + mg( cosαcosθcosφ+ sinαsinθ)) (.) where α d = k α ( α d α) (.) Subtract (.) from (.) and use (.): k α ( α d α) α s = q d q s (.3) Solve for q d, that is the angular velocity needed to obtain the desired α. q d = k α ( α d α) α s + q s (.) The angular velocity q d is obtained from the inner loop where the elevator δ e is used to control q, which also means that q is controlled. Use (.) and (.): q d = q a Sc d Λ + ( C dδ m )δ ed + I e zx ( r p ) + ( I z I x )rp ---------------------------------------------------------------------------------------------------------------------------- I y (.) q s = q a Sc d Λ + ( C dδ m )δ es + I e zx ( r p ) + ( I z I x )rp ---------------------------------------------------------------------------------------------------------------------------- I y (.) where q d = k q ( q d q) (.7) Subtract (.) from (.) and use (.7).

Non-linear Dynamic Inversion Applied to SHARC I y ( k q ( q d q) q s ) = q a Sc d δe dc m δed ( ) δ es (.) Insert (.) into (.) and solve for δ ed. That control signal will generate a pretty much the same as the desired one, if the inner loop is fast enough. δ ed = (( k α ( α d α) α s )k q q s )---------------------- + δ es dc m q a Sc d δe I y α that is (.9).3. Lateral Mode The aileron δ a and the rudder δ r are used to control ṗ. Use (.9), (.7), and (.9): ṗ d = dc lδrd q a Sb Γ + + dc lδad dδ r dδ a + I zx dc nδrd q a Sb Ω + + dc nδad dδ r dδ a (.3) I zx qr + ( I x I y )pq --- + pq I z + ( I y I z )qr ----------------------------- I zx --------- I I x I x z ṗ s = dc lδrs q a Sb Γ + + dc lδas dδ r dδ a + I zx dc nδrs q a Sb Ω + + dc nδas dδ r dδ a (.3) I zx qr + ( I x I y )pq --- + pq I z + ( I y I z )qr ----------------------------- I zx --------- I I x I x z ṗ d = k p ( p d p) (.3) Subtract (.3) from (.3), use (.3), and solve for δ ad : 7

Non-linear Dynamic Inversion Applied to SHARC I zx δ ad ------------------------------------- k p( p d p) ṗ s = -------------------------------------- --------- I dc l I q ------ zx a Sb I x I x z + Cn dδ a I z dd δa + δ as I zx Cn dd dc l + ------ dδ a I z δa I zx Cn dd dc ( δ rd δ rs ) l + ------ dδ r I z δr (.33) Continue with the yaw mode. Start with the outer loop where β is to be controlled. Use (.) where g 3 is found in (.): β d = psin( α) r d cos( α) + --------- ( Y F (.3) mv T cos( α) sin( β) + mg 3 ) T β s = psin( α) r s cos( α) + --------- ( Y F (.3) mv T cos( α) sin( β) + mg 3 ) T β d = k β ( β d β) (.3) Subtract (.3) from (.3), use (.3), and solve for r d : β s k r β ( β d β) d = ------------------------------------ + cos( α) r s (.37) With the angular velocity r d in (.37), the desired β, and also the desired β are obtained. The yaw rate is controlled by the surfaces δ a and δ r in the inner loop. Use (.), (.7), and (.9): ṙ ----------------------------- q Sb Ω d d = + ( a Cn )δ dδ ad + ( Cn )δ I --------- zx a dd δ rd + ( I r x I y )pq I I x I z z d q a Sb d Γ + (( C dδ l )δ ad ) + ( Cl )δ a dδ rd + I r zx pq + ( I y I z )qr + I zx --------------------------------------------------------------------------------------------------------------------------------------------------- qr I x (.3)

Non-linear Dynamic Inversion Applied to SHARC ṙ ----------------------------- q Sb Ω d s = + ( a Cn )δ dδ as + ( Cn )δ I --------- zx a dd δ rs + ( I r x I y )pq I I x I z z d q a Sb d Γ + (( C dδ l )δ as ) + ( Cl )δ a dδ rs + I r zx pq + ( I y I z )qr + I zx ------------------------------------------------------------------------------------------------------------------------------------------------- qr I x (.39) ṙ d = k r ( r d r) (.) Subtract (.39) from (.3) and use (.3): I zx d d ( k r ( r d r) ṙ s ) --------- I I x I z = q a Sb Cn ( δ z dδ ad δ as ) + Cn ( δ a dδ rd δ rs ) r (.) + I ------ zx I x d d Cl ( δ dδ ad δ as ) + Cl ( δ a dδ rd δ rs ) r Insert (.37) into (.) and solve for δ ad : --------- I k δ ad ------------------------------------- β ( β d β) β s I ------------------------------------ ( k dc n I ------ zx dc cos( α) r ) ṙ x I z z = s ----------------------------- + l q a Sb + dδ a I x d δa dc n I zx dc ------ l dc + δas ( δ dδ a I x d δa rd δ rs ) n I zx dc ------ l + dδ r I x d δr I zx (.) 9

Non-linear Dynamic Inversion Applied to SHARC There are now two equations where δ ad is solved for, (.33) and (.). Set those equations equal and solve for δ rd : k δ rd ---------------------------------------------------------------------------------------- ------------------------------------- β ( β d β) β s = ------------------------------------ dc l I ------ zx dc n dc n I ------ zx dc l dc + n I zx dc cos( α) dδ r I z d δr dδ ------------------------------------- r I x d δr ------ l + + ------------------------------------- dδ a I x d δa d I zx dc Cl ------ n d I zx dc + Cn ------ l + dδ a I z d δa dδ a I x d δa (.3) ( k r ) ṙ s I zx --------- I I x I z z dc ----------------------------- n I zx dc ------ l dc + n I zx dc δas ------ l + + + δrs q a Sb dδ a I x d δa dδ r I x d δr --------- I I x I x z dc ------------------------------------- ( k p ( p d p) ṗ s )----------------------------- l I zx dc ------ n + + dc l I ------ zx dc q n a Sb dδ a I z d δa + dδ a I x d δa I zx δas + dc l I zx dc ------ n + dδ r I z d δr δrs Equations (.9), (.33), and (.3) are used during simulation. As can be seen, these equations are less complicated than those generated by the design methods Pure Nonlinear Dynamic Inversion and Cascaded Non-linear Dynamic Inversion Method One. 3

Non-linear Dynamic Inversion Applied to SHARC. Control of the Load Factor At high speed, the load factor n z is controlled. The control signals in this section can be used together with the earlier calculated control signals in longitudinal and lateral mode. Preferably, there would be an expression for ṅ z so the desired dynamics could be demanded in the same way as for the other derivatives, that is ṅ zd = k nz ( n zd n z ) One expression looks like: ṅ z L ------- mg = q a SĊ L --------------- mg (.) One would prefer to have n z in an outer loop and the pitch rate q in an inner loop. Therefore equation (.) must contain q in some way. An expression for Ċ L is presented below, see also (.), (.), and (.). Ċ L = dc L dα dα dt + dc L dβ dβ dt + dc L dα d α dt + There are already equations for α and β but there may be problems with the other expressions. Therefore, less complicated alternatives will instead be investigated... Control of the Load Factor by the Angle of Attack One way to control n z is to command a desired n z, transform the demand into a desired α, and then control α with the same controller as before. The task is now to find an expression that relates n z to α, as: n zd = k α d + m An expression for n z is presented below, see also (.). L q n z ------- a SC L q --------------- a S dc -------- Lα = C mg mg mg L + dα Substituting n zd and α d for n z and α, and solving for α d yields: mg --------n q a S zd C L α d -------------------------------- dc L dα (.) (.) In (.) the following equations are needed: 3

Non-linear Dynamic Inversion Applied to SHARC dc L dα = dc T dc N sin( α) C dα T cos( α) + cos( α) C dα N sin( α) dc Lα C L = C L dα (.7) (.) where and dc N dα = d CN ( M, αβ, ) dα + d CN ( α ) dα d + CN ( q) + dα d CN ( δ dα e ) dc T dα = d CT ( M, αβ, ) dα + d CT ( δ dα a ) d + CT ( δ dα r ) + d CT ( δ dα e ) Equation (.) is implemented in the simulation environment... Control of the Load Factor by the Elevator In this section a n z -controller that do not use an α-controller is calculated. Use (.), (.), and (.). If the angle of attack is small, sin(α) can be approximated by zero. d C N ( M, αβ, ) + C N ( α ) + C N ( q) + CN ( δ dδ e )δ e + C N e cos( α )q a S = n z mg Solving for the elevator δ e and substituting n zd for n z yields: n zd mg q -------------------------- δ a S cos( α) C ( M, αβ, ) C N N ( α ) C N ( q) C N e = ------------------------------------------------------------------------------------------------------------------------- d CN ( δ dδ e ) e (.9) This controller can also be calculated without the approximation where sin(α) is set to zero. Equation (.9) has been implemented in the simulation environment. Unfortunately the derivative in the denominator becomes zero after some simulation time. The problem is that the inputs to the tables, where the aerodynamic coefficients are calculated, get values that are not part of the tables. The result is that some aerodynamic coefficients are set to zero, which leads to division by zero. The underlying problem is that it is difficult to control n z or α without an inner loop that controls the pitch rate q.. Robustness One problem when the SHARC is controlled, is that the model of the system is not perfect and therefore a robust controller is needed. Analyzing the robustness of a system, the different coefficients can be changed to see how the system reacts. In this section 3

Non-linear Dynamic Inversion Applied to SHARC integrators will be added to the controllers that use the cascaded NDI approach. Another way to obtain a robust controller, is to use µ-synthesis, see [7], [], and []. Introduce an extra state that describes the difference between the desired signal r and measured signal y: ẋ n + = r y = r cx (.) In (.) the error is zero in stationarity and this is obtained (if stationarity is reached), even if there are model errors or disturbances. This is the integral action. The name derive from the fact that if (.) is integrated, it can be seen that the new state is an integration of the error. A common control signal that includes the state feedback matrix L and the new state x n+, is: u = l r Lx l n + x n + (.) With the control signal in (.) the resulting closed loop system becomes: ẋ A BL Bl n + x Bl = + r = Ãx + B r + C x n + ẋ n Decide l, l n+ and the matrix L by studying the poles of the closed loop system and place the poles so that the requirements regarding damping ratios, frequencies and time constants are fulfilled. The closed loop system without an integrator is presented in Figure. and the system that includes an integrator in Figure.3. l r + u - SHARC x y L Figure.: The system as a state feedback. l r + + + u y s l n+ SHARC - - x L Figure.3: An integrator added to the closed loop system. 33