1
0
Fork 0
No description
Find a file
ehofman 85a1e5cc98 David Culp:
Here's a new batch of AI code which includes a working radar instrument.

I put the radar calculations into the existing AIAircraft class.  It was
easier that way, and it can always be migrated out later if we have to.
Every tenth sim cycle the AIManager makes a copy of the current user state
information.  When the AIAircraft updates it uses this information to
calculate the radar numbers.  It calculates:

1) bearing from user to target
2) range to target in nautical miles
3) "horizontal offset" to target.  This is the angle from the nose to the
   target, in degrees, from -180 to 180.  This will be useful later for a HUD.
4) elevation, in degrees (vertical angle from user's position to target
   position)
5) vertical offset, in degrees (this is elevation corrected for user's pitch)
6) rdot (range rate in knots, note:  not working yet, so I commented it out)

and three items used by the radar instrument to place the "blip"

7) y_shift, in nautical miles
8) x_shift, in nautical miles
9) rotation, in degrees

The radar instrument uses the above three items, and applies a scale factor to
the x-shift and y-shift in order to match the instrument's scale.  Changing
the display scale can be done entirely in the XML code for the instrument.
Right now it's set up only to display a 40 mile scale.

The radar is an AWACS view, which is not very realistic, but it is useful and
demonstrates the technology.  With just a little more work I can get a HUD
marker.  All I need to do there is make a bank angle adjustment to the
current values.
2004-02-27 10:20:17 +00:00
docs-mini Update the FDM section to expose the engine/thruster related internal properties. 2004-02-17 10:55:20 +00:00
man Cameron Moore: 2003-10-23 15:53:32 +00:00
package Miscellaneous changes that got missed somehow. 2003-11-17 17:08:55 +00:00
scripts Add elevator trim tab position logging. 2004-02-17 23:03:31 +00:00
src David Culp: 2004-02-27 10:20:17 +00:00
tests MIPSpro 7.4 fixes 2003-12-27 22:27:27 +00:00
utils Add network libraries for Solaris 2004-02-23 14:29:42 +00:00
.cvsignore *** empty log message *** 2003-02-10 16:42:12 +00:00
acinclude.m4 Fix a typo. 2002-09-03 04:52:32 +00:00
am2dsp.cfg Updated am2dsp.cfg from Bernie. 2002-04-22 22:42:23 +00:00
AUTHORS Initial revision. 1998-05-23 18:09:09 +00:00
autogen.sh Fixes to better support the native irix compilers. 2002-09-06 17:30:21 +00:00
ChangeLog Updated ... 2001-06-18 22:25:59 +00:00
configure.ac A bit more Makefile massaging. 2004-02-10 15:22:29 +00:00
FlightGear.dsp A bit more Makefile massaging. 2004-02-10 15:22:29 +00:00
FlightGear.dsw Initial revision. 2000-10-16 22:02:10 +00:00
Makefile.am Updates to the Thanks file contributed by Jim Wilson. 2003-03-05 17:07:01 +00:00
NEWS Miscellaneous changes that got missed somehow. 2003-11-17 17:08:55 +00:00
README Updates. 2000-02-15 23:32:26 +00:00
Thanks Updated Andrei's entry. 2003-12-29 20:54:12 +00:00

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!