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.
The main non-compliant code examples are marked with REMOVE BEFORE FLIGHT tags showing violations with:
- Exceptions — AV Rule 208
- Recursion — AV Rule 119
- Dynamic Memory Allocation — AV Rule 206
# Build JSF-compliant version (default)
make
# Build non-compliant version
make non-compliant# Launch the MFD (requires X-Plane with Web API)
./run_mfd.shIndividual 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