Update of /cvsroot/jsbsim/JSBSim/src/initialization
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20115/src/initialization
Modified Files:
FGTrim.cpp
Log Message:
Update the previous steps of the multistep integration schemes after a trim such that the simulation continues with a consistent set of derivatives. This avoid some overshoots in the velocities and accelerations that sometimes follow a trim.
Index: FGTrim.cpp
===================================================================
RCS file: /cvsroot/jsbsim/JSBSim/src/initialization/FGTrim.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** FGTrim.cpp 17 Jan 2016 15:54:04 -0000 1.31
--- FGTrim.cpp 4 Jun 2016 19:04:20 -0000 1.32
***************
*** 341,344 ****
--- 341,345 ----
}
+ fdmex->GetPropagate()->InitializeDerivatives();
fdmex->ResumeIntegration();
fdmex->SetTrimStatus(false);
|