X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2FFGOutput.cpp;h=b3b3858088f2c6d0986a541acef77d82397ac8e3;hb=b5d116dad7816125dbaf94989aba774349f01017;hp=e7efe9cfbe95c0b36327459b92d67bb235d5a203;hpb=d2156b5649fdad7f825f9cbb8a789215d5c11c72;p=flightgear.git diff --git a/src/FDM/JSBSim/FGOutput.cpp b/src/FDM/JSBSim/FGOutput.cpp index e7efe9cfb..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(); @@ -252,7 +260,10 @@ void FGOutput::DelimitedOutput(string fname) 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();