[JSBSim] Added the ability to log properties in a CSV file.
This commit is contained in:
parent
cf5bfc5dd9
commit
973bf32074
2 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue