1
0
Fork 0
flightgear/src/FDM
ehofman 4df7a3e9f8 Mathias Fröhlich:
I have introduced the posibility to start directly on the carrier.

With that patch you will have a --carrrier=id argument where id can either be
the pennant number configured in the nimitz scenario or the carriers name
also configured in the carriers scenario.
Additionaly you can use --parkpos=id to select different positions on the
carrier. They are also configured in the scenario file.

That includes the switch of the whole FGInterface class to make use of the
groundcache.
That means that an aircraft no longer uses the current elevation value from
the scenery class. It rather has its own local cache of the aircrafts
environment which is setup in the common_init method of FGInterface and
updated either manually by calling
 FGInterface::get_groundlevel_m(lat, lon, alt_m);
or implicitly by calling the above method in the
 FGInterface::_updateGeo*Position(lat, lon, alt);
methods.
A call get_groundlevel_m rebuilds the groundcache if the request is outside
the range of the cache.

Note that for the real usage of the groundcache including the correct
information about the movement of objects and the velocity information, you
still need to set up the groundcache in the usual way like YASim and JSBSim
currently does.
If you use the native interface, you will get only static objects correctly.
But for FDM's only using one single ground level for a whole step this is IMO
sufficient.

The AIManager gets a way to return the location of a object which is placed
wrt an AI Object. At the moment it only honours AICarriers for that.
That method is a static one, which loads the scenario file for that reason and
throws it away afterwards. This looked like the aprioriate way, because the
AIManager is initialized much later in flightgears bootstrap, and I did not
find an easy way to reorder that for my needs. Since this additional load is
very small and does only happen if such a relative location is required, I
think that this is ok.

Note that moving on the carrier will only work correctly for JSBSim and YASim,
but you should now be able to start and move on every not itself moving
object with any FDM.
2005-07-03 09:39:14 +00:00
..
Balloon A hack to prevent a devide by zero sotuation. Should we still leave the balloon in CVS without WeatherCM? 2004-03-22 10:59:08 +00:00
ExternalNet Fix my mailing address by replacing it with my web page. 2004-11-19 22:10:41 +00:00
ExternalPipe Mathias Fröhlich: 2005-07-03 09:39:14 +00:00
JSBSim A few fixes from David Culp. 2005-06-11 08:19:16 +00:00
LaRCsim Mathias Fröhlich: 2005-07-03 09:39:14 +00:00
SP Mathias Fröhlich: 2004-11-22 10:10:33 +00:00
UIUCModel Add extern "C" wrappers. 2004-03-16 20:44:00 +00:00
YASim Rework the MP calculation to make super/turbocharger output dependent 2005-07-02 17:09:42 +00:00
.cvsignore -Removed .cvsignore from itself, since .cvsignore is now in the CVS 2001-12-12 04:15:23 +00:00
Balloon.cxx #include <config.h> where needed for cygwin/gcc-3.2. 2002-12-03 14:59:24 +00:00
Balloon.h Major overhaul: 2002-05-11 16:28:50 +00:00
flight.cxx Mathias Fröhlich: 2005-07-03 09:39:14 +00:00
flight.hxx Mathias Fröhlich: 2005-07-03 09:39:14 +00:00
groundcache.cxx Mathias Fröhlich: 2005-07-03 09:39:14 +00:00
groundcache.hxx Mathias Fröhlich: 2005-07-03 09:39:14 +00:00
MagicCarpet.cxx Fix my mailing address by replacing it with my web page. 2004-11-19 22:10:41 +00:00
MagicCarpet.hxx Fix my mailing address by replacing it with my web page. 2004-11-19 22:10:41 +00:00
Makefile.am Mathias Fröhlich: 2004-11-22 10:10:33 +00:00
NullFDM.cxx Fix my mailing address by replacing it with my web page. 2004-11-19 22:10:41 +00:00
NullFDM.hxx Fix my mailing address by replacing it with my web page. 2004-11-19 22:10:41 +00:00
UFO.cxx Fix my mailing address by replacing it with my web page. 2004-11-19 22:10:41 +00:00
UFO.hxx Fix my mailing address by replacing it with my web page. 2004-11-19 22:10:41 +00:00