diff --git a/src/FDM/JSBSim/FGAerodynamics.cpp b/src/FDM/JSBSim/FGAerodynamics.cpp index bbcf0eb9c..16bd979fb 100644 --- a/src/FDM/JSBSim/FGAerodynamics.cpp +++ b/src/FDM/JSBSim/FGAerodynamics.cpp @@ -71,6 +71,7 @@ FGAerodynamics::FGAerodynamics(FGFDMExec* FDMExec) : FGModel(FDMExec) alphahystmin = alphahystmax = 0.0; clsq = lod = 0.0; alphaw = 0.0; + bi2vel = ci2vel = 0.0; bind(); Debug(0); diff --git a/src/FDM/JSBSim/FGAircraft.cpp b/src/FDM/JSBSim/FGAircraft.cpp index 5ee4979c0..2e94ecfad 100644 --- a/src/FDM/JSBSim/FGAircraft.cpp +++ b/src/FDM/JSBSim/FGAircraft.cpp @@ -106,6 +106,7 @@ FGAircraft::FGAircraft(FGFDMExec* fdmex) : FGModel(fdmex) HTailArm = VTailArm = 0.0; lbarh = lbarv = 0.0; vbarh = vbarv = 0.0; + WingIncidence = 0.0; bind(); diff --git a/src/FDM/JSBSim/FGCoefficient.cpp b/src/FDM/JSBSim/FGCoefficient.cpp index 801571f4f..b143fe94e 100644 --- a/src/FDM/JSBSim/FGCoefficient.cpp +++ b/src/FDM/JSBSim/FGCoefficient.cpp @@ -83,6 +83,7 @@ FGCoefficient::FGCoefficient( FGFDMExec* fdex ) totalValue = 0.0; bias = 0.0; gain = 1.0; + SD = 0.0; filename.erase(); description.erase(); diff --git a/src/FDM/JSBSim/FGFDMExec.cpp b/src/FDM/JSBSim/FGFDMExec.cpp index a4269c7df..a9cdac8e7 100644 --- a/src/FDM/JSBSim/FGFDMExec.cpp +++ b/src/FDM/JSBSim/FGFDMExec.cpp @@ -114,7 +114,9 @@ FGFDMExec::FGFDMExec(FGPropertyManager* root) frozen = false; modelLoaded = false; IsSlave = false; - + + cout << "FGFDMExec::FGFDMExec, FDMctr: " << FDMctr << endl; + IdFDM = FDMctr; FDMctr++; @@ -130,7 +132,6 @@ FGFDMExec::FGFDMExec(FGPropertyManager* root) else master = root; instance = master->GetNode("/fdm/jsbsim",IdFDM,true); - instance->SetDouble("zero",0); Debug(0); @@ -156,7 +157,8 @@ FGFDMExec::~FGFDMExec() for (unsigned int i=1; iexec; SlaveFDMList.clear(); - + cout << "FGFDMExec::~FGFDMExec, FDMctr: " << FDMctr << endl; + FDMctr--; Debug(1); } diff --git a/src/FDM/JSBSim/FGMassBalance.cpp b/src/FDM/JSBSim/FGMassBalance.cpp index fb279c807..5df0f3c18 100644 --- a/src/FDM/JSBSim/FGMassBalance.cpp +++ b/src/FDM/JSBSim/FGMassBalance.cpp @@ -52,6 +52,12 @@ CLASS IMPLEMENTATION FGMassBalance::FGMassBalance(FGFDMExec* fdmex) : FGModel(fdmex) { 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(); Debug(0); diff --git a/src/FDM/JSBSim/FGTranslation.cpp b/src/FDM/JSBSim/FGTranslation.cpp index ad3945255..8c4aa657c 100644 --- a/src/FDM/JSBSim/FGTranslation.cpp +++ b/src/FDM/JSBSim/FGTranslation.cpp @@ -82,6 +82,8 @@ FGTranslation::FGTranslation(FGFDMExec* fdmex) : FGModel(fdmex) { Name = "FGTranslation"; qbar = 0; + qbarUW = 0.0; + qbarUV = 0.0; Vt = 0.0; Mach = 0.0; alpha = beta = 0.0; diff --git a/src/FDM/JSBSim/FGTrim.cpp b/src/FDM/JSBSim/FGTrim.cpp index e4a5c2ea6..a5fc75d9e 100644 --- a/src/FDM/JSBSim/FGTrim.cpp +++ b/src/FDM/JSBSim/FGTrim.cpp @@ -79,7 +79,7 @@ FGTrim::FGTrim(FGFDMExec *FDMExec,FGInitialCondition *FGIC, TrimMode tt ) { gamma_fallback=true; axis_count=0; mode=tt; - xlo=xhi=alo=ahi; + xlo=xhi=alo=ahi=0.0; targetNlf=1.0; debug_axis=tAll; switch(mode) { diff --git a/src/FDM/JSBSim/filtersjb/FGKinemat.cpp b/src/FDM/JSBSim/filtersjb/FGKinemat.cpp index ea91f734d..1bf63e823 100644 --- a/src/FDM/JSBSim/filtersjb/FGKinemat.cpp +++ b/src/FDM/JSBSim/filtersjb/FGKinemat.cpp @@ -57,6 +57,7 @@ FGKinemat::FGKinemat(FGFCS* fcs, FGConfigFile* AC_cfg) : FGFCSComponent(fcs), TransitionTimes.clear(); OutputPct=0; + InTransit=0; Type = AC_cfg->GetValue("TYPE"); Name = AC_cfg->GetValue("NAME");