1
0
Fork 0

[JSBSim] Added the ability to log properties in a CSV file.

This commit is contained in:
Bertrand Coconnier 2020-01-25 16:05:30 +01:00
parent cf5bfc5dd9
commit 973bf32074
2 changed files with 5 additions and 0 deletions

View file

@ -389,6 +389,10 @@ FGJSBsim::FGJSBsim( double dt )
FGTrim *fgtrim = new FGTrim(fdmex,tFull);
fgtrim->DoTrim();
delete fgtrim;
string directive_file = fgGetString("/sim/jsbsim/output-directive-file");
if (!directive_file.empty())
fdmex->SetOutputDirectives(directive_file);
}
/******************************************************************************/

View file

@ -1846,6 +1846,7 @@ struct OptionDesc {
{"prop", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptSetProperty},
{"load-tape", true, OPTION_FUNC, "", false, "", fgOptLoadTape },
{"developer", true, OPTION_IGNORE | OPTION_BOOL, "", false, "", nullptr },
{"jsbsim-output-directive-file", true, OPTION_STRING, "/sim/jsbsim/output-directive-file", false, "", nullptr },
{0}
};