mmp / vice

Virtual air traffic control simulator
https://pharr.org/vice
GNU General Public License v3.0
23 stars 33 forks source link

Improve IAS->TAS model, fix bugs from mixing them up #164

Closed mmp closed 6 months ago

mmp commented 6 months ago

The aircraft performance database uses TAS for cruise and maximum speed (as can be confirmed by cross-referencing e.g. https://contentzone.eurocontrol.int/aircraftperformance/details.aspx?ICAO=A320). Therefore, the struct fields in AircraftPerformance have been renamed to reflect that, and usage of them now goes through new IASToTAS and TASToIAS functions.

Those functions are now based on the proper barometric formula to compute relative air densities at the current altitude.

Fixes #158