1
0
Fork 0

Revert some debugging code which krept in

This commit is contained in:
Erik Hofman 2016-05-28 10:05:09 +02:00
parent ea6e1c9854
commit 1a0f3d8826
2 changed files with 3 additions and 4 deletions

View file

@ -502,7 +502,6 @@ void FGJSBsim::unbind()
/******************************************************************************/
// Run an iteration of the EOM (equations of motion)
# include <fenv.h>
void FGJSBsim::update( double dt )
{
if(crashed) {

View file

@ -153,8 +153,8 @@ double FGStandardAtmosphere::GetPressure(double altitude) const
double Lmb, Exp, Tmb, deltaH, factor;
double numRows = StdAtmosTemperatureTable->GetNumRows();
if (altitude > 328084) // Karman line
altitude = 328084;
//if (altitude > 328084) // Karman line
// altitude = 328084;
// Iterate through the altitudes to find the current Base Altitude
// in the table. That is, if the current altitude (the argument passed in)
@ -179,7 +179,7 @@ double FGStandardAtmosphere::GetPressure(double altitude) const
factor = Tmb/(Tmb + Lmb*deltaH);
pressure = PressureBreakpointVector[b]*pow(factor, Exp);
} else {
pressure = PressureBreakpointVector[b]*exp(Mair*deltaH/(Rstar*Tmb));
pressure = PressureBreakpointVector[b]*exp(-Mair*deltaH/(Rstar*Tmb));
}
return pressure;