]> git.mxchange.org Git - flightgear.git/blob - src/FDM/YASim/Atmosphere.hpp
Initial revision of Andy Ross's YASim code. This is (Y)et (A)nother Flight
[flightgear.git] / src / FDM / YASim / Atmosphere.hpp
1 #ifndef _ATMOSPHERE_HPP
2 #define _ATMOSPHERE_HPP
3
4 namespace yasim {
5
6 class Atmosphere {
7 public:
8     static float getStdTemperature(float alt);
9     static float getStdPressure(float alt);
10     static float getStdDensity(float alt);
11
12     static float calcVCAS(float spd, float pressure, float temp);
13     static float calcVEAS(float spd, float pressure, float temp);
14     static float calcMach(float spd, float temp);
15     static float calcDensity(float pressure, float temp);
16
17 private:
18     static float getRecord(float alt, int idx);
19     static float data[][4];
20 };
21
22 }; // namespace yasim
23 #endif // _ATMOSPHERE_HPP