X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2FFGOutput.cpp;h=b3b3858088f2c6d0986a541acef77d82397ac8e3;hb=b5d116dad7816125dbaf94989aba774349f01017;hp=c82c43d934e8ddc18400083ab3c683b89ae706a8;hpb=1ab43c8048bebf0d9917ed4924a9284f5824ee4b;p=flightgear.git diff --git a/src/FDM/JSBSim/FGOutput.cpp b/src/FDM/JSBSim/FGOutput.cpp index c82c43d93..b3b385808 100644 --- a/src/FDM/JSBSim/FGOutput.cpp +++ b/src/FDM/JSBSim/FGOutput.cpp @@ -98,8 +98,9 @@ bool FGOutput::Run(void) } else { // Not a valid type of output } - + return false; } else { + return true; } } return false; @@ -117,7 +118,7 @@ void FGOutput::SetType(string type) Type = otSocket; } else if (type == "TERMINAL") { Type = otTerminal; - } else if (type != string("NONE")){ + } else if (type != string("NONE")) { Type = otUnknown; cerr << "Unknown type of output specified in config file" << endl; } @@ -172,7 +173,10 @@ void FGOutput::DelimitedOutput(string fname) outstream << ", "; outstream << "Drag, Side, Lift, "; outstream << "L/D, "; - outstream << "Xforce, Yforce, Zforce"; + outstream << "Xforce, Yforce, Zforce, "; + outstream << "xGravity, yGravity, zGravity, "; + outstream << "xCoriolis, yCoriolis, zCoriolis, "; + outstream << "xCentrifugal, yCentrifugal, zCentrifugal"; } if (SubSystems & ssMoments) { outstream << ", "; @@ -207,6 +211,10 @@ void FGOutput::DelimitedOutput(string fname) outstream << ", "; outstream << Aerodynamics->GetCoefficientStrings(); } + if (SubSystems & ssFCS) { + outstream << ", "; + outstream << FCS->GetComponentStrings(); + } if (SubSystems & ssGroundReactions) { outstream << ", "; outstream << GroundReactions->GetGroundReactionStrings(); @@ -245,14 +253,17 @@ void FGOutput::DelimitedOutput(string fname) outstream << Translation->Getqbar() << ", "; outstream << Translation->GetVt() << ", "; outstream << Translation->GetUVW() << ", "; - outstream << Translation->GetvAeroUVW() << ", "; + outstream << Translation->GetAeroUVW() << ", "; outstream << Position->GetVel(); } if (SubSystems & ssForces) { outstream << ", "; outstream << Aerodynamics->GetvFs() << ", "; outstream << Aerodynamics->GetLoD() << ", "; - outstream << Aircraft->GetForces(); + outstream << Aircraft->GetForces() << ", "; + outstream << Inertial->GetGravity() << ", "; + outstream << Inertial->GetCoriolis() << ", "; + outstream << Inertial->GetCentrifugal(); } if (SubSystems & ssMoments) { outstream << ", "; @@ -287,6 +298,10 @@ void FGOutput::DelimitedOutput(string fname) outstream << ", "; outstream << Aerodynamics->GetCoefficientValues(); } + if (SubSystems & ssFCS) { + outstream << ", "; + outstream << FCS->GetComponentValues(); + } if (SubSystems & ssGroundReactions) { outstream << ", "; outstream << GroundReactions->GetGroundReactionValues(); @@ -367,9 +382,9 @@ void FGOutput::SocketOutput(void) socket->Append(Translation->GetUVW(eU)); socket->Append(Translation->GetUVW(eV)); socket->Append(Translation->GetUVW(eW)); - socket->Append(Translation->GetvAeroUVW(eU)); - socket->Append(Translation->GetvAeroUVW(eV)); - socket->Append(Translation->GetvAeroUVW(eW)); + socket->Append(Translation->GetAeroUVW(eU)); + socket->Append(Translation->GetAeroUVW(eV)); + socket->Append(Translation->GetAeroUVW(eW)); socket->Append(Position->GetVn()); socket->Append(Position->GetVe()); socket->Append(Position->GetVd());