X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FEnvironment%2Fenvironment_ctrl.hxx;h=1f81c025901d6305ee175c1e870e04bd42d56272;hb=72c5a314e6daa5052165310a600c4a9a4c20e43f;hp=f5a5024cc80f0c35937c5490fd4eaad266c06c97;hpb=a6db6d89ff41a619569e6433409e8bf62ff98499;p=flightgear.git diff --git a/src/Environment/environment_ctrl.hxx b/src/Environment/environment_ctrl.hxx index f5a5024cc..1f81c0259 100644 --- a/src/Environment/environment_ctrl.hxx +++ b/src/Environment/environment_ctrl.hxx @@ -40,6 +40,7 @@ // forward decls class SGPropertyNode; +class SGSampleGroup; class FGMetar; /** @@ -100,7 +101,7 @@ private: static bool lessThan(bucket *a, bucket *b); }; - void read_table (const SGPropertyNode * node, std::vector &table); + void read_table (const SGPropertyNode * node, std::vector &table, FGEnvironment * parent = NULL ); void do_interpolate (std::vector &table, double altitude_ft, FGEnvironment * environment); @@ -150,14 +151,15 @@ private: bool setup_winds_aloft; bool first_update; bool wind_interpolation_required; - double station_elevation_ft; string metar; + double metar_sealevel_temperature; + double metar_sealevel_dewpoint; double interpolate_prop(const char * currentname, const char * requiredname, double dvalue); double interpolate_val(double currentval, double requiredval, double dvalue); - const double EnvironmentUpdatePeriodSec; // Seconds between interpolations const double MaxWindChangeKtsSec; // Max wind change in kts/sec const double MaxVisChangePercentSec; // Max visibility change in %/sec const double MaxPressureChangeInHgSec; // Max pressure change in InHg/sec + const double MaxTemperatureChangeDegcSec; // Max temperature change in degc/s const double MaxCloudAltitudeChangeFtSec; // Max cloud altitude change in ft/s const double MaxCloudThicknessChangeFtSec; // Max cloud thickness change in ft/s const double MaxCloudInterpolationHeightFt; // Max distance from aircraft to @@ -200,6 +202,8 @@ private: SGPropertyNode_ptr boundary_wind_from_heading_n; SGPropertyNode_ptr boundary_visibility_n; SGPropertyNode_ptr boundary_sea_level_pressure_n; + SGPropertyNode_ptr boundary_sea_level_temperature_n; + SGPropertyNode_ptr boundary_sea_level_dewpoint_n; private: };