From ff155c27171f705ed0db47c3093428395c89b957 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Sat, 28 May 2016 10:05:09 +0200 Subject: [PATCH] Revert some debugging code which krept in --- src/FDM/JSBSim/JSBSim.cxx | 1 - src/FDM/JSBSim/models/atmosphere/FGStandardAtmosphere.cpp | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.5