]> git.mxchange.org Git - flightgear.git/commit
Mathias Fröhlich:
authorehofman <ehofman>
Fri, 19 Nov 2004 12:33:08 +0000 (12:33 +0000)
committerehofman <ehofman>
Fri, 19 Nov 2004 12:33:08 +0000 (12:33 +0000)
commit3c0ab43b43ebcbed58b063295b11da941444f238
tree88cbd48545df83db7f57f125f952d2642aee83fc
parent4214cd6c10e8e90577673b4a11b6451248b3c6ee
Mathias Fröhlich:

The moving ai models will jump around realtive to the moving aircraft model.
I can see that with the carrier but others have noticed that too with ai
aircraft before.
The reason is that all SGSystems are called with a dt value which is not
necessarily a multiple of 1/hz.
In contrast, most FDM's use the _calc_multiloop function from FGInterface
which forces the time update to be a multiple of 1/hz for the FDM aircraft.
As a result, in the worst case, the FDM aircraft has moved nearly 1/hz seconds
further than the rest of flightgear (1/120sec*300kts that is about 1.3m).
That patch forces the time update to be a multiple of 1/hz.
src/AIModel/AIBase.cxx
src/AIModel/AIShip.cxx