Jsbsim and Flightgear

Total Page:16

File Type:pdf, Size:1020Kb

Jsbsim and Flightgear DEVELOPMENT, ANALYSIS, AND IMPLICATIONS OF OPEN-SOURCE SIMULATIONS OF REMOTELY PILOTED AIRCRAFT by © Oihane Cereceda Cantarelo, B.Eng., M.Eng. A Doctoral Thesis submitted to the School of Graduate Studies In partial fulfillment of the requirements for the degree of Doctor of Philosophy Faculty of Engineering and Applied Science Memorial University of Newfoundland February 2020 St. John’s Newfoundland and Labrador Abstract In recent years, the use of Remotely Piloted Aircraft (RPAs) for diverse purposes has increased exponentially. As a consequence, the uncertainty created by situations turning into a threat for civilians has led to more restrictive regulations from national administrations such as Transport Canada. Their purpose is to safely integrate RPAs in the current airspace used for piloted aviation by evaluating Sense and Avoid (SAA) strategies and close encounters. The difficulty falls on having to rely on simulated environments because of the risk to the human pilot in the piloted aircraft. In the first part of this research, the technical difficulties associated with the development and study of RPA computer models are discussed. It explores the rationale behind using Open- Source Software (OSS) platforms for simulating RPAs as well as the challenges associated with interacting with OSS at graduate student level. A set of recommendations is proposed as the solution to improve the graduate student experience with OSS. In the second part, particular challenges related to the design of OSS computer models are addressed. Based on: (1) the differences and similarities between piloted and RPA flight simulators and (2) existing Verification and Validation (V&V) approaches, a validation method is presented as a solution to the subject of developing fixed-wing RPAs in OSS environments. This method is used to design two flight dynamics models with SAA applications. The first computer model is presented in tutorial format as a case study for the validation procedure whereas the second computer model is specific for testing SAA strategies. In the last part, one of the designed RPAs is integrated into a computer environment with a representative general i aircraft. From the simulated encounters, a diving avoidance manoeuvre on the RPA is developed. This performance is observed to analyze the consequences to the airspace. The implications of this research are seen from three perspectives: (1) the OSS challenges in graduate school are wide-spread across disciplines, (2) the proposed validation procedure is adaptable to fit any computer model and simulation scenario, and (3) the simulated OSS framework with an RPA computer model has served for testing preliminary SAA methods with close encounters with manned aircraft. ii Acknowledgements This thesis is dedicated to my parents, Luis Cereceda and Adelina Cantarelo, who always believed in my potential and made from me the person that I am today. To my family and dear friends, who encouraged me to stay strong during the most challenging times. This research would not have been possible without the financial support of the InnovateNL of Tourism, Culture, Industry and Innovation, Newfoundland and Labrador as part of the ArcticTECH research program. I would like to express my sincere gratitude to my supervisors, Dr. Siu O’Young and Dr. Luc Rolland, for their continuous support and assistance during my PhD program. Their motivation and knowledge were vital. I would also like to thank the rest of my thesis committee for their insightful comments and encouragement. I would like to express my very great appreciation to Dr. Itziar Cabanes and her team at the University of the Basque Country (UPV/EHU) during my research stay in the Faculty of Engineering in Bilbao. She is a true inspiration and her support and help were invaluable. During my program, I have worked with many brilliant graduate students who have been crucial in defining and developing this thesis. I am especially grateful to Danielle Quinn, with whom I shared countless discussions that contributed to shaping one of the chapters of this thesis. I thank my fellow colleagues Iryna Borshchova, Bruno Artacho, and Robert MacIsaac for the stimulating discussions and guidance they provided in the periods when I had lost all confidence. The various groups I have been involved with at Memorial University have become my second family. I want to thank each and every single one of the people I met through the MUN Mentors iii Program and Women in Science and Engineering Graduate Student Society for their encouragement aside of my research work, without which I could not have succeeded. Finally, this thesis would have not been possible without the unconditional support, patience and dedication of my partner, Dave Noseworthy, who was always there to cheer me up and encourage me to be positive. iv Table of Contents Abstract ........................................................................................................................................... i Acknowledgements ...................................................................................................................... iii Table of Contents .......................................................................................................................... v List of Figures ............................................................................................................................... ix List of Tables .............................................................................................................................. xiii List of Abbreviations .................................................................................................................. xv List of Appendices .................................................................................................................... xviii Chapter 1. Introduction ............................................................................................................... 1 1.1. Context of the Remotely Piloted Aircraft Systems Problem............................................ 2 1.2. The Relevance of Simulated Frameworks for Testing SAA Methods ............................. 5 1.3. Objectives of this Research .............................................................................................. 6 1.3.1. Application Scope ......................................................................................................... 8 1.3.2. Out of Scope .................................................................................................................. 9 1.4. Significance .................................................................................................................... 10 1.5. Thesis Outline ................................................................................................................ 11 Chapter 2. Background .............................................................................................................. 13 2.1. Remotely Piloted Aircraft: Definition, Context, and Requirements .............................. 14 2.2. Simulation Platforms: JSBSim and FlightGear .............................................................. 19 2.2.1. Existing Open-source FDM ......................................................................................... 20 2.2.2. JSBSim Open-source FDM ......................................................................................... 23 2.2.3. FlightGear Flight Simulator .................................................................................... 26 2.3. Theoretical Background: JSBSim FDM ........................................................................ 26 2.3.1. Frames of Reference ............................................................................................... 27 v 2.3.2. Forces and Moments ............................................................................................... 28 2.3.3. Equations of Motion ............................................................................................... 31 2.3.4. Propulsion ............................................................................................................... 33 2.3.5. Flight Control .......................................................................................................... 34 2.4. Computer Model Development ...................................................................................... 35 2.4.1. Validation methods for RPAs ...................................................................................... 40 2.5. Sense and Avoid Basis ................................................................................................... 41 2.5.1. Scope of the SAA application ..................................................................................... 42 2.6. Summary ........................................................................................................................ 43 Chapter 3. Open-Source Software in Aerospace with RPA Applications: Challenges and Solutions ....................................................................................................................................... 44 3.1. Basic Flight Simulator Framework ................................................................................ 45 3.2. Technical challenges of working on/with OSS in Academia ......................................... 48 3.2.1. Software in the Scientific World ............................................................................
Recommended publications
  • Free Software for the Modelling and Simulation of a Mini-UAV an Analysis
    Mathematics and Computers in Science and Industry Free Software for the Modelling and Simulation of a mini-UAV An Analysis Tomáš Vogeltanz, Roman Jašek Department of Informatics and Artificial Intelligence Tomas Bata University in Zlín, Faculty of Applied Informatics nám. T.G. Masaryka 5555, 760 01 Zlín, CZECH REPUBLIC [email protected], [email protected] Abstract—This paper presents an analysis of free software Current standards for handling qualities apply to only which can be used for the modelling and simulation of a mini- piloted aircraft and there are no specific standards for UAV UAV (Unmanned Aerial Vehicle). Every UAV design, handling qualities. Relevant article discussing dynamic stability construction, implementation and test is unique and presents and handling qualities for small UAVs is [4]. [2] different challenges to engineers. Modelling and simulation software can decrease the time and costs needed to development Any UAV system depends on its mission and range, of any UAV. First part of paper is about general information of however, most UAV systems include: airframe and propulsion the UAV. The fundamentals of airplane flight mechanics are systems, control systems and sensors to fly the UAV, sensors mentioned. The following section briefly describes the modelling to collect information, launch and recovery systems, data links and simulation of the UAV and a flight dynamics model. The to get collected information from the UAV and send main section summarizes free software for the modelling and commands to it, and a ground control station. [3] [5] simulation of the UAV. There is described the following software: Digital Datcom, JSBSim, FlightGear, and OpenEaagles.
    [Show full text]
  • Jsbsim Open Source Flight Dynamics Model in C++
    JSBSim www.jsbsim.org Open Source Flight Dynamics Model in C++ JSBSim is an open source software library that models the dynamics of flight of an aerospace vehicle. The library can be incorporated into larger simulation packages (such as FlightGear and OpenEaagles), or it can be called from a small standalone program to create a batch simulation tool. JSBSim has been in development and use since 1996, and has been built on all of the most popular platforms in use today including those running Linux, Macintosh, and Windows operating systems. JSBSim was conceived in 1996 as a lightweight, data- Input Output Features driven, non-linear, six degree-of-freedom (6DoF), batch simulation application aimed at modeling flight dynam- When running JSBSim in a standalone mode using the ics and control for aircraft. Since the earliest versions, basic driver program, one only needs to supply a script JSBSim has benefited from both the open source develop- name. Control inputs can be supplied to JSBSim from ment environment it has grown within, and the wide vari- within the script. ety of users that have contributed ideas for its continued improvement. It has been incorporated into larger, full- If the aircraft configuration file contains an input port featured, flight simulation applications and architectures specification, the user can also telnet into JSBSim. From (such as FlightGear and OpenEaagles), and has been used within the telnet interface, values of many parameters as a batch simulation tool in industry and academia. internal to JSBSim can be both read and set. The simula- tion itself can also be paused and resumed.
    [Show full text]
  • Progress on and Usage of the Open Source Flight Dynamics Model, Jsbsim
    AIAA Modeling and Simulation Technologies Conference AIAA 2009-5699 10 - 13 August 2009, Chicago, Illinois Progress on and Usage of the Open Source Flight Dynamics Model Software Library, JSBSim Jon S. Berndt* Engineering and Science Contract Group / Jacobs, Houston, Texas, 77573 Agostino De Marco† University of Naples, Federico II, Naples, Italy JSBSim is an open source software (OSS) flight dynamics model that can be incorporated into a larger flight simulation architecture (such as FlightGear, or OpenEaagles). It can also be run as a standalone batch application when linked with a stub routine. Since 2004, when JSBSim was formally introduced at the Modeling and Simulation Technology conference, many advances have taken place, and a variety of uses have been demonstrated. This paper will present updates on project status, an overview of XML configuration file format enhancements, details on recent improvements and design choices, and some basic examples of use. A discussion about interfacing JSBSim with Matlab as a Mex-Function or Simulink S-Function is included, followed by a deeper look at a representative usage case study. I. Introduction JSBSim is a high-fidelity, 6-DoF (Degree-of-Freedom), general purpose, flight dynamics model software library written in the C++ programming languages. The library routines propagate the simulated state of an aircraft given inputs provided via a script or issued from a larger simulation application. The inputs can be processed through arbitrary flight control laws, with the outputs generated being used to control the aircraft. Aircraft control and other systems, engines, etc. are all defined in various files in a codified XML format.
    [Show full text]
  • On Some Trim Strategies for Nonlinear Aircraft Flight Dynamics Models with the Open Source Software Jsbsim
    On Some Trim Strategies for Nonlinear Aircraft Flight Dynamics Models with the Open Source Software JSBSim James M. Goppert,⁽†⁾ Agostino De Marco,⁽*⁾ Inseok Hwang⁽†⁾ ⁽*⁾ JSBSim Development Team, University of Naples “Federico II”, Department of Aerospace Engineering (DIAS), dias.unina.it Aircraft Design & Aeroflightdynamics Group (ADAG) dias.unina.it/adag ⁽†⁾ School of Aeronautics and Astronautics, Purdue University West Lafayette, Indiana, USA engineering.purdue.edu/AAE CEAS 2011 — The International Conference of European Aerospace Societies, 25 October 2011, Venice, Italy Layout of the presentation • A quick introduction to JSBSim, an open source Flight Dynamics Model (FDM) software library • Implementation of a Trim algorithm for JSBSim, based on a probabilistic Nelder Mead solver. • An aicraft trimming/linearization GUI and an open source equivalent of the Matlab/Simulink aerospace toolbox. CEAS 2011 — The International Conference of European Aerospace Societies, 25 October 2011, Venice, Italy Layout of the presentation • A quick introduction to JSBSim, an open source Flight Dynamics Model (FDM) software library • Implementation of a Trim algorithm for JSBSim, based on a probabilistic Nelder Mead solver. • An aicraft trimming/linearization GUI and an open source equivalent of the Matlab/Simulink aerospace toolbox. CEAS 2011 — The International Conference of European Aerospace Societies, 25 October 2011, Venice, Italy JSBSim … why that name? Author and Development Team Lead: Jon S. Berndt JSBSim CEAS 2011 — The International Conference
    [Show full text]
  • Jsbsim Reference Manual V1.0
    JSBSim An open source, platform-independent, flight dynamics model in C++ Jon S. Berndt and the JSBSim Development Team JSBSim An open source, platform-independent, flight dynamics model in C++ Jon S. Berndt & the JSBSim Development Team Copyright © 2011 Jon S. Berndt, All Rights Reserved. [This version released on:6/9/2011] ACKNOWLEDGEMENTS This software is the result of work done by many people over the years. Tony Peden has been contributing to the growth of JSBSim almost from day 1. He is responsible for the initialization and trimming code. Tony also incorporated David Megginson's property system into JSBSim. Tony hails from Ohio State University, with a degree in Aero and Astronautical Engineering. David Culp developed the turbine model for JSBSim, and crafted several aircraft models that use it including the T-38. David has experience flying many types of military and commercial aircraft, including the T-38, and the Boeing 707, 727, 737, 757, 767, the SGS 2-32, and the OV-10. David is an aerospace engineer, a graduate from the U.S. Air Force Academy. David Megginson came from a long involvement as a core FlightGear developer. David correlated our flight dynamics with his general aviation flying experience to aid in maximum realism, among other things. David designed the property system that both FlightGear and JSBSim use. He is well known for his contributions to XML technology, and wrote the easyXML parser that both FlightGear and JSBSim use. Erik Hofman has done a bit of everything, hunting down aircraft data, creating flight models (F-16), and performing some programming.
    [Show full text]
  • Application Specific Drone Simulators: Recent Advances And
    Application Specific Drone Simulators: Recent Advances and Challenges Aakif Mairaja, Asif I. Babab, Ahmad Y. Javaida,∗ a2801 W. Bancroft St MS 308, The University of Toledo, Toledo, 43606, USA b1200 W Montgomery Rd, Tuskegee University, Tuskegee, AL 36088, USA Abstract Over the past two decades, Unmanned Aerial Vehicles (UAVs), more commonly known as drones, have gained a lot of attention, and are rapidly becoming ubiquitous because of their diverse applications such as surveillance, disaster management, pollution monitoring, film-making, and military reconnaissance. How- ever, incidents such as fatal system failures, malicious attacks, and disastrous misuses have raised concerns in the recent past. Security and viability concerns in drone-based applications are growing at an alarming rate. Besides, UAV networks (UAVNets) are distinctive from other ad-hoc networks. Therefore, it is necessary to address these issues to ensure proper functioning of these UAVs while keeping their uniqueness in mind. Furthermore, adequate security and functionality require the consideration of many parameters that may include an accurate cognizance of the working mechanism of vehicles, geographical and weather conditions, and UAVNet communication. This is achievable by creating a simulator that includes these aspects. A performance evaluation through relevant drone simulator becomes indispensable procedure to test features, configurations, and designs to demonstrate superiority to comparative schemes and suitability. Thus, it be- comes of paramount importance to establish the credibility of simulation results by investigating the merits and limitations of each simulator prior to selection. Based on this motivation, we present a comprehensive survey of current drone simulators. In addition, open research issues and research challenges are discussed and presented.
    [Show full text]