Skip to content

LaurieWired/XplaneFlightData

Repository files navigation

Xplane MFD Calculations

This repository contains flight calculation code for data published by the X-Plane Web API. It demonstrates the Joint Strike Fighter Air Vehicle C++ Coding Standards (JSF AV C++). The compliant/ directory contains code with numerous JSF Standard fixes, while non-compliant/ contains multiple major standard violation examples.

mfd_display

The main non-compliant code examples are marked with REMOVE BEFORE FLIGHT tags showing violations with:

  1. ExceptionsAV Rule 208
  2. RecursionAV Rule 119
  3. Dynamic Memory AllocationAV Rule 206

Build

# Build JSF-compliant version (default)
make

# Build non-compliant version
make non-compliant

Run

# Launch the MFD (requires X-Plane with Web API)
./run_mfd.sh

Calculators

Individual calculators can be run directly:

./wind_calculator 120 300 45
./flight_calculator 250 280 180 175 150 0.45 35000 34000 -500 65000 15 55 320 0.85
./turn_calculator 200 30 90
./vnav_calculator 35000 10000 100 450 -1800
./density_altitude_calculator 5000 25 150 170

About

Xplane Demo for JSF C++ Standard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published