No description
fa045bf0bf
I have now the FDM side of an aircraft carrier set up. The implementation uses a local cache of the scene graph to do intersection tests. This can then be done per gear/hook/lauchbar. Also the required aircraft carrier hardware will show up in this cache and can provide the required information. The cache itself is ATM integrated into the FGInterface class. New are functions to query a ground contact point below a given location in the earth. Together with that contact point the surface normal and the velocity of that contact surface are returned. The locations, normals and velovities are cartesian vectors given in the wgs84 coordinate system (origin in the earths center, x axis towards lat=lon=0, y axis towards lat=0, lon=90, z axis towards the north pole). A function to test catching a wire. The test is done by intersection of the quad where the hook moved during the past timestep with the lines representing the wires. When this test was sucessfull, we can query for the locations/velocities of the wires mount points. When the wire is no longer needed it should be released. Catapults are also stored as special lines in the scenegraph. There is a function which returns the nearest catapult line and its current locations/velocities. To build up the cache you need to call a function to let the cache know where and how big the cache must be. I have also a preliminary implementation to make use of that stuff from within JSBSim together with an aircraft which I have used for development. To play with that, you have to install the patches/new files described above. The hook can be extended with the H key, retracted with h. Start flightgear with fgfs --lat=37.688 --lon=-122.683 --heading=180 --altitude=71 and you will be placed on the carriers deck rolling backwards wrt the carrier. Then apply the breaks and wait until the aircraft settled down past being not trimmed. Now taxi on the deck to one of the catapults. When the nose wheel is above the first few meters of the catapult (please taxi exactly there). Apply the breaks and leave them applied. lower the flaps to half and give full throttle. Pull a little at your stick and release the breaks. As the breaks are released the aircraft is launched. Then you can cruise a bit, and again try to land on the nimitz. When you land, do not forget to extend the hook with 'H'. If you like it, you can then taxi to the catapult ... :) The physical model is not yet ready, but the api between the FDM and flightgear has prooven to be sufficient for that task. |
||
---|---|---|
Aircraft | ||
Aircraft-uiuc | ||
Airports | ||
Astro | ||
ATC | ||
Data | ||
Docs | ||
Fonts | ||
gui | ||
Huds | ||
Input/Joysticks | ||
Lighting | ||
Nasal | ||
Navaids | ||
Protocol | ||
Sounds | ||
Textures | ||
Timezone | ||
Traffic | ||
Translations | ||
.cvsignore | ||
AtlasPalette | ||
AUTHORS | ||
ChangeLog | ||
COPYING | ||
joysticks.xml | ||
keyboard.xml | ||
large.sky | ||
materials.dtd | ||
materials.xml | ||
mice.xml | ||
NEWS | ||
options.xml | ||
preferences.xml | ||
README | ||
runfgfs.bat | ||
Thanks | ||
version |
Welcome to the FlightGear Flight Simulator project. =================================================== The primary web page for this project is: http://www.flightgear.org For basic installation instructions see the "INSTALL" file. Before you can run FlightGear you will also need to download and install the "base" package which is a collection of textures, sounds, sample scenery, and other data files need by the sim. For additional install help for specific platforms please browse the "docs-mini/" subdirectory. More complete documentation is available from our web page as a separate distribution. Please take a look at the "Thanks" file for a list of people who have contributed to this project. If you have contributed something but don't find your name in this file. Please send a polite reminder to curt@flightgear.org For a summary of changes/additions by version see the "NEWS" file. This project is GPL'd. For complete details on our licensing please see the "COPYING" file. For information on available mailing lists, mailing list archives, and other available source code and documenation, please visit our web site. FlightGear is a product of the collaboration of large international group of volunteers. FlightGear is a work in progress. FlightGear comes with no warrantee. We hope you enjoy FlightGear and/or find it of some value!