Update of /cvsroot/jsbsim/JSBSim/src
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1985/src
Modified Files:
FGState.cpp
Log Message:
Fixed a nasty error where the time step size (FGState::dt) was set to 0.0 when running JSBSim Standalone without a script
Index: FGState.cpp
===================================================================
RCS file: /cvsroot/jsbsim/JSBSim/src/FGState.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** FGState.cpp 5 Feb 2009 04:59:53 -0000 1.12
--- FGState.cpp 1 Jul 2009 11:59:30 -0000 1.13
***************
*** 59,63 ****
sim_time = 0.0;
! //dt = 1.0/120.0;
Aircraft = FDMExec->GetAircraft();
--- 59,64 ----
sim_time = 0.0;
! dt = 1.0/120.0; // a default timestep size. This is needed for when JSBSim is
! // run in standalone mode with no initialization file.
Aircraft = FDMExec->GetAircraft();
|