X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FEnvironment%2Fenvironment.cxx;h=95b45852ebb2ac37400c40e7500aff67dc754776;hb=89b41395d861a49ad543af166c0bd41c14dd0d2b;hp=4e245554b34a06b1458e05cfb77a83d1ac4318bb;hpb=a81103341e7f7de92758a961c0365a21aa84be17;p=flightgear.git diff --git a/src/Environment/environment.cxx b/src/Environment/environment.cxx index 4e245554b..95b45852e 100644 --- a/src/Environment/environment.cxx +++ b/src/Environment/environment.cxx @@ -180,6 +180,13 @@ FGEnvironment::copy (const FGEnvironment &env) wind_from_down_fps = env.wind_from_down_fps; turbulence_magnitude_norm = env.turbulence_magnitude_norm; turbulence_rate_hz = env.turbulence_rate_hz; + pressure_inhg = env.pressure_inhg; + density_slugft3 = env.density_slugft3; + density_tropo_avg_kgm3 = env.density_tropo_avg_kgm3; + relative_humidity = env.relative_humidity; + altitude_half_to_sun_m = env.altitude_half_to_sun_m; + altitude_tropo_top_m = env.altitude_tropo_top_m; + live_update = env.live_update; } static inline bool @@ -678,13 +685,13 @@ FGEnvironment::_recalc_sl_temperature () #if 0 { - SG_LOG(SG_GENERAL, SG_DEBUG, "recalc_sl_temperature: using " + SG_LOG(SG_ENVIRONMENT, SG_DEBUG, "recalc_sl_temperature: using " << temperature_degc << " @ " << elevation_ft << " :: " << this); } #endif if (elevation_ft * atmodel::foot >= ISA_def[1].height) { - SG_LOG(SG_GENERAL, SG_ALERT, "recalc_sl_temperature: " + SG_LOG(SG_ENVIRONMENT, SG_ALERT, "recalc_sl_temperature: " << "valid only in troposphere, not " << elevation_ft); return; } @@ -728,7 +735,7 @@ FGEnvironment::_recalc_sl_pressure () using namespace atmodel; #if 0 { - SG_LOG(SG_GENERAL, SG_ALERT, "recalc_sl_pressure: using " + SG_LOG(SG_ENVIRONMENT, SG_ALERT, "recalc_sl_pressure: using " << pressure_inhg << " and " << temperature_degc << " @ " << elevation_ft << " :: " << this); } @@ -749,7 +756,7 @@ FGEnvironment::_recalc_alt_pt () { static int count(0); if (++count % 1000 == 0) { - SG_LOG(SG_GENERAL, SG_ALERT, + SG_LOG(SG_ENVIRONMENT, SG_ALERT, "recalc_alt_pt for: " << elevation_ft << " using " << pressure_sea_level_inhg << " and " << temperature_sea_level_degc