]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/environment.cxx
Make sure that all elapsed time gets passed to update when a subsystem
[flightgear.git] / src / Environment / environment.cxx
index 21f4158e7ad116fc5be64d5a12f46b3820bcda45..f5e5a5f0c0b9f800788c1ad284423c4350750149 100644 (file)
 FGEnvironment::FGEnvironment()
   : _temperature_degc_table(new SGInterpTable),
     _pressure_inhg_table(new SGInterpTable),
+    elevation_ft(0),
     visibility_m(32000),
     temperature_sea_level_degc(15),
+    temperature_degc(15),
     dewpoint_sea_level_degc(5), // guess
+    dewpoint_degc(5),
     pressure_sea_level_inhg(29.92),
+    pressure_inhg(29.92),
     wind_from_heading_deg(0),
     wind_speed_kt(0),
     wind_from_north_fps(0),
@@ -281,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