From: Jon S. B. <jon...@co...> - 2009-07-30 12:54:12
|
Ron, The --end-time override is now working. This supersedes any end time given in a script that may or may not be controlling the sim. Jon > -----Original Message----- > From: Ron Jensen [mailto:wi...@je...] > Sent: Saturday, July 25, 2009 9:06 PM > To: JSBSim development issues > Subject: [Jsbsim-devel] JSBSim Standalone --end-time directive > > I noticed today there is a command-line switch > > --end-time=<time (double)> specifies the sim end time > > but wasn't sure what to put in for <double>, and my guesses didn't seem > to do anything, so I looked at the code... > > In JSBSim.cpp line 559 --end-time is parsed into the double variable > "end_time." > > } else if (keyword == "--end-time") { > if (n != string::npos) { > end_time = atof( value.c_str() ); > } else { > gripe; > exit(1); > } > > > end_time is defined at line 86: > > double end_time = -1.0; > > These are the only two references to end_time I can find... Am I > missing some c++ magic here, or is this not implemented? > > Thanks, > > Ron > > > > ----------------------------------------------------------------------- > ------- > _______________________________________________ > Jsbsim-devel mailing list > Jsb...@li... > https://lists.sourceforge.net/lists/listinfo/jsbsim-devel > _______________________________________________ > The JSBSim Flight Dynamics Model project > http://www.JSBSim.org > _______________________________________________ |