]> git.mxchange.org Git - flightgear.git/commit
Vivian Meazza:
authorehofman <ehofman>
Mon, 27 Sep 2004 14:24:20 +0000 (14:24 +0000)
committerehofman <ehofman>
Mon, 27 Sep 2004 14:24:20 +0000 (14:24 +0000)
commit328053fe23c5e233dc02686605f8d0c057257c8e
tree0a27a28ef1c0f38711b15288de40b3eaef4a1b47
parent06bead966b72b0377e1bd25cdea08c9e348ca4ee
Vivian Meazza:

The calculation of submodel mass from weight has been moved from AIBallistic
to Submodel so that it is calculated only once, rather than on every
iteration as a present. The parameter <contents> has been added, primarily
so that droptanks will have the proper mass. It is the path to an
appropriate property containing a weight in lbs.

Care has to be taken with the use of <contents> because after a reset there
appears to be a delay in submodel instantiation (dt not properly reset???)
and the weight property is not always picked up before it is set to zero in
the key bindings. Slightly hard to explain. It works fine if FGFS has not
been reset though. There is a partial solution which involves the rejigging
of the fuel and gui nasal scripts, but there is still the visible delay in
instantiation to be resolved. I've nearly done the nasal fixes, which will
form part of an update to the Hunter only. I'll probably complete those
later today.
src/AIModel/AIBallistic.cxx
src/AIModel/AIBallistic.hxx
src/AIModel/AIBase.hxx
src/AIModel/AIManager.cxx
src/AIModel/AIScenario.cxx
src/Systems/submodel.cxx
src/Systems/submodel.hxx