#include <boost/tuple/tuple.hpp>
-#include <simgear/constants.h>
-#include <simgear/debug/logstream.hxx>
-#include <simgear/math/interpolater.hxx>
#include <simgear/props/props.hxx>
-#include <simgear/environment/visual_enviro.hxx>
#include <Main/fg_props.hxx>
-#include <signal.h>
#include "environment.hxx"
#include "atmosphere.hxx"
double
FGEnvironment::get_turbulence_magnitude_norm () const
{
- if( sgEnviro.get_turbulence_enable_state() )
- if (fgGetBool("/environment/realwx/enabled")||fgGetBool("/environment/metar/valid"))
- return sgEnviro.get_cloud_turbulence();
return turbulence_magnitude_norm;
}
#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