1
0
Fork 0

Cleanup from Norman Vine to prevent compiler warnings. He also writes:

Note I believe there was a 'missing comma' in the next to last row also
This commit is contained in:
david 2002-12-30 22:21:31 +00:00
parent c153e21174
commit cf3e79ee46
2 changed files with 48 additions and 48 deletions

View file

@ -285,29 +285,29 @@ FGEnvironment::set_elevation_ft (double e)
// Elevation (ft), temperature factor (degK), pressure factor (inHG)
static double atmosphere_data[][3] = {
0.00, 1.00, 1.000,
2952.76, 0.98, 0.898,
5905.51, 0.96, 0.804,
8858.27, 0.94, 0.719,
11811.02, 0.92, 0.641,
14763.78, 0.90, 0.570,
17716.54, 0.88, 0.506,
20669.29, 0.86, 0.447,
23622.05, 0.84, 0.394,
26574.80, 0.82, 0.347,
29527.56, 0.80, 0.304,
32480.31, 0.78, 0.266,
35433.07, 0.76, 0.231,
38385.83, 0.75, 0.201,
41338.58, 0.75, 0.174,
44291.34, 0.75, 0.151,
47244.09, 0.75, 0.131,
50196.85, 0.75, 0.114,
53149.61, 0.75, 0.099,
56102.36, 0.75, 0.086,
59055.12, 0.75, 0.075,
62007.87, 0.75, 0.065,
-1, -1, -1
{ 0.00, 1.00, 1.000 },
{ 2952.76, 0.98, 0.898 },
{ 5905.51, 0.96, 0.804 },
{ 8858.27, 0.94, 0.719 },
{ 11811.02, 0.92, 0.641 },
{ 14763.78, 0.90, 0.570 },
{ 17716.54, 0.88, 0.506 },
{ 20669.29, 0.86, 0.447 },
{ 23622.05, 0.84, 0.394 },
{ 26574.80, 0.82, 0.347 },
{ 29527.56, 0.80, 0.304 },
{ 32480.31, 0.78, 0.266 },
{ 35433.07, 0.76, 0.231 },
{ 38385.83, 0.75, 0.201 },
{ 41338.58, 0.75, 0.174 },
{ 44291.34, 0.75, 0.151 },
{ 47244.09, 0.75, 0.131 },
{ 50196.85, 0.75, 0.114 },
{ 53149.61, 0.75, 0.099 },
{ 56102.36, 0.75, 0.086 },
{ 59055.12, 0.75, 0.075 },
{ 62007.87, 0.75, 0.065 },
{ -1, -1, -1 }
};
void

View file

@ -13,31 +13,31 @@
// Altitude based on pressure difference from sea level.
// pressure difference inHG, altitude ft
static double altitude_data[][2] = {
-8.41, -8858.27,
0.00, 0.00,
3.05, 2952.76,
5.86, 5905.51,
8.41, 8858.27,
10.74, 11811.02,
12.87, 14763.78,
14.78, 17716.54,
16.55, 20669.29,
18.13, 23622.05,
19.62, 26574.80,
20.82, 29527.56,
21.96, 32480.31,
23.01, 35433.07,
23.91, 38385.83,
24.71, 41338.58,
25.40, 44291.34,
26.00, 47244.09,
26.51, 50196.85,
26.96, 53149.61,
27.35, 56102.36,
27.68, 59055.12,
27.98, 62007.87,
29.62, 100000.00 // just to fill it in
-1, -1,
{ -8.41, -8858.27 },
{ 0.00, 0.00 },
{ 3.05, 2952.76 },
{ 5.86, 5905.51 },
{ 8.41, 8858.27 },
{ 10.74, 11811.02 },
{ 12.87, 14763.78 },
{ 14.78, 17716.54 },
{ 16.55, 20669.29 },
{ 18.13, 23622.05 },
{ 19.62, 26574.80 },
{ 20.82, 29527.56 },
{ 21.96, 32480.31 },
{ 23.01, 35433.07 },
{ 23.91, 38385.83 },
{ 24.71, 41338.58 },
{ 25.40, 44291.34 },
{ 26.00, 47244.09 },
{ 26.51, 50196.85 },
{ 26.96, 53149.61 },
{ 27.35, 56102.36 },
{ 27.68, 59055.12 },
{ 27.98, 62007.87 },
{ 29.62, 100000.00 }, // just to fill it in
{ -1, -1 }
};