Revert some debugging code which krept in
This commit is contained in:
parent
ea6e1c9854
commit
1a0f3d8826
2 changed files with 3 additions and 4 deletions
|
@ -502,7 +502,6 @@ void FGJSBsim::unbind()
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
// Run an iteration of the EOM (equations of motion)
|
// Run an iteration of the EOM (equations of motion)
|
||||||
# include <fenv.h>
|
|
||||||
void FGJSBsim::update( double dt )
|
void FGJSBsim::update( double dt )
|
||||||
{
|
{
|
||||||
if(crashed) {
|
if(crashed) {
|
||||||
|
|
|
@ -153,8 +153,8 @@ double FGStandardAtmosphere::GetPressure(double altitude) const
|
||||||
double Lmb, Exp, Tmb, deltaH, factor;
|
double Lmb, Exp, Tmb, deltaH, factor;
|
||||||
double numRows = StdAtmosTemperatureTable->GetNumRows();
|
double numRows = StdAtmosTemperatureTable->GetNumRows();
|
||||||
|
|
||||||
if (altitude > 328084) // Karman line
|
//if (altitude > 328084) // Karman line
|
||||||
altitude = 328084;
|
// altitude = 328084;
|
||||||
|
|
||||||
// Iterate through the altitudes to find the current Base Altitude
|
// Iterate through the altitudes to find the current Base Altitude
|
||||||
// in the table. That is, if the current altitude (the argument passed in)
|
// 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);
|
factor = Tmb/(Tmb + Lmb*deltaH);
|
||||||
pressure = PressureBreakpointVector[b]*pow(factor, Exp);
|
pressure = PressureBreakpointVector[b]*pow(factor, Exp);
|
||||||
} else {
|
} else {
|
||||||
pressure = PressureBreakpointVector[b]*exp(Mair*deltaH/(Rstar*Tmb));
|
pressure = PressureBreakpointVector[b]*exp(-Mair*deltaH/(Rstar*Tmb));
|
||||||
}
|
}
|
||||||
|
|
||||||
return pressure;
|
return pressure;
|
||||||
|
|
Loading…
Add table
Reference in a new issue