Abstract Title of dissertation: MODELING AND SYSTEM IDENTIFICATION OF AN ORNITHOPTER FLIGHT DYNAMICS MODEL Jared Grauer Doctor of Philosophy, 2012 Dissertation directed by: Langley Distinguished Professor James E. Hubbard, Jr. Department of Aerospace Engineering Ornithopters are robotic ight vehicles that employ apping wings to generate lift and thrust forces in a manner that mimics avian yers. At the small scales and Reynolds numbers currently under investigation for miniature aircraft where viscous e ects deteriorate the performance of conventional aircraft, ornithopters achieve e - cient ight by exploiting unsteady aerodynamic ow elds, making them well-suited for a variety of unmanned vehicle applications. Parsimonous dynamic models of these systems are requisite to augment stability and design autopilots for autonomous op- eration; however, apping ight is fundamentally di erent than other means of engi- neered ight and requires a new standard model for describing the ight dynamics. This dissertation presents an investigation into the ight mechanics of an ornithopter and develops a dynamical model suitable for autopilot design for this class of system. A 1.22 m wing span ornithopter test vehicle was used to experimentally investigate apping wing ight. Flight data, recorded in trimmed straight and level mean ight using a custom avionics package, reported pitch rates and heave accelerations up to 5.62 rad/s and 46.1 m/s2 in amplitude. Computer modeling of the vehicle geometry revealed a 0.03 m shift in the center of mass, up to a 53.6% change in the moments of inertia, and the generation of signi cant inertial forces. These ndings justi ed a nonlinear multibody model of the vehicle dynamics, which was derived using the Boltzmann-Hamel equations. Models for the actuator dynamics, tail aerodynamics, and wing aerodynamics, di cult to obtain from rst principles, were determined using system identi cation techniques with experimental data. A full nonlinear ight dynamics model was developed and coded in both Matlab and Fortran programming languages. An optimization technique is introduced to nd trim solutions, which are de ned as limit cycle oscillations in the state space. Numerical linearization about straight and level mean ight resulted in both a canonical time-invariant model and a time- periodic model. The time-invariant model exhibited an unstable spiral mode, stable roll mode, stable dutch roll mode, a stable short period mode, and an unstable short period mode. Floquet analysis on the identi ed time-periodic model resulted in an equivalent time-invariant model having an unstable second order and two stable rst order modes, in both the longitudinal and lateral dynamics. MODELING AND SYSTEM IDENTIFICATION OF AN ORNITHOPTER FLIGHT DYNAMICS MODEL by Jared A. Grauer Dissertation submitted to the Faculty of the Graduate School of the University of Maryland, College Park in partial ful llment of the requirements for the degree of Doctor of Philosophy 2012 Advisory Committee: Professor James E. Hubbard, Jr., Chair/Advisor Professor Amr Baz Professor J. Sean Humbert Professor Darryll Pines Professor Robert Sanner c Copyright by Jared A. Grauer 2012 Preface This research was funded in part by the National Aeronautics and Space Admin- istration (Nasa) Langley Distinguished Professor grant and by the Army Research Laboratory (ARL) Micro Autonomous Systems and Technology (Mast) Collabora- tive Technology Alliance (CTA). ii Dedication For my family iii Acknowledgments Working towards a graduate degree over a signi cant duration of time while dis- tributed among a consortium of institutions, one naturally accrues an unwieldy list of people to whom they are thankfully indebted. In this section I humbly attempt to express my gratitude to those who have most helped me in this journey. Firstly, I am extremely fortunate to have had Dr. James E. Hubbard Jr. as a mentor, advisor, teacher, and friend. His patience, enthusiasm, and outlook on life remain a constant inspiration to me, and his wisdom has strengthened me during the times when it was needed most. Furthermore, he has provided a great deal of academic encouragement and freedom in my work, as well as a nurturing and team- oriented environment in which to pursue it. My best wishes for him and his family. I have had a generous committee and a helpful faculty supporting me in this research. Dr. Amr Baz and Dr. Alison Flatau, in addition to their years of advising, have graciously provided to me coveted real estate in their o ces and laboratories. Dr. Darryll Pines has always met me with an enthusiastic, encouraging interest in my work. Dr. Eugene Morelli has spent numerous hours coaching me on system identi cation methods and discussing experimental results. Dr. Sean Humbert has treated me as a member of his own research group, supplying equipment vital to this work and nding always the time to pour over experimental results and speculate on their meanings. Dr. Robert Sanner is responsible for awakening my interest in dynamics and control, and for helping me strive to do my best work. I very much appreciate the extraordinary amount of e ort he has put into my coursework and our research discussions. Dr. Ella Atkins has given me my most practical and frequently used engineering skills, and warmly remains the audience member at conferences who asks the hardest questions. Equally as helpful has been the support of lab mates and friends in the Morpheus Lab, the Autonomous Vehicle Lab, and the Rotorcraft Center. Morpheus members of \Gen 1" (Nelson Guerreiro, Robyn Harmon, Benjamin Nickless, Geo Slipher, and Sandra Ugrina) and \Gen 2" (Cornelia Altenbuchner, Alex Brown, and Aimy Wissa) have comprised what I can truly only describe as a wolf pack of a research group. The Autonomous Vehicle Lab has served as a second home for me, and I am most thankful to members Joseph Conroy, Imraan Faruque, and Evan Ulrich for their years of friendship and comradery. Among all the many Rotorcraft Center members who have enriched my graduate experience, I am most indebted to Brandon Bush, Chen Friedman, and Kan Yang for their inspiration across many dimensions, and to J urgen Rauleder and Zohreh Ghorbani for my most cherished of friendships. Providing perhaps a hidden layer of support has been the unconditional endorse- ment of my family. My father, Lawrence Grauer, has instilled in me the patience and work ethic needed to complete this degree, while my mother, Barbara Grauer, has fed the soul needed to endure this degree. A vital part of this journey has been the support of my sisters, Kathryn and Jennifer Grauer, who have provided caring ears and a welcomed comic relief. Grandparents, aunts, uncles, and cousins have also cheered me along the way, and I feel especially lucky to have such a large and strong family behind me. iv Lastly, this section would belie its title without avowing the help of Shelby Dennis and her family over the past years. Shelby breathed a purpose and motivation into this work that alone I could not respire. Furthermore, the Tasmanian devil that often resulted from the occupational hazards of graduate school was gracefully met with a contagious warmth that quickly melted troubles into a calmed happiness. v Contents List of Tables viii List of Figures ix Nomenclature x 1 Introduction 1 1.1 Background and Motivation . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Bio-Inspired Flapping Wing Aircraft . . . . . . . . . . . . . . . . . . 2 1.3 Flapping Wing Literature Review . . . . . . . . . . . . . . . . . . . . 3 1.3.1 Vehicle Design . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3.2 Aerodynamics Modeling . . . . . . . . . . . . . . . . . . . . . 5 1.3.3 Vehicle Dynamics Modeling . . . . . . . . . . . . . . . . . . . 6 1.3.4 Feedback Control . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.4 Scope and Contributions of Current Research . . . . . . . . . . . . . 7 2 Ornithopter Test Platform Characterizations 10 2.1 Mathematical Representation of an Aircraft . . . . . . . . . . . . . . 10 2.2 Ornithopter Aircraft Description . . . . . . . . . . . . . . . . . . . . . 12 2.3 Measurements from Flight Data . . . . . . . . . . . . . . . . . . . . . 15 2.3.1 Experimental Setup . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.2 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.4 Con guration-Dependent Mass Distribution . . . . . . . . . . . . . . 17 2.5 Quasi-Hover Aerodynamics . . . . . . . . . . . . . . . . . . . . . . . . 22 2.6 Implications for Flight Dynamics Modeling . . . . . . . . . . . . . . . 24 2.7 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3 Rigid Multibody Vehicle Dynamics 27 3.1 Model Con guration . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.2 Kinematic Equations of Motion . . . . . . . . . . . . . . . . . . . . . 30 3.3 Dynamic Equations of Motion . . . . . . . . . . . . . . . . . . . . . . 31 3.3.1 Inertial E ects . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.3.2 Nonlinear Coupling E ects . . . . . . . . . . . . . . . . . . . . 35 3.3.3 Gravitational E ects . . . . . . . . . . . . . . . . . . . . . . . 35 3.4 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 vi 4 System Identi cation of Aerodynamic Models 37 4.1 System Identi cation Method . . . . . . . . . . . . . . . . . . . . . . 37 4.2 Tail Aerodynamics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4.2.1 Experimental Setup . . . . . . . . . . . . . . . . . . . . . . . . 38 4.2.2 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 4.3 Wing Aerodynamics . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 4.3.1 Experimental Setup . . . . . . . . . . . . . . . . . . . . . . . . 43 4.3.2 Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 4.3.3 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 4.4 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 5 Simulation Results 54 5.1 Software Simulation Architecture . . . . . . . . . . . . . . . . . . . . 54 5.2 Determining Trim Solutions . . . . . . . . . . . . . . . . . . . . . . . 56 5.3 Numerical Linearization about Straight and Level Mean Flight . . . . 59 5.3.1 Linear Time-Invariant Model . . . . . . . . . . . . . . . . . . 62 5.3.2 Linear Time-Periodic Model . . . . . . . . . . . . . . . . . . . 64 5.4 Modeling Implications for Control . . . . . . . . . . . . . . . . . . . . 70 5.5 Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 6 Concluding Remarks 75 6.1 Summary of Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.2 Summary of Modeling Assumptions . . . . . . . . . . . . . . . . . . . 76 6.3 Summary of Original Contributions . . . . . . . . . . . . . . . . . . . 76 6.4 Recommendations for Future Research . . . . . . . . . . . . . . . . . 77 A Field Calibration of Inertial Measurement Units 80 A.1 Theory and Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 A.2 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 B Actuator Dynamics System Identi cation 85 B.1 Experimental Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 B.2 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 B.3 Coupling to Vehicle Dynamics . . . . . . . . . . . . . . . . . . . . . . 89 C Equations of Motion for Single-Body Flight Vehicles 90 D Linearization of a Conventional Aircraft Model 93 vii List of Tables 2.1 Aircraft parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.2 Avionics measurement speci cations . . . . . . . . . . . . . . . . . . 16 3.1 Multibody model mass properties . . . . . . . . . . . . . . . . . . . . 28 4.1 Tail aerodynamic parameters and standard errors . . . . . . . . . . . 42 4.2 Marker position, rigid body position, and rigid body orientation stan- dard errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 4.3 Wing aerodynamic parameters and standard errors . . . . . . . . . . 52 5.1 Modal parameters of the decoupled linear time-invariant model . . . . 66 5.2 Estimated parameters and standard errors for the decoupled linear time-periodic model . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 5.3 Modal parameters of the decoupled linear time-periodic model . . . . 71 A.1 Measurement speci cations for avionics and visual positioning system 81 A.2 IMU calibration estimates and standard errors . . . . . . . . . . . . . 84 B.1 Actuator system identi cation measurement speci cations . . . . . . 85 B.2 DC motor parameter estimates and standard errors . . . . . . . . . . 86 B.3 Servo motor parameter estimates and standard errors . . . . . . . . . 89 D.1 Modal parameters of the decoupled F-16 linear model . . . . . . . . . 95 viii List of Figures 1.1 Flight control architecture block diagram . . . . . . . . . . . . . . . . 2 1.2 Forces acting on an avian wing section, as viewed from a body- xed reference frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.1 An annotated generic aircraft . . . . . . . . . . . . . . . . . . . . . . 11 2.2 Ornithopter ight test platform . . . . . . . . . . . . . . . . . . . . . 13 2.3 Ornithopter planform geometries . . . . . . . . . . . . . . . . . . . . 14 2.4 Custom avionics board used to record ight data . . . . . . . . . . . 15 2.5 Ensemble averages of ight data with two standard deviation error bounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.6 Power spectrum of ight data . . . . . . . . . . . . . . . . . . . . . . 19 2.7 Ornithopter mass distribution contributions . . . . . . . . . . . . . . 20 2.8 Mass distribution due to wing position variation . . . . . . . . . . . . 21 2.9 Moment of inertia rates due to apping between 0 Hz and 10 Hz . . . 22 2.10 Quasi-hover test experimental setup [17] . . . . . . . . . . . . . . . . 23 2.11 Representative thrust and lift measurements while apping at 4.7 Hz 24 2.12 Ornithopter open-loop ight dynamics model block diagram . . . . . 25 3.1 Generic rigid body linkage i on chain j . . . . . . . . . . . . . . . . . 28 3.2 Multibody ornithopter model schematic . . . . . . . . . . . . . . . . . 29 4.1 Wind tunnel test experimental setup for tail aerodynamics modeling . 39 4.2 Flow states from four concatenated wind tunnel tests used for modeling the tail aerodynamics . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4.3 Tail aerodynamic model ts . . . . . . . . . . . . . . . . . . . . . . . 42 4.4 Tail aerodynamics model prediction case . . . . . . . . . . . . . . . . 43 4.5 Flight testing experimental setup for wing aerodynamics modeling . . 44 4.6 Retro-re ective marker locations on the ornithopter . . . . . . . . . . 45 4.7 Rigid body ornithopter geometry t to retro-re ective marker data . 46 4.8 Longitudinal state variable measurements from ight data . . . . . . 47 4.9 Force and moment magnitudes over a wing stroke . . . . . . . . . . . 48 4.10 Scalar measurement distributions over a wing stroke . . . . . . . . . . 50 4.11 Parameter estimation of wing aerodynamic models using equation- error in the time and frequency domains . . . . . . . . . . . . . . . . 51 4.12 Wing aerodynamic model prediction case . . . . . . . . . . . . . . . . 52 ix 5.1 Software simulation block diagram . . . . . . . . . . . . . . . . . . . 55 5.2 Optimization results for nding limit cycle trim trajectories . . . . . . 58 5.3 Variations in trim characteristics with apping frequency . . . . . . . 58 5.4 Limit cycle oscillations for apping frequencies between 4 Hz and 10 Hz 60 5.5 Trimmed ight trajectory solution . . . . . . . . . . . . . . . . . . . . 61 5.6 Linear time-invariant model pole locations . . . . . . . . . . . . . . . 64 5.7 Linear time-invariant model Eigenvector polar plots . . . . . . . . . . 65 5.8 Numerically linearized (solid) and curve tted (dashed) decoupled sys- tem matrix element time histories over one wing stroke . . . . . . . . 68 5.9 Linear time-periodic model pole locations . . . . . . . . . . . . . . . . 70 5.10 Periodic control gains designed for the LTP system using LQR . . . . 72 A.1 IMU calibration method block diagram . . . . . . . . . . . . . . . . . 81 A.2 Uncalibrated 16 bit IMU measurements from a roll-pitch-yaw maneuver 82 A.3 Calibrated magnetometer and accelerometer signals with centered spheres 83 A.4 Model t to the attitude kinematic equation using equation-error . . 84 B.1 Actuators and instrumented test stand . . . . . . . . . . . . . . . . . 86 B.2 Measurements used for actuator system identi cation . . . . . . . . . 87 B.3 Model ts for actuator dynamics using equation-error and output-error in the time and frequency domains . . . . . . . . . . . . . . . . . . . 88 D.1 Linearized F-16 model pole locations . . . . . . . . . . . . . . . . . . 94 x Nomenclature Throughout this document, scalar mathematical symbols are represented by lower case characters, vectors by lower case bold characters, and matrices by upper case bold characters. Di erentiation of a scalar quantity by a column vector results in a row vector. Roman Symbols A, B linear system matrices AR aspect ratio a(p;v) generalized aerodynamic forces a acceleration vector b wing span C(p;v) dynamic coupling matrix Cij, Kij center of mass location and reference frame Cx, Cy, Cz force coe cient components Cl, Cm, Cn moment coe cient components C controllability matrix c mean aerodynamic chord ex, ey, ez elementary unit vectors Ff:g Fourier transform f frequency ff , Tf apping frequency and period g(p) generalized gravitational forces g acceleration vector due to gravity h magnetic eld vector I inertia tensor I identity matrix =f:g,