From: Erik H. <er...@eh...> - 2016-05-17 13:35:27
|
On 05/16/2016 08:19 PM, Bertrand wrote: > Update of /cvsroot/jsbsim/JSBSim/src/models > In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv18420/src/models > > Modified Files: > FGFCS.cpp FGFCS.h FGGroundReactions.cpp FGGroundReactions.h > FGLGear.cpp FGLGear.h > Log Message: > The steering angle of each landing gear is now managed by FGGroundReactions and FGLGear. FGFCS no longer needs to know how many gears there are, which ones are steerable, which are not, etc. The steering angle was also stored in 3 different locations FGFCS::SteerPosDeg, FGLGear::in::SteerPosDeg and FGLGear::SteerAngle. Now the data is stored in FGLGear::SteerAngle only. This results in a better encapsulation of the landing gears code. The code is also simpler since information no longer need to be exchanged back and forth between FGLGear and FGFCS. Bertrand, I think you are doing a great job at making JSBSim more robust. Only, this change prevented FligtGear to call FCS->SetDsCmd() which now requires us to get fdmex->GetGroundReactions() for just setting steering. All the other controls, like flaps, speedbrakes and spoilers are settable in FCS. Maybe it would be a good idea to also add SetDsCmd() again? Erik -- http://www.adalin.com - High performance virtual reality audio software. |