Sync w. JSBSim as of 20/01/2007
This commit is contained in:
parent
6094d927d3
commit
4dbedefb32
7 changed files with 12 additions and 8 deletions
|
@ -374,7 +374,7 @@ bool FGFDMExec::Run(void)
|
|||
model_iterator = model_iterator->NextModel;
|
||||
}
|
||||
|
||||
frame = Frame++;
|
||||
Frame++;
|
||||
if (!Holding()) State->IncrTime();
|
||||
return (success);
|
||||
}
|
||||
|
|
|
@ -280,7 +280,6 @@ protected:
|
|||
|
||||
void Debug(int from) {};
|
||||
|
||||
static unsigned int frame;
|
||||
static unsigned int messageId;
|
||||
|
||||
static const double radtodeg;
|
||||
|
|
|
@ -89,6 +89,7 @@ FGAtmosphere::FGAtmosphere(FGFDMExec* fdmex) : FGModel(fdmex)
|
|||
|
||||
T_dev_sl = T_dev = delta_T = 0.0;
|
||||
StandardTempOnly = false;
|
||||
first_pass = true;
|
||||
|
||||
bind();
|
||||
Debug(0);
|
||||
|
@ -543,13 +544,15 @@ void FGAtmosphere::Debug(int from)
|
|||
if (debug_lvl & 16) { // Sanity checking
|
||||
}
|
||||
if (debug_lvl & 128) { // Turbulence
|
||||
if (frame == 0 && from == 2) {
|
||||
if (first_pass && from == 2) {
|
||||
first_pass = false;
|
||||
cout << "vTurbulence(X), vTurbulence(Y), vTurbulence(Z), "
|
||||
<< "vTurbulenceGrad(X), vTurbulenceGrad(Y), vTurbulenceGrad(Z), "
|
||||
<< "vDirection(X), vDirection(Y), vDirection(Z), "
|
||||
<< "Magnitude, "
|
||||
<< "vTurbPQR(P), vTurbPQR(Q), vTurbPQR(R), " << endl;
|
||||
} else if (from == 2) {
|
||||
}
|
||||
if (from == 2) {
|
||||
cout << vTurbulence << ", " << vTurbulenceGrad << ", " << vDirection << ", " << Magnitude << ", " << vTurbPQR << endl;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -185,6 +185,7 @@ protected:
|
|||
double T_dev_sl, T_dev, delta_T, density_altitude;
|
||||
atmType atmosphere;
|
||||
bool StandardTempOnly;
|
||||
bool first_pass;
|
||||
|
||||
double MagnitudedAccelDt, MagnitudeAccel, Magnitude;
|
||||
double TurbGain;
|
||||
|
|
|
@ -183,7 +183,7 @@ FGLGear::FGLGear(Element* el, FGFDMExec* fdmex, int number) : Exec(fdmex),
|
|||
FCS = Exec->GetFCS();
|
||||
MassBalance = Exec->GetMassBalance();
|
||||
|
||||
WOW = lastWOW = true; // should the value be initialized to true?
|
||||
WOW = lastWOW = false;
|
||||
ReportEnable = true;
|
||||
FirstContact = false;
|
||||
StartedGroundRun = false;
|
||||
|
|
|
@ -1643,13 +1643,14 @@ void MSIS::Debug(int from)
|
|||
if (debug_lvl & 16) { // Sanity checking
|
||||
}
|
||||
if (debug_lvl & 32) { // Turbulence
|
||||
if (frame == 0 && from == 2) {
|
||||
if (first_pass && from == 2) {
|
||||
cout << "vTurbulence(X), vTurbulence(Y), vTurbulence(Z), "
|
||||
<< "vTurbulenceGrad(X), vTurbulenceGrad(Y), vTurbulenceGrad(Z), "
|
||||
<< "vDirection(X), vDirection(Y), vDirection(Z), "
|
||||
<< "Magnitude, "
|
||||
<< "vTurbPQR(P), vTurbPQR(Q), vTurbPQR(R), " << endl;
|
||||
} else if (from == 2) {
|
||||
}
|
||||
if (from == 2) {
|
||||
cout << vTurbulence << ", " << vTurbulenceGrad << ", " << vDirection << ", " << Magnitude << ", " << vTurbPQR << endl;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -310,7 +310,7 @@ void FGMars::Debug(int from)
|
|||
if (debug_lvl & 16) { // Sanity checking
|
||||
}
|
||||
if (debug_lvl & 32) { // Turbulence
|
||||
if (frame == 0 && from == 2) {
|
||||
if (first_pass && from == 2) {
|
||||
cout << "vTurbulence(X), vTurbulence(Y), vTurbulence(Z), "
|
||||
<< "vTurbulenceGrad(X), vTurbulenceGrad(Y), vTurbulenceGrad(Z), "
|
||||
<< "vDirection(X), vDirection(Y), vDirection(Z), "
|
||||
|
|
Loading…
Reference in a new issue