From: Erik Hofman Date: Sat, 28 May 2016 08:05:09 +0000 (+0200) Subject: Revert some debugging code which krept in X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ff155c27171f705ed0db47c3093428395c89b957;p=flightgear.git Revert some debugging code which krept in --- diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index a93844da4..b94a900a8 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -502,7 +502,6 @@ void FGJSBsim::unbind() /******************************************************************************/ // Run an iteration of the EOM (equations of motion) -# include void FGJSBsim::update( double dt ) { if(crashed) { diff --git a/src/FDM/JSBSim/models/atmosphere/FGStandardAtmosphere.cpp b/src/FDM/JSBSim/models/atmosphere/FGStandardAtmosphere.cpp index 084c96567..a62cad1cd 100644 --- a/src/FDM/JSBSim/models/atmosphere/FGStandardAtmosphere.cpp +++ b/src/FDM/JSBSim/models/atmosphere/FGStandardAtmosphere.cpp @@ -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;