1
0
Fork 0
Commit graph

1491 commits

Author SHA1 Message Date
ehofman
957cd9a0b8 Add the AIModel based air traffic subsystem from Durk Talsma. 2004-06-03 17:59:05 +00:00
ehofman
ed6f6640af Lee Elliot:
I'd like to suggest that the spoiler settings are set in the same way as the
flaps are now done i.e. via Nasal, so that specific spoiler settings can also
be defined in the aircraft set file.

It was only when I was about to change the keyboard bindings for the slats
control that I remembered that there wasn't already a mapping for them in
keyboard.xml.  I've _not_ added a mapping for slats as this is a bit of a hot
topic atm but as I had already added a Nasal func for the slats in
controls.nas I've left that in there.  It's a trivial bit of code but I don't
know if leaving it in there is a good idea as it's code that shouldn't ever
be called until there's a corresponding keyboard mapping.
2004-06-01 08:13:12 +00:00
ehofman
3e156dc06d Sync with the latest version 2004-06-01 08:10:44 +00:00
ehofman
9601588447 Add the matching scenario file. 2004-05-29 12:09:54 +00:00
ehofman
f1a61549a5 David Culp:
Here's some new AI stuff.

1)  AI objects must now be defined in a scenario file, not in preferences.xml
or a *-set file.  (Of course this doesn't prevent objects from being created
dynamically, as with Durk's traffic manager).

2)  A new demo_scenario file is attached.  It creates 3 aircraft, a sailboat,
and a thunderstorm.

3)  Objects without flightplans live forever.

4)  FGAIShip::ProcessFlightplan() is not yet implemented.

5)  preferences.xml should now define only <enabled> and <scenario>
2004-05-29 11:41:20 +00:00
curt
f3b4f6799c Allow a "threshold" value to determine which localizers to snap to the
runway heading or not.
2004-05-28 20:56:54 +00:00
curt
e73902c9f8 Add a flag to specify if localizers should be automatically aligned with
their corresponding runways.
2004-05-28 16:22:40 +00:00
curt
77cae2a89f These old ils/nav data files are no longer used. They are replaced by the
nav.dat.gz file.
2004-05-28 05:27:21 +00:00
curt
9d753fd6b8 Robin's most current navaid database (in his native format.) 2004-05-26 16:55:14 +00:00
curt
4a251cce75 Initial revision of Robin's airway data set. 2004-05-26 16:44:34 +00:00
curt
c6cc6c6a47 Updated fix data from Robin's latest data release. 2004-05-26 16:42:02 +00:00
curt
2811b2688f Updated airport, runway, taxiway, windsock, beacon, and tower data. 2004-05-26 15:33:15 +00:00
ehofman
706a64041a David Culp:
1.  Removed aircraft roll on ground.
2.  Decreased descent pitch angle.
3.  Updated flightplans to include <on-ground>
4.  Fixed property indexing, so all AI aircraft have their own property branch


The default value of <on-ground> is false, so you only need to specify it when
on the ground.  For takeoff you need to specify <on-ground>true</on-ground>
for the first waypoint, and for the acceleration waypoint.  For landing you
need to specify it for the touchdown point and any taxi points.
2004-05-21 16:51:05 +00:00
ehofman
9dfc88751a Updated normal textures. 2004-05-21 14:53:32 +00:00
ehofman
9ff38fc4ed Add the normal textures for the bump-mapped 2d cloud code. 2004-05-20 13:26:41 +00:00
ehofman
ddce8561e1 Add AI models enableing/disableing command line option and support code. 2004-05-19 13:56:47 +00:00
ehofman
eab27ae5b0 Add the demo scenario. 2004-05-17 08:50:40 +00:00
ehofman
2afaa933e3 David Culp:
First, preferences.xml will define the scenario filename.

For now, the other way of defining ai objects still works, so the sailboat
stays in preferences.xml.  Later, I'll move the sailboat into the demo
scenario.  If no scenario filename is given, then no scenario will be
processed.

I changed the demo scenario to create two 737's, one takes off on runway 01L,
and the other takes off on runway 01R.  This will make a good demo for the ai
system.  One problem, if you takeoff on 28L/R right away, you might run into
the taking-off 737's, or be scared.
2004-05-17 08:46:34 +00:00
andy
8bc72e8e7b Fix typing bug where the autopilot wouldn't turn off. GUI buttons
set their properties as strings, not bools.  So set the properties
once from initialization to ensure their types are correct.
2004-05-15 23:04:17 +00:00
andy
acb17eccc9 Really fun (and surprisingly easy) hack: a fuel and weight
configuration dialog box which automagically adapts itself to
aircraft configuration.  Only the A-4 and Cherokee are set up
currently.
2004-05-15 21:50:51 +00:00
ehofman
e70eef10ac Remove two more capital tags. 2004-05-15 13:01:26 +00:00
ehofman
54a870d14b Use lower case letters instead. 2004-05-15 12:46:42 +00:00
ehofman
ef5748a00e David Culp:
Here's the newest AI stuff.

The AIManager at init() creates a new scenario.  Right now the
default_scenario is hard coded in, but eventually the AIManager should get
the scenario filename from preferences.xml.

The scenario defines which AI objects will be created.  Right now it only
creates AIAircraft, but this is easily extended.  The scenario also defines
which flightplan will be assigned to the airplane.  Scenario config files go
in data/Data/AI.

The Airplane gets a pointer to a FlightPlan object.  Each airplane should get
its own flightplan object, even if two airplanes have the same flight plan.
This is because  the flightplan maintains the iterator pointing to the
current waypoint, and two airplanes might be at different locations (for
instance if they were created at different times).  The flight plan files go
in data/Data/AI/FlightPlans.

When the airplane gets to the waypoint named "END" it vanishes.  The
AIAircraft destructor deletes its flight plan (if it has one).

The last waypoint is a place holder only.  I called mine
<WPT><NAME>"EOF"</NAME></WPT>.
2004-05-15 09:07:56 +00:00
andy
fcab4c6e7b That didn't work. I found out why and fixed it. (Heh. Don't put the
bindings on the group object.  Those don't fire callbacks very often.)
2004-05-14 21:57:33 +00:00
andy
cd9119008d Misc changes. Remove the width/height values for the slider, since
the root problem was a C++ bug.  Remove the no-op hbox around the mute
button, and make it "live" when clicked.  Tried to make the slider
live, but discovered that bindings don't work on them; gotta fix
that.  Change some of the wording to be more in line with standard
conventions; hopefully Curt's OK with that. :)
2004-05-14 17:35:18 +00:00
curt
6e40f10ab9 Add a sound config dialog box, needs some work but doesn't hurt anything. 2004-05-14 16:21:11 +00:00
curt
2af0a69765 Property /sim/sound/audible renamed to /sim/sound/pause
Individual aircraft -set.xml files shouldn't set global sound/volume
properties for the entire application.
2004-05-14 15:54:22 +00:00
ehofman
4c93990a46 Add some audio files for the bo-105 that could be potantially useful for others as well. 2004-05-14 13:49:52 +00:00
ehofman
c752dc927d Add the Cyborg Evo from Phillip Jones. 2004-05-13 14:45:27 +00:00
andy
42cd87bbfe The cached tip dialog broke when layout management went in (previous
x/y/width/height values went into the calculation for the next popup,
and things got iteratively worse due to padding issues).  But the
good news is that this whole subsystem is vastly simpler when
implemented with the new interface.
2004-05-12 18:41:29 +00:00
andy
f49f0d18c7 Yank the duplicate target-speed input fields, and use a single one
that spans both rows.  It works well, but might be a little ugly...
2004-05-12 17:06:14 +00:00
andy
54954eb8de GUI layout management and a few visual/eye-candy modifications. See
DOCS/README.layout in the base package for details, along with the
modified dialog files.
2004-05-12 15:37:17 +00:00
david
72777e70cc Light AI (again). 2004-05-08 02:17:38 +00:00
ehofman
3654ccb65f Add the Top-Gun-Fox2-Pro USB joystick, modify the Macally iStick USB joystick and update axis bindings to allow the Saitek X45 to work under Max OSX. 2004-05-06 16:12:32 +00:00
andy
69b9fad5d5 Fixed font metrics. 2004-05-04 19:21:57 +00:00
ehofman
6ff20282a1 Add a dialog box to set the GPS waypoints. 2004-05-03 19:06:02 +00:00
ehofman
1cf6ed49ed Add support for the Macally iStick USB 2004-05-03 19:02:16 +00:00
andy
efd09cea39 Documentation for the new <turbine-engine> and <piston-engine> tags. 2004-05-01 00:30:19 +00:00
andy
5edd104b6b Add windows name for the device, and a note about the mode switch. 2004-04-30 15:31:10 +00:00
andy
7babf42a23 Oops, include the windows driver name string too. 2004-04-30 15:26:55 +00:00
andy
cda071eac3 Fix a few windows issues with the axis mappings 2004-04-30 15:24:04 +00:00
andy
aa2686c0b9 Support a "kill-when-empty" flag on tanks to enable the strict
"engines die when any tank is empty" behavior.  Otherwise, just
deselect the empty tank.  This matches the "both" behavior many
lightplane fuel selectors have.
2004-04-30 14:42:42 +00:00
andy
057b31de46 Docs for taper and midpoint fuselage attributes. 2004-04-30 02:50:38 +00:00
ehofman
796354421d Update the header to match the configuration file. 2004-04-29 09:18:57 +00:00
ehofman
efaab2be2a Fix the UNIX/Windows axis mismatch. 2004-04-29 09:14:14 +00:00
ehofman
b67ef3b275 Make it work on windows and unix. 2004-04-28 09:05:57 +00:00
ehofman
996ed1a717 Adjust the joystick configuration to match the new code changes. 2004-04-28 08:23:38 +00:00
ehofman
072bed40b7 Add the engine matching the MD-11. 2004-04-27 09:22:31 +00:00
ehofman
483b300774 Add support for a Windows version of the SideWinder Precision Pro joystick. 2004-04-27 08:45:01 +00:00
david
1b0ec336bc Added some more ignorable files. 2004-04-19 20:46:05 +00:00