From: Bertrand <bco...@us...> - 2016-04-16 12:01:54
|
Update of /cvsroot/jsbsim/JSBSim/src In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24929/src Modified Files: FGFDMExec.cpp Log Message: Moved CalculateQuatDot() from FGAccelerations to FGPropagate since the quaternion derivative is a velocity, not an acceleration. Also it relies only on values computed by FGPropagate. Moreover the quaternion derivative was not updated when either vPQRi or qAttitudeECI were updated. Index: FGFDMExec.cpp =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/src/FGFDMExec.cpp,v retrieving revision 1.187 retrieving revision 1.188 diff -C2 -r1.187 -r1.188 *** FGFDMExec.cpp 31 Jan 2016 11:12:59 -0000 1.187 --- FGFDMExec.cpp 16 Apr 2016 12:01:51 -0000 1.188 *************** *** 346,350 **** case ePropagate: Propagate->in.vPQRidot = Accelerations->GetPQRidot(); - Propagate->in.vQtrndot = Accelerations->GetQuaterniondot(); Propagate->in.vUVWidot = Accelerations->GetUVWidot(); Propagate->in.DeltaT = dT; --- 346,349 ---- *************** *** 498,502 **** Accelerations->in.Tec2b = Propagate->GetTec2b(); Accelerations->in.Tec2i = Propagate->GetTec2i(); - Accelerations->in.qAttitudeECI = Propagate->GetQuaternionECI(); Accelerations->in.Moment = Aircraft->GetMoments(); Accelerations->in.GroundMoment = GroundReactions->GetMoments(); --- 497,500 ---- |