Member variable initialization fixes from Cameron Moore
This commit is contained in:
parent
e0fa2db2c9
commit
f04d342f6a
8 changed files with 18 additions and 4 deletions
|
@ -71,6 +71,7 @@ FGAerodynamics::FGAerodynamics(FGFDMExec* FDMExec) : FGModel(FDMExec)
|
||||||
alphahystmin = alphahystmax = 0.0;
|
alphahystmin = alphahystmax = 0.0;
|
||||||
clsq = lod = 0.0;
|
clsq = lod = 0.0;
|
||||||
alphaw = 0.0;
|
alphaw = 0.0;
|
||||||
|
bi2vel = ci2vel = 0.0;
|
||||||
bind();
|
bind();
|
||||||
|
|
||||||
Debug(0);
|
Debug(0);
|
||||||
|
|
|
@ -106,6 +106,7 @@ FGAircraft::FGAircraft(FGFDMExec* fdmex) : FGModel(fdmex)
|
||||||
HTailArm = VTailArm = 0.0;
|
HTailArm = VTailArm = 0.0;
|
||||||
lbarh = lbarv = 0.0;
|
lbarh = lbarv = 0.0;
|
||||||
vbarh = vbarv = 0.0;
|
vbarh = vbarv = 0.0;
|
||||||
|
WingIncidence = 0.0;
|
||||||
|
|
||||||
bind();
|
bind();
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ FGCoefficient::FGCoefficient( FGFDMExec* fdex )
|
||||||
totalValue = 0.0;
|
totalValue = 0.0;
|
||||||
bias = 0.0;
|
bias = 0.0;
|
||||||
gain = 1.0;
|
gain = 1.0;
|
||||||
|
SD = 0.0;
|
||||||
|
|
||||||
filename.erase();
|
filename.erase();
|
||||||
description.erase();
|
description.erase();
|
||||||
|
|
|
@ -115,6 +115,8 @@ FGFDMExec::FGFDMExec(FGPropertyManager* root)
|
||||||
modelLoaded = false;
|
modelLoaded = false;
|
||||||
IsSlave = false;
|
IsSlave = false;
|
||||||
|
|
||||||
|
cout << "FGFDMExec::FGFDMExec, FDMctr: " << FDMctr << endl;
|
||||||
|
|
||||||
IdFDM = FDMctr;
|
IdFDM = FDMctr;
|
||||||
FDMctr++;
|
FDMctr++;
|
||||||
|
|
||||||
|
@ -130,7 +132,6 @@ FGFDMExec::FGFDMExec(FGPropertyManager* root)
|
||||||
else master = root;
|
else master = root;
|
||||||
|
|
||||||
instance = master->GetNode("/fdm/jsbsim",IdFDM,true);
|
instance = master->GetNode("/fdm/jsbsim",IdFDM,true);
|
||||||
instance->SetDouble("zero",0);
|
|
||||||
|
|
||||||
Debug(0);
|
Debug(0);
|
||||||
|
|
||||||
|
@ -156,7 +157,8 @@ FGFDMExec::~FGFDMExec()
|
||||||
|
|
||||||
for (unsigned int i=1; i<SlaveFDMList.size(); i++) delete SlaveFDMList[i]->exec;
|
for (unsigned int i=1; i<SlaveFDMList.size(); i++) delete SlaveFDMList[i]->exec;
|
||||||
SlaveFDMList.clear();
|
SlaveFDMList.clear();
|
||||||
|
cout << "FGFDMExec::~FGFDMExec, FDMctr: " << FDMctr << endl;
|
||||||
|
FDMctr--;
|
||||||
Debug(1);
|
Debug(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,12 @@ CLASS IMPLEMENTATION
|
||||||
FGMassBalance::FGMassBalance(FGFDMExec* fdmex) : FGModel(fdmex)
|
FGMassBalance::FGMassBalance(FGFDMExec* fdmex) : FGModel(fdmex)
|
||||||
{
|
{
|
||||||
Name = "FGMassBalance";
|
Name = "FGMassBalance";
|
||||||
|
Weight = EmptyWeight = Mass = 0.0;
|
||||||
|
Ixx = Iyy = Izz = Ixy = Ixz = 0.0;
|
||||||
|
baseIxx = baseIyy = baseIzz = baseIxy = baseIxz = 0.0;
|
||||||
|
vbaseXYZcg(eX) = 0.0;
|
||||||
|
vbaseXYZcg(eY) = 0.0;
|
||||||
|
vbaseXYZcg(eZ) = 0.0;
|
||||||
bind();
|
bind();
|
||||||
|
|
||||||
Debug(0);
|
Debug(0);
|
||||||
|
|
|
@ -82,6 +82,8 @@ FGTranslation::FGTranslation(FGFDMExec* fdmex) : FGModel(fdmex)
|
||||||
{
|
{
|
||||||
Name = "FGTranslation";
|
Name = "FGTranslation";
|
||||||
qbar = 0;
|
qbar = 0;
|
||||||
|
qbarUW = 0.0;
|
||||||
|
qbarUV = 0.0;
|
||||||
Vt = 0.0;
|
Vt = 0.0;
|
||||||
Mach = 0.0;
|
Mach = 0.0;
|
||||||
alpha = beta = 0.0;
|
alpha = beta = 0.0;
|
||||||
|
|
|
@ -79,7 +79,7 @@ FGTrim::FGTrim(FGFDMExec *FDMExec,FGInitialCondition *FGIC, TrimMode tt ) {
|
||||||
gamma_fallback=true;
|
gamma_fallback=true;
|
||||||
axis_count=0;
|
axis_count=0;
|
||||||
mode=tt;
|
mode=tt;
|
||||||
xlo=xhi=alo=ahi;
|
xlo=xhi=alo=ahi=0.0;
|
||||||
targetNlf=1.0;
|
targetNlf=1.0;
|
||||||
debug_axis=tAll;
|
debug_axis=tAll;
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
|
|
|
@ -57,6 +57,7 @@ FGKinemat::FGKinemat(FGFCS* fcs, FGConfigFile* AC_cfg) : FGFCSComponent(fcs),
|
||||||
TransitionTimes.clear();
|
TransitionTimes.clear();
|
||||||
|
|
||||||
OutputPct=0;
|
OutputPct=0;
|
||||||
|
InTransit=0;
|
||||||
|
|
||||||
Type = AC_cfg->GetValue("TYPE");
|
Type = AC_cfg->GetValue("TYPE");
|
||||||
Name = AC_cfg->GetValue("NAME");
|
Name = AC_cfg->GetValue("NAME");
|
||||||
|
|
Loading…
Reference in a new issue