curt
3c7bdc31d9
Cosmetic changes for new code moved into simgear to make the naming scheme
...
better follow simgear conventions.
2003-05-13 03:18:42 +00:00
curt
56db994994
Moved src/Model/loader.[ch]xx and src/Model/model.[ch]xx to
...
simgear/scene/model/
2003-05-09 20:40:59 +00:00
curt
51c04e9e4c
- Added "SG" prefix to sound classes that recently moved to SimGear.
...
- Cleaned up some minor compiler warnings.
- Moved src/Model/placement.[ch]xx over into simgear/scene/model/
2003-05-09 19:39:48 +00:00
ehofman
5ecfcca7e4
Extract the sound code from FlightGear and move it to SimGear
2003-05-09 18:44:33 +00:00
curt
575b3ac98c
Working at unraveling and breaking dependencies inside of src/Model.
...
I split the FGModelPlacement code out into it's own set of source files.
I created two versions of the fgLoad3DModel() routine. One that is
unecumbered by a panelnode dependency and one that is. acmodel.cxx is
the only place that needs to load an aircraft with instrument panels.
model.[ch]xx are now pretty much free to move over into simgear.
loader.[ch]xx should be able to follow closely behind.
This will be a big step towards being able to move the material management
code over into simgear.
2003-05-08 20:28:46 +00:00
daveluff
a142091a08
Fix to an ATC/AI communication timing bug
2003-05-07 00:07:20 +00:00
curt
2119db35c3
This is step "1" of probably "many" in the process of separating out the
...
scene management code and organizing it within simgear. My strategy is
to identify the code I want to move, and break it's direct flightgear
dependencies. Then it will be free to move over into the simgear package.
- Moved some property specific code into simgear/props/
- Split out the condition code from fgfs/src/Main/fg_props and put it
in it's own source file in simgear/props/
- Created a scene subdirectory for scenery, model, and material property
related code.
- Moved location.[ch]xx into simgear/scene/model/
- The location and condition code had dependencies on flightgear's global
state (all the globals-> stuff, the flightgear property tree, etc.) SimGear
code can't depend on it so that data has to be passed as parameters to the
functions/methods/constructors.
- This need to pass data as function parameters had a dramatic cascading
effect throughout the FlightGear code.
2003-05-06 23:46:24 +00:00
daveluff
a36bf24252
Further progress towards intelligent interaction between the AI plane and the user's plane
2003-04-15 22:55:22 +00:00
daveluff
139f3df761
Moved PatternLeg from AILocalTraffic to AIPlane
2003-04-15 22:54:11 +00:00
daveluff
49434e3085
Fixed some stuff in runway number to spoken string function, and added Alexander's function to get the minimum angular difference between two headings from approach to ATCutils
2003-04-15 10:37:58 +00:00
daveluff
541ff04072
Fix of framerate drop due to broken OnActiveRunway function - don't read in the runway.mk4 file (~1MB) every frame
2003-03-31 16:24:41 +00:00
daveluff
3f53eaeaa7
Add width to ATC RunwayDetails structure
2003-03-31 16:23:49 +00:00
daveluff
fa094c9980
Slight change of function api
2003-03-31 16:23:23 +00:00
daveluff
e4e6864613
Emergency fix of framerate problem
2003-03-31 09:51:36 +00:00
daveluff
657dfefec0
Calculate active runway in FGGround. It would be better to get the active runway from FGTower instead of duplicating the code to calculate it, but at the moment I can't guarantee that tower control at a given airport will be initialised before ground control, so this will have to do for now...
2003-03-28 15:25:48 +00:00
daveluff
b19e54c78a
Moved the RunwayDetails struct definition out of tower.hxx to ATC.hxx
2003-03-28 15:24:02 +00:00
daveluff
d936531600
Initialise user lon, lat and elev
2003-03-27 15:46:23 +00:00
daveluff
9efdc3030e
Some fixes to Alexander's pop-up dialog box
2003-03-27 15:45:48 +00:00
daveluff
e5dbeccc58
Log to SG_ATC instead of SG_GENERAL and cout
2003-03-27 15:45:20 +00:00
daveluff
55daa52f79
Pass dt to update(...)
2003-03-27 15:44:35 +00:00
daveluff
559b134878
Start interacting with ATC (still somewhat rudimentary)
2003-03-27 15:44:10 +00:00
daveluff
7fc214fab3
Progress towards interactive ATC...
2003-03-27 15:41:09 +00:00
daveluff
a4ea7c7561
Oops - let some DOS line endings creep in - quickly get rid of them before Erik notices...
2003-03-26 10:02:32 +00:00
daveluff
81c9e14c7e
MSVC fix from Frederic Bouvier
2003-03-24 11:06:00 +00:00
daveluff
3be0e17e66
Remove un-needed typedef
2003-03-24 11:05:25 +00:00
daveluff
254dc934d1
Add a function to allow transmission of messages to AI entities - the actual implementation is a bit of a temporary hack at the moment
2003-03-20 11:53:44 +00:00
daveluff
6fef4d457b
Load ground ATC frequency data, and map all stations by bucket index
2003-03-20 11:51:44 +00:00
daveluff
ef3b5a4d61
Minor formatting changes
2003-03-20 11:50:34 +00:00
daveluff
3364b6f19d
Base length of time messages are displayed for on dt rather than iterations in order to de-couple it from frame rate
2003-03-20 11:22:08 +00:00
ehofman
01be2ed8e4
Compiler warning fixes and small updates
2003-03-19 17:46:52 +00:00
daveluff
47f46d151d
Add the ability to scroll single ATC messages - this is toggled using property /ATC/display/scroll-single-messages (off by default). Also increased the time that single messages are displayed in non-scrolling mode - this makes ATC transmissions easier to read.
2003-03-17 11:32:51 +00:00
daveluff
b9985548d4
Fix a nasty problem in the FGAIMgr search code that could cause a stackdump with AI traffic enabled
2003-03-14 12:27:24 +00:00
daveluff
f74d6ec90e
Whoops - left out ++itr in a while(1) loop
2003-03-13 11:44:40 +00:00
daveluff
034f224de7
Need to call Init() when initialising tower, otherwise bad things happen...
2003-03-11 23:41:03 +00:00
daveluff
ac731cdd36
Emergency fix of a possible dereference dangling pointer path uncovered by Martin Spott
2003-03-11 17:15:23 +00:00
daveluff
46261bb51b
Added a function to determine whether a point is on a given runway
2003-03-11 13:25:14 +00:00
daveluff
0333c21bbf
Added a function to return the closest ATC station of a given type
2003-03-11 13:24:35 +00:00
daveluff
aabe4da5ca
Start roughing in interactive tower control. AI planes now get the ground control pointer through tower control, which then handles the difference between larger airports with separate ground and smaller ones where tower handles it
2003-03-10 13:41:37 +00:00
daveluff
3a2495e47a
Add units to function documentation
2003-03-10 13:40:10 +00:00
daveluff
75e26663bd
Fixed a compile problem that affected gcc-2.95 users on Cygwin and removed a few unused variable warnings
2003-03-09 23:04:38 +00:00
daveluff
a32c7d50bb
FGAIMgr now searches for proximity to airports with logical networks defined at startup and periodically thereafter, and only starts AI traffic when a suitable airport is found in range (currently only KEMT). In theory it should now be possible for a user to drop in a *.taxi file in my undocumented-shortly-to-change format into fgfsbase/ATC and have an AI Cessna appear at that airport and fly a circuit if they start there or fly near there. In practice its probably better until we start using the output from Bernie's taxiway editor, and there's bound to be glitches once other networks are tried
2003-03-09 17:39:44 +00:00
daveluff
a9463a8399
Added a range parameter to the FindByPos search function, also fixed a bug whereby one too few buckets in the North and East direction were searched - hence when only one bucket should have been searched none were
2003-03-09 17:35:16 +00:00
curt
4223da1a4b
Eeek! Emergency fix of a couple "case" problems for includes.
2003-03-07 14:42:14 +00:00
daveluff
c49a6be9bc
Whoops - forgot SG_USING_STD(cout)
2003-03-07 14:06:52 +00:00
daveluff
96970dcbaf
More stuff to make the AI/ATC system less hardwired and more generic. Most of the hardwired stuff is now gone - there's just a little bit left in FGAIMgr
2003-03-07 13:58:33 +00:00
daveluff
1154a0dae2
Added FindByCode (airport ICAO code) to commlist. This is basically a wrapper around Flightgear's airport lookup and FindByPos
2003-03-06 14:06:34 +00:00
daveluff
c70faa4c0d
Added constructor to ATCData struct
2003-03-06 14:04:02 +00:00
daveluff
3f15f38d8d
If no wind, active runway is now read-out as the most Westward facing one which is consistent with the rest of FlightGear
2003-03-05 21:40:24 +00:00
daveluff
42527ecf1b
Removed a lot of the remaining hardwired KEMT stuff, made the initialisation more generic, added the ability to taxi from a parking spot to a runway, used real ground elevation more
2003-03-05 21:38:29 +00:00
daveluff
8bbaba3193
Added some airport search functions that are straight copies of a couple of statics in fg_init, and will probably be removed again at some point, and added a function to convert a runway designator string to a spoken style phrase
2003-03-05 21:34:58 +00:00