Skip to content

F/A-18 C++ Simulator based off flight data from NASA's HARV program.

Notifications You must be signed in to change notification settings

willcmc/f18-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

F-18 Flight Dynamics and Simulation

  • Nonlinear model: AoA from -14° to +90°
  • FlightGear integration for visualization

Usage

Clone the repository using

git clone /~https://github.com/willcmc/f18-env.git

Install FlightGear by doing

sudo add-apt-repository ppa:saiarcot895/flightgear
sudo apt-get update
sudo apt-get install flightgear

Set your FG_HOME and FG_ROOT environment variables by doing the following

export FG_HOME=/home/`whoami`/.fgfs
export FG_ROOT=/usr/share/games/flightgear

In case your installation and home directories are different (due to building from source), you must make the appropriate changes.

Install the F-18 Addon (bundled in /Installs) by running the following in the top-level directory

cd Installs/
cp -R f18 $FG_HOME/Aircraft

The generic communication protocol for FlightGear provides a powerful way of adding a simple ASCII based or binary input/output protocol, just by defining an XML encoded configuration file and placing it in the $FG_ROOT/Protocol/ directory.

Copy the generic.xml in present in the f18-env/Cpp-env/fg/generic.xml to the $FG_ROOT/Protocol/

Assuming you are in parent directory of working directory f18-env, execute the following command

sudo cp f18-env/Cpp-env/fg/generic.xml $FG_ROOT/Protocol/

Make sure you are able to run FlightGear as a non-sudo user on the command line by trying fgfs.

The cpp codes are linked and built using a Makefile. Build the simulator using make. The main executable (currently) is ./build/fdm, so the main code can be executed using ./build/fdm while in the Cpp-env folder.

William E. Retnaraj

About

F/A-18 C++ Simulator based off flight data from NASA's HARV program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •