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
#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;
}
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);
}
{
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