// $Id$
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <simgear/compiler.h>
#ifdef SG_MATH_EXCEPTION_CLASH
temperature = fgGetNode("/environment/temperature-degc",true);
pressure = fgGetNode("/environment/pressure-inhg",true);
density = fgGetNode("/environment/density-slugft3",true);
+ turbulence = fgGetNode("environment/turbulence-norm",true);
wind_from_north= fgGetNode("/environment/wind-from-north-fps",true);
wind_from_east = fgGetNode("/environment/wind-from-east-fps" ,true);
9.0/5.0*(temperature->getDoubleValue()+273.15) );
Atmosphere->SetExPressure(pressure->getDoubleValue()*70.726566);
Atmosphere->SetExDensity(density->getDoubleValue());
+ Atmosphere->SetTurbGain(turbulence->getDoubleValue() *
+ turbulence->getDoubleValue() *
+ 100.0);
} else {
Atmosphere->UseInternal();
}
9.0/5.0*(temperature->getDoubleValue()+273.15) );
Atmosphere->SetExPressure(pressure->getDoubleValue()*70.726566);
Atmosphere->SetExDensity(density->getDoubleValue());
+ Atmosphere->SetTurbGain(turbulence->getDoubleValue() *
+ turbulence->getDoubleValue() *
+ 100.0);
Atmosphere->SetWindNED( wind_from_north->getDoubleValue(),
wind_from_east->getDoubleValue(),
fgic->SetClimbRateFpsIC( get_Climb_Rate() );
}
}
+