SlideShare a Scribd company logo
1 of 28
Aerodynamic Analysis and Design Lab.
Flight Simulation Seminar
Wai Nwe Tun
23rd January, 2017
Flight Simulation Codes
Aerodynamic Analysis and Design Lab.
Contents
2
 Flight Simulation Environment
 Flight Simulator
• Characteristics
• Software architecture
– Structural Modelling
 FlightGear Simulator
• Architecture
• fgMainInit function
 Flight Dynamics & Control (FDC) Toolbox
 Aerospace Blockset
Aerodynamic Analysis and Design Lab.
Flight Simulation Environment
3
 Needs at least three components
1) Input device such as yoke, rudder pedals, or even keyboard
2) Simulation environment
3) Graphic environment
 Simulation environment
• Full nonlinear and coupled aircraft
equations of motion are solved as
driven by the different forces and
moments acting on the aircraft
(Flight Dynamics Model)
1 2
3
Aerodynamic Analysis and Design Lab.
Flight Simulator: Characteristics
4
 Real-time performance constraints
• Flight simulators must meet hard real-time deadlines for fidelity and
coordination.
 Continuous development and modification
 Large size and high complexity
 Developed in geographically distributed areas
 Very expensive debugging, testing, and modification
 Unclear mapping between software structure and aircraft structure
Aerodynamic Analysis and Design Lab.
Generic Flight Simulator
5
Aerodynamic Analysis and Design Lab.
Software Architecture
6
 Focus that the software has both functional and non-functional qualities
which it must fulfill.
 Functional Requirements
• System functionalities
• What we want to do
• Easy to capture – tangible
(Laptop: certain applications can be installed and used.)
 Non-functional Requirements
• System properties
• How we need to do
• Not easy to capture – intangible
(Laptop: persistence, cost, performance)
Image source: https://s-media-cache-ak0.pinimg.com/236x/eb/a6/4c/eba64c8d3572d4340879a27066f0117e
Aerodynamic Analysis and Design Lab.
Software Architecture
7
 Traditionally, when satisfying system’s requirements, engineers try to
solve functional requirements first.
 For complex systems like flight simulators, engineers must first consider
how their system will meet its non-functional goals by which architecture
and then how to implement the desired functionality within that
architecture.
• Structural modeling
 Deal with systems at the level of
• computational components,
• their connections,
• their patterns of structure, and
• their restrictions on usage.
Aerodynamic Analysis and Design Lab.
Flight Simulator: ABC
8
ABC – Architecture Business Cyc
Aerodynamic Analysis and Design Lab.
Structural Modeling
9
 A reusable collection of software structures (objects) of levels of
abstraction proving the basis from which flight simulator software is
derived.
 Includes an object-oriented design to model the subsystems and
controllers and adds them real-time scheduling to control the execution
order of subsystems.
 Properly limits
• Unconstrained communication/data passing which object-oriented
programming affords
• Types of objects from which a system may be constructed and how these
types may be composed.
Aerodynamic Analysis and Design Lab.
Flight Simulator: Structural Modeling
10
 The FS architecture can be divided into two phases: executive and
application.
 The executive handles coordination (i.e., creation, communication,
synchronization) issues such as real-time scheduling, event
management, data sharing, data integrity by:
• Periodic sequencer
• Event handler
• Timeline synchronizer
 The application handles
computation:
• Sub-systems
• Components
Aerodynamic Analysis and Design Lab.
Flight Simulator: Structural Modeling
11
Aerodynamic Analysis and Design Lab.
Flight Simulator: Structural Modeling
12
Piano roll – pre-defined
scheduling table
containing a list of sub-
system invocations
required to achieve the
desired mode.
Aerodynamic Analysis and Design Lab.
FlightGear Simulator
13
 The open source flight simulator FlightGear has come a long way since
first being showcased at LinuxWorld in San Jose.
 In April 1996, David Murr proposed a new flight simulator developed by
volunteers over the Internet. It was to be distributed free of charge via
the Internet and similar networks. Curt Olson made a multi-platform
release of FlightGear in July 1997.
 The FG architecture is based on an infinite loop called the “main loop”.
 Unlike the main loop of typical event-driven programs
• Runs in idle, polling for users’ inputs.
 FG main loop is responsible for periodically ordering components to
update themselves since many components are working in the
background, regardless of inputs.
Aerodynamic Analysis and Design Lab.
FlightGear Simulator
14
 With all components controlled from within
one loop, FlightGear was a single thread
application.
 Rendering is the most resource intensive
process and may cause frequency of main
loop to be slower than the frame rate.
 This effect the frequency at which other
components such as FDM can run.
 The core components must be run in a
time-critical manner.
Aerodynamic Analysis and Design Lab.
FlightGear Flight Simulator
15
 FlightGear code is refactored using MVC (Model-View-Controller)
architecture.
• A software architecture in which the data model, user interface, and control
logic are separated into distinct components.
 Under MVC scheme, FlightGear has two primary independent
components:
• one being an FDM, server, and
• the other rendering and controlling components, client.
Picture source: https://daveh.io/blog/the-model-view-controller-pattern
Aerodynamic Analysis and Design Lab.
FlightGear MVC Architecture
16
 Client
• Controller/view without any simulation calculation components
• Process inputs from user
• Forward them to the server, listen to the
servers and display objects in the scene
• Provide visual and audio cues to the user
and manage communications between user and
FDM
• Two threaded loops: handling I/O and rendering
 FDM Server
• Provide services to simulate the flight
dynamics and systems of multiple aircraft.
ModelView/Controller
Aerodynamic Analysis and Design Lab.
FlightGear: Main/main.cxx
17
Aerodynamic Analysis and Design Lab.
FlightGear: Main/main.cxx
18
Aerodynamic Analysis and Design Lab.
Flight Dynamics & Control Toolbox
19
 Open source developed by M.O. Rauw
 A MATLAB and Simulink-based software developed specifically for the
design and analysis of aircraft dynamics and control systems.
 Is implemented around a general nonlinear aircraft model developed
using a modular design approach.
 Features a detailed mathematical model for a general aviation aircraft
but can be easily reconfigured for that of any aircraft at the desired level
of accuracy with linear or non linear aerodynamic modeling.
Aerodynamic Analysis and Design Lab.
Flight Dynamics & Control Toolbox
20
Aerodynamic Analysis and Design Lab.
FDC Toolbox as AFCS Design Cycle
21AFCS: Automatic Flight Control Systems
Aerodynamic Analysis and Design Lab.
FDC Toolbox Library
22
Aerodynamic Analysis and Design Lab.
FDC Toolbox – Equations of Motion
23
Aerodynamic Analysis and Design Lab.
FDC Toolbox: Beaver’s Equations
24
Aerodynamic Analysis and Design Lab.
Aerospace Blockset
25
 Produced and distributed by the Mathworks
 Extends Simulink with blocks for modeling and
simulating aircrafts
 Presents a collection of features and blocks
for the solution of
• Aircraft equations of motion
• Modeling of all different forces and moments
 Visualize vehicle flight dynamics using
MATLAB graphics-based 3DoF and 6DoF
animation blocks or other third party.
Aerodynamic Analysis and Design Lab.
Aerospace Blockset
26
Aerodynamic Analysis and Design Lab.
References
27
 M. R. Napolitano, “Aircraft Dynamics from Modeling to Simulation,”
Chap. 9, 2011.
 A. Wesley, “Software Architecture in Practice 2nd Edition,” Chap. 8, 2003.
 AJ MacLeod et. al., “A New Architecture for FlightGear Flight Simulator”,
Technical Reports, 2006.
 M. Rauw, “FDC 1.2 – A Simulink Toolbox for Flight Dynamics and
Control Analysis,” 2001.
 R. Kazman, “Distributed Flight Simulation: A Challenge for Software
Architecture,” 1996.
 G. D. Abow et. al., “Structural Modeling: An Application Framework and
Development Process for Flight Simulators,” 1993.
 The FDC Toolbox, http://dutchroll.sourceforge.net/fdc.html
 FlightGear GitHub, https://github.com/FlightGear/flightgear
Aerodynamic Analysis and Design Lab.
Flight Simulation Seminar
Thank you!
28

More Related Content

What's hot

3. Types and applications of drones
3. Types and applications of drones3. Types and applications of drones
3. Types and applications of dronesDevender Singh Bohra
 
Everything About Aviation Charts
Everything About Aviation ChartsEverything About Aviation Charts
Everything About Aviation ChartsAhsan Zahid
 
AE 8302 EOA MCQ QUESTIONS AND ANSWERS
AE 8302 EOA MCQ QUESTIONS AND ANSWERSAE 8302 EOA MCQ QUESTIONS AND ANSWERS
AE 8302 EOA MCQ QUESTIONS AND ANSWERSviswanath@viswa
 
Vor navigation and_tracking
Vor navigation and_trackingVor navigation and_tracking
Vor navigation and_trackingdrbagwell
 
EASA Part-66 Module07 mcq's
EASA Part-66 Module07 mcq'sEASA Part-66 Module07 mcq's
EASA Part-66 Module07 mcq'sArmghan Saeed
 
FDR and CVR of Aircrafts
FDR and CVR of AircraftsFDR and CVR of Aircrafts
FDR and CVR of Aircraftsalpha_sherdil
 
FM-Basics Topics Wise Solutions | Q & A | Flight Mechanics | GATE Aerospace
FM-Basics Topics Wise Solutions | Q & A | Flight Mechanics | GATE AerospaceFM-Basics Topics Wise Solutions | Q & A | Flight Mechanics | GATE Aerospace
FM-Basics Topics Wise Solutions | Q & A | Flight Mechanics | GATE AerospaceAge of Aerospace
 
Flight control system
Flight control systemFlight control system
Flight control systemApoorv Anand
 
Flight control systems
Flight control systemsFlight control systems
Flight control systemsMuhammad Rehan
 
Aircraft control systems
Aircraft control systemsAircraft control systems
Aircraft control systemsSanjay Singh
 
Aircraft Fuel System
Aircraft Fuel System Aircraft Fuel System
Aircraft Fuel System PriyankaKg4
 
Artificial Feel in aircrafts
Artificial Feel in aircraftsArtificial Feel in aircrafts
Artificial Feel in aircraftsalpha_sherdil
 
USAF Fifth Gen fighter
USAF Fifth Gen fighterUSAF Fifth Gen fighter
USAF Fifth Gen fighterPrayukth K V
 
Final Report -Aircraft Design
Final Report -Aircraft DesignFinal Report -Aircraft Design
Final Report -Aircraft DesignThomas Spisak
 
aircraft static and dynamic stability,longitudinal and lateral
 aircraft static and dynamic stability,longitudinal and lateral aircraft static and dynamic stability,longitudinal and lateral
aircraft static and dynamic stability,longitudinal and lateralJini Raj
 

What's hot (20)

3. Types and applications of drones
3. Types and applications of drones3. Types and applications of drones
3. Types and applications of drones
 
Everything About Aviation Charts
Everything About Aviation ChartsEverything About Aviation Charts
Everything About Aviation Charts
 
AE 8302 EOA MCQ QUESTIONS AND ANSWERS
AE 8302 EOA MCQ QUESTIONS AND ANSWERSAE 8302 EOA MCQ QUESTIONS AND ANSWERS
AE 8302 EOA MCQ QUESTIONS AND ANSWERS
 
Aircraft Wing
Aircraft Wing Aircraft Wing
Aircraft Wing
 
Vor navigation and_tracking
Vor navigation and_trackingVor navigation and_tracking
Vor navigation and_tracking
 
Drones
DronesDrones
Drones
 
EASA Part-66 Module07 mcq's
EASA Part-66 Module07 mcq'sEASA Part-66 Module07 mcq's
EASA Part-66 Module07 mcq's
 
FDR and CVR of Aircrafts
FDR and CVR of AircraftsFDR and CVR of Aircrafts
FDR and CVR of Aircrafts
 
FM-Basics Topics Wise Solutions | Q & A | Flight Mechanics | GATE Aerospace
FM-Basics Topics Wise Solutions | Q & A | Flight Mechanics | GATE AerospaceFM-Basics Topics Wise Solutions | Q & A | Flight Mechanics | GATE Aerospace
FM-Basics Topics Wise Solutions | Q & A | Flight Mechanics | GATE Aerospace
 
Assy Rigging
Assy RiggingAssy Rigging
Assy Rigging
 
Flight control system
Flight control systemFlight control system
Flight control system
 
Weightandbalance
WeightandbalanceWeightandbalance
Weightandbalance
 
Flight control systems
Flight control systemsFlight control systems
Flight control systems
 
Basics of airplanes
Basics of airplanesBasics of airplanes
Basics of airplanes
 
Aircraft control systems
Aircraft control systemsAircraft control systems
Aircraft control systems
 
Aircraft Fuel System
Aircraft Fuel System Aircraft Fuel System
Aircraft Fuel System
 
Artificial Feel in aircrafts
Artificial Feel in aircraftsArtificial Feel in aircrafts
Artificial Feel in aircrafts
 
USAF Fifth Gen fighter
USAF Fifth Gen fighterUSAF Fifth Gen fighter
USAF Fifth Gen fighter
 
Final Report -Aircraft Design
Final Report -Aircraft DesignFinal Report -Aircraft Design
Final Report -Aircraft Design
 
aircraft static and dynamic stability,longitudinal and lateral
 aircraft static and dynamic stability,longitudinal and lateral aircraft static and dynamic stability,longitudinal and lateral
aircraft static and dynamic stability,longitudinal and lateral
 

Similar to Study for flight simulation environments

Supporting Flight Test And Flight Matching
Supporting Flight Test And Flight MatchingSupporting Flight Test And Flight Matching
Supporting Flight Test And Flight Matchingj2aircraft
 
Software Modeling and Verification
Software Modeling and VerificationSoftware Modeling and Verification
Software Modeling and VerificationRamnGonzlezRuiz2
 
An Algorithm Based Simulation Modeling For Control of Production Systems
An Algorithm Based Simulation Modeling For Control of Production SystemsAn Algorithm Based Simulation Modeling For Control of Production Systems
An Algorithm Based Simulation Modeling For Control of Production SystemsIJMER
 
SIMULATION-BASED APPLICATION SOFTWARE DEVELOPMENT IN TIME-TRIGGERED COMMUNICA...
SIMULATION-BASED APPLICATION SOFTWARE DEVELOPMENT IN TIME-TRIGGERED COMMUNICA...SIMULATION-BASED APPLICATION SOFTWARE DEVELOPMENT IN TIME-TRIGGERED COMMUNICA...
SIMULATION-BASED APPLICATION SOFTWARE DEVELOPMENT IN TIME-TRIGGERED COMMUNICA...IJSEA
 
Drone simulators, advancements and challenges
Drone simulators, advancements and challengesDrone simulators, advancements and challenges
Drone simulators, advancements and challengesNile University
 
Knowledge-based simulation model generation for control law design applied to...
Knowledge-based simulation model generation for control law design applied to...Knowledge-based simulation model generation for control law design applied to...
Knowledge-based simulation model generation for control law design applied to...Angelo State University
 
Controller Software Verification Using AVM Meta and HybridSAL
Controller Software Verification Using AVM Meta and HybridSALController Software Verification Using AVM Meta and HybridSAL
Controller Software Verification Using AVM Meta and HybridSALJoseph Porter
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Ankita Tiwari
 
A multidisciplinary teaching method in the aerospace engineering systems fiel...
A multidisciplinary teaching method in the aerospace engineering systems fiel...A multidisciplinary teaching method in the aerospace engineering systems fiel...
A multidisciplinary teaching method in the aerospace engineering systems fiel...Altair
 
Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon
 
MOD_Design_Implementation_Ch7_summary.pdf
MOD_Design_Implementation_Ch7_summary.pdfMOD_Design_Implementation_Ch7_summary.pdf
MOD_Design_Implementation_Ch7_summary.pdfTigabu Yaya
 
Model based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopModel based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopMahmoud Hussein
 

Similar to Study for flight simulation environments (20)

Supporting Flight Test And Flight Matching
Supporting Flight Test And Flight MatchingSupporting Flight Test And Flight Matching
Supporting Flight Test And Flight Matching
 
Software Modeling and Verification
Software Modeling and VerificationSoftware Modeling and Verification
Software Modeling and Verification
 
Ch10
Ch10Ch10
Ch10
 
Ch10
Ch10Ch10
Ch10
 
Ch7
Ch7Ch7
Ch7
 
Ch7
Ch7Ch7
Ch7
 
An Algorithm Based Simulation Modeling For Control of Production Systems
An Algorithm Based Simulation Modeling For Control of Production SystemsAn Algorithm Based Simulation Modeling For Control of Production Systems
An Algorithm Based Simulation Modeling For Control of Production Systems
 
SIMULATION-BASED APPLICATION SOFTWARE DEVELOPMENT IN TIME-TRIGGERED COMMUNICA...
SIMULATION-BASED APPLICATION SOFTWARE DEVELOPMENT IN TIME-TRIGGERED COMMUNICA...SIMULATION-BASED APPLICATION SOFTWARE DEVELOPMENT IN TIME-TRIGGERED COMMUNICA...
SIMULATION-BASED APPLICATION SOFTWARE DEVELOPMENT IN TIME-TRIGGERED COMMUNICA...
 
4213ijsea06
4213ijsea064213ijsea06
4213ijsea06
 
Drone simulators, advancements and challenges
Drone simulators, advancements and challengesDrone simulators, advancements and challenges
Drone simulators, advancements and challenges
 
Knowledge-based simulation model generation for control law design applied to...
Knowledge-based simulation model generation for control law design applied to...Knowledge-based simulation model generation for control law design applied to...
Knowledge-based simulation model generation for control law design applied to...
 
Controller Software Verification Using AVM Meta and HybridSAL
Controller Software Verification Using AVM Meta and HybridSALController Software Verification Using AVM Meta and HybridSAL
Controller Software Verification Using AVM Meta and HybridSAL
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.
 
Chap 03.pdf
Chap 03.pdfChap 03.pdf
Chap 03.pdf
 
A multidisciplinary teaching method in the aerospace engineering systems fiel...
A multidisciplinary teaching method in the aerospace engineering systems fiel...A multidisciplinary teaching method in the aerospace engineering systems fiel...
A multidisciplinary teaching method in the aerospace engineering systems fiel...
 
Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016
 
MOD_Design_Implementation_Ch7_summary.pdf
MOD_Design_Implementation_Ch7_summary.pdfMOD_Design_Implementation_Ch7_summary.pdf
MOD_Design_Implementation_Ch7_summary.pdf
 
Model based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopModel based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loop
 
MIL_SIL.pdf
MIL_SIL.pdfMIL_SIL.pdf
MIL_SIL.pdf
 
Ia rm001 -en-p
Ia rm001 -en-pIa rm001 -en-p
Ia rm001 -en-p
 

Recently uploaded

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 

Recently uploaded (20)

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 

Study for flight simulation environments

  • 1. Aerodynamic Analysis and Design Lab. Flight Simulation Seminar Wai Nwe Tun 23rd January, 2017 Flight Simulation Codes
  • 2. Aerodynamic Analysis and Design Lab. Contents 2  Flight Simulation Environment  Flight Simulator • Characteristics • Software architecture – Structural Modelling  FlightGear Simulator • Architecture • fgMainInit function  Flight Dynamics & Control (FDC) Toolbox  Aerospace Blockset
  • 3. Aerodynamic Analysis and Design Lab. Flight Simulation Environment 3  Needs at least three components 1) Input device such as yoke, rudder pedals, or even keyboard 2) Simulation environment 3) Graphic environment  Simulation environment • Full nonlinear and coupled aircraft equations of motion are solved as driven by the different forces and moments acting on the aircraft (Flight Dynamics Model) 1 2 3
  • 4. Aerodynamic Analysis and Design Lab. Flight Simulator: Characteristics 4  Real-time performance constraints • Flight simulators must meet hard real-time deadlines for fidelity and coordination.  Continuous development and modification  Large size and high complexity  Developed in geographically distributed areas  Very expensive debugging, testing, and modification  Unclear mapping between software structure and aircraft structure
  • 5. Aerodynamic Analysis and Design Lab. Generic Flight Simulator 5
  • 6. Aerodynamic Analysis and Design Lab. Software Architecture 6  Focus that the software has both functional and non-functional qualities which it must fulfill.  Functional Requirements • System functionalities • What we want to do • Easy to capture – tangible (Laptop: certain applications can be installed and used.)  Non-functional Requirements • System properties • How we need to do • Not easy to capture – intangible (Laptop: persistence, cost, performance) Image source: https://s-media-cache-ak0.pinimg.com/236x/eb/a6/4c/eba64c8d3572d4340879a27066f0117e
  • 7. Aerodynamic Analysis and Design Lab. Software Architecture 7  Traditionally, when satisfying system’s requirements, engineers try to solve functional requirements first.  For complex systems like flight simulators, engineers must first consider how their system will meet its non-functional goals by which architecture and then how to implement the desired functionality within that architecture. • Structural modeling  Deal with systems at the level of • computational components, • their connections, • their patterns of structure, and • their restrictions on usage.
  • 8. Aerodynamic Analysis and Design Lab. Flight Simulator: ABC 8 ABC – Architecture Business Cyc
  • 9. Aerodynamic Analysis and Design Lab. Structural Modeling 9  A reusable collection of software structures (objects) of levels of abstraction proving the basis from which flight simulator software is derived.  Includes an object-oriented design to model the subsystems and controllers and adds them real-time scheduling to control the execution order of subsystems.  Properly limits • Unconstrained communication/data passing which object-oriented programming affords • Types of objects from which a system may be constructed and how these types may be composed.
  • 10. Aerodynamic Analysis and Design Lab. Flight Simulator: Structural Modeling 10  The FS architecture can be divided into two phases: executive and application.  The executive handles coordination (i.e., creation, communication, synchronization) issues such as real-time scheduling, event management, data sharing, data integrity by: • Periodic sequencer • Event handler • Timeline synchronizer  The application handles computation: • Sub-systems • Components
  • 11. Aerodynamic Analysis and Design Lab. Flight Simulator: Structural Modeling 11
  • 12. Aerodynamic Analysis and Design Lab. Flight Simulator: Structural Modeling 12 Piano roll – pre-defined scheduling table containing a list of sub- system invocations required to achieve the desired mode.
  • 13. Aerodynamic Analysis and Design Lab. FlightGear Simulator 13  The open source flight simulator FlightGear has come a long way since first being showcased at LinuxWorld in San Jose.  In April 1996, David Murr proposed a new flight simulator developed by volunteers over the Internet. It was to be distributed free of charge via the Internet and similar networks. Curt Olson made a multi-platform release of FlightGear in July 1997.  The FG architecture is based on an infinite loop called the “main loop”.  Unlike the main loop of typical event-driven programs • Runs in idle, polling for users’ inputs.  FG main loop is responsible for periodically ordering components to update themselves since many components are working in the background, regardless of inputs.
  • 14. Aerodynamic Analysis and Design Lab. FlightGear Simulator 14  With all components controlled from within one loop, FlightGear was a single thread application.  Rendering is the most resource intensive process and may cause frequency of main loop to be slower than the frame rate.  This effect the frequency at which other components such as FDM can run.  The core components must be run in a time-critical manner.
  • 15. Aerodynamic Analysis and Design Lab. FlightGear Flight Simulator 15  FlightGear code is refactored using MVC (Model-View-Controller) architecture. • A software architecture in which the data model, user interface, and control logic are separated into distinct components.  Under MVC scheme, FlightGear has two primary independent components: • one being an FDM, server, and • the other rendering and controlling components, client. Picture source: https://daveh.io/blog/the-model-view-controller-pattern
  • 16. Aerodynamic Analysis and Design Lab. FlightGear MVC Architecture 16  Client • Controller/view without any simulation calculation components • Process inputs from user • Forward them to the server, listen to the servers and display objects in the scene • Provide visual and audio cues to the user and manage communications between user and FDM • Two threaded loops: handling I/O and rendering  FDM Server • Provide services to simulate the flight dynamics and systems of multiple aircraft. ModelView/Controller
  • 17. Aerodynamic Analysis and Design Lab. FlightGear: Main/main.cxx 17
  • 18. Aerodynamic Analysis and Design Lab. FlightGear: Main/main.cxx 18
  • 19. Aerodynamic Analysis and Design Lab. Flight Dynamics & Control Toolbox 19  Open source developed by M.O. Rauw  A MATLAB and Simulink-based software developed specifically for the design and analysis of aircraft dynamics and control systems.  Is implemented around a general nonlinear aircraft model developed using a modular design approach.  Features a detailed mathematical model for a general aviation aircraft but can be easily reconfigured for that of any aircraft at the desired level of accuracy with linear or non linear aerodynamic modeling.
  • 20. Aerodynamic Analysis and Design Lab. Flight Dynamics & Control Toolbox 20
  • 21. Aerodynamic Analysis and Design Lab. FDC Toolbox as AFCS Design Cycle 21AFCS: Automatic Flight Control Systems
  • 22. Aerodynamic Analysis and Design Lab. FDC Toolbox Library 22
  • 23. Aerodynamic Analysis and Design Lab. FDC Toolbox – Equations of Motion 23
  • 24. Aerodynamic Analysis and Design Lab. FDC Toolbox: Beaver’s Equations 24
  • 25. Aerodynamic Analysis and Design Lab. Aerospace Blockset 25  Produced and distributed by the Mathworks  Extends Simulink with blocks for modeling and simulating aircrafts  Presents a collection of features and blocks for the solution of • Aircraft equations of motion • Modeling of all different forces and moments  Visualize vehicle flight dynamics using MATLAB graphics-based 3DoF and 6DoF animation blocks or other third party.
  • 26. Aerodynamic Analysis and Design Lab. Aerospace Blockset 26
  • 27. Aerodynamic Analysis and Design Lab. References 27  M. R. Napolitano, “Aircraft Dynamics from Modeling to Simulation,” Chap. 9, 2011.  A. Wesley, “Software Architecture in Practice 2nd Edition,” Chap. 8, 2003.  AJ MacLeod et. al., “A New Architecture for FlightGear Flight Simulator”, Technical Reports, 2006.  M. Rauw, “FDC 1.2 – A Simulink Toolbox for Flight Dynamics and Control Analysis,” 2001.  R. Kazman, “Distributed Flight Simulation: A Challenge for Software Architecture,” 1996.  G. D. Abow et. al., “Structural Modeling: An Application Framework and Development Process for Flight Simulators,” 1993.  The FDC Toolbox, http://dutchroll.sourceforge.net/fdc.html  FlightGear GitHub, https://github.com/FlightGear/flightgear
  • 28. Aerodynamic Analysis and Design Lab. Flight Simulation Seminar Thank you! 28