1
0
Fork 0
flightgear/src/ATC
curt 0bb1494452 David Luff:
Attached is a patch to the airport data storage that I would like committed
after review if acceptable.  Currently the storage of airports mapped by ID
is by locally created objects - about 12 Meg or so created on the stack if
I am not mistaken.  I've changed this to creating the airports on the heap,
and storing pointers to them - see FGAirportList.add(...) in
src/Airports/simple.cxx.  I believe that this is probably better practice,
and it's certainly cured some strange problems I was seeing when accessing
the airport data with some gps unit code.  Changes resulting from this have
cascaded through a few files which access the data - 11 files are modified
in all.  Melchior and Durk - you might want to test this and shout if there
are problems since the metar and traffic code are probably the biggest
users of the airport data.  I've also added a fuzzy search function that
returns the next matching airport code in ASCII sequence in order to
support gps units that have autocompletion of partially entered codes.

More generally, the simple airport class seems to have grown a lot with the
fairly recent addition of the parking, runway preference and schedule time
code.  It is no longer just an encapsulation of the global airport data
file, and has grown to 552 bytes in size when unpopulated (about 1/2 a K!).
 My personal opinion is that we should look to just store the basic data in
apt.dat for all global airports in a simple airport class, plus globally
needed data (metar available?), and then have the traffic, AI and ATC
subsystems create more advanced airports for themselves as needed in the
area of interest.  Once a significant number of airports worldwide have
ground networks and parking defined, it will be impractical and unnecessary
to store them all in memory.  That's just a thought for the future though.
2005-09-20 20:26:57 +00:00
..
.cvsignore -Removed .cvsignore from itself, since .cvsignore is now in the CVS 2001-12-12 04:15:23 +00:00
AIEntity.cxx Mathias Fröhölöiööhlich: 2005-09-05 13:25:09 +00:00
AIEntity.hxx Remove unnecessary inclusions of sg.h ans ssg.h 2004-09-19 16:33:38 +00:00
AIGAVFRTraffic.cxx Delay deletion of AI traffic until after it has had time to release the frequency after its last transmission. This is a bit of a band-aid for more deep-seated problems with the dialog model, but it will solve some problems for now 2004-03-20 03:13:29 +00:00
AIGAVFRTraffic.hxx Remove unnecessary inclusions of sg.h ans ssg.h 2004-09-19 16:33:38 +00:00
AILocalTraffic.cxx Mathias Fröhlich: 2005-08-14 12:57:12 +00:00
AILocalTraffic.hxx Remove unnecessary inclusions of sg.h ans ssg.h 2004-09-19 16:33:38 +00:00
AIMgr.cxx I had hoped that gmtime's lack of thread-safety wouldn't bite us. It does. 2005-06-03 08:39:50 +00:00
AIMgr.hxx Emergency fix for AI model loading - non existance of the piper model as in the latest base package crashes the program - add exception handler during load. Needs to be replaced with better AI aircraft loading logic at some point 2005-01-21 15:50:29 +00:00
AIPlane.cxx Roy Vegard Ovesen: 2004-12-03 21:21:16 +00:00
AIPlane.hxx Remove unnecessary inclusions of sg.h ans ssg.h 2004-09-19 16:33:38 +00:00
approach.cxx there's no such thing as /sim/time/elapsed-ms --> elapsed-sec 2005-05-10 09:29:24 +00:00
approach.hxx there's no such thing as /sim/time/elapsed-ms --> elapsed-sec 2005-05-10 09:29:24 +00:00
ATC.cxx Roy Vegard Ovesen: 2004-12-03 21:21:16 +00:00
ATC.hxx Use the Transmit-Render functions for tower output instead of directly calling ATCdisplay. This is part of preparations for optionally handing the strings off to a TTS engine if required. 2004-09-30 15:43:32 +00:00
ATCDialog.cxx Durk Talsma: 2005-02-10 09:01:51 +00:00
ATCDialog.hxx Further progress towards interactive ATC control 2003-11-05 10:06:57 +00:00
ATCdisplay.cxx Migrate FlightGear code to use "#include SG_GL*" defined in 2004-11-18 19:53:00 +00:00
ATCdisplay.hxx Use the Transmit-Render functions for tower output instead of directly calling ATCdisplay. This is part of preparations for optionally handing the strings off to a TTS engine if required. 2004-09-30 15:43:32 +00:00
ATCmgr.cxx Durk Talsma: 2005-02-10 09:01:51 +00:00
ATCmgr.hxx Lots of changes to the ATC/AI system for initial revision of random AI GA VFR traffic 2004-01-23 17:18:24 +00:00
ATCProjection.cxx Add a convienient ctor 2005-09-09 12:33:23 +00:00
ATCProjection.hxx Add a convienient ctor 2005-09-09 12:33:23 +00:00
ATCutils.cxx David Luff: 2005-09-20 20:26:57 +00:00
ATCutils.hxx Lots of changes to the ATC/AI system for initial revision of random AI GA VFR traffic 2004-01-23 17:18:24 +00:00
ATCVoice.cxx Clean up some sound buffer allocation/deallocation issues. 2004-05-10 21:24:30 +00:00
ATCVoice.hxx Changes to go along with small interface changes in simgear/sound/libsgsound 2004-04-24 19:28:12 +00:00
atis.cxx Make sure the ATIS reports surface winds at airports above sea-level 2004-12-27 23:55:54 +00:00
atis.hxx Start adding a better framework for ATC-initiated communication. There should be no user-visible change from this commit 2004-03-10 16:01:17 +00:00
commlist.cxx Durk Talsma: 2005-02-10 09:01:51 +00:00
commlist.hxx Minor fix 2005-02-02 19:16:51 +00:00
ground.cxx Replace the data/Airports/basic.dat.gz and data/Airports/runways.dat.gz with 2004-12-22 23:57:07 +00:00
ground.hxx Start adding a better framework for ATC-initiated communication. There should be no user-visible change from this commit 2004-03-10 16:01:17 +00:00
Makefile.am Lots of changes to the ATC/AI system for initial revision of random AI GA VFR traffic 2004-01-23 17:18:24 +00:00
tower.cxx Harald JOHSEN: 2005-07-18 16:58:22 +00:00
tower.hxx Slightly more robust handling of runway vacation 2004-03-20 02:55:25 +00:00
transmission.cxx Fix a compiler warning 2003-09-22 23:56:09 +00:00
transmission.hxx Rationalisation of the ATC popup dialog code - moved it all over to AK's dynamic list system and removed the hardcoded list code, extended the dynamic list system a bit, started adding support for callbacks from the user interaction 2003-11-04 11:54:42 +00:00
transmissionlist.cxx Fix my mailing address by replacing it with my web page. 2004-11-19 22:10:41 +00:00
transmissionlist.hxx Fix my mailing address by replacing it with my web page. 2004-11-19 22:10:41 +00:00