ThorstenB [Sat, 8 Jan 2011 20:38:26 +0000 (21:38 +0100)]
Enable AI traffic for offline users and issue #248
- #248: new enable/disable-ai-traffic command-line option
- AI traffic: don't wait for METAR when real-wx-fetch disabled, to
enable AI traffic when running offline
Torsten Dreyer [Fri, 7 Jan 2011 12:11:06 +0000 (13:11 +0100)]
METAR: enable reports from multiple stations
This patch enables multiple MetarProperties instances tied to the
property tree. For each node's value of /environment/realwx/metar
one MetarProperties instance is created and tied to the property
tree named there. (See FGDATA/Environment/environment.xml for details)
At least one instance will be created to provice backward compatibility
to the existing live-data weather system. This instance (tied to
/environment/metar) fetches a METAR for the nearest airport at a regular
schedule. All other instances fetch a report for airports named in the
property station-id. It re-reads the report every 15 minutes, the
remaining time until the next fetch will be scheduled is in the property
time-to-live. This property can be written to, to extend the live of
this report or schedule an immediate reload by setting it's value to zero.
This patch also provides magnetic variation for the station's location.
Dave Luff [Wed, 5 Jan 2011 00:32:21 +0000 (00:32 +0000)]
ATIS: revert to using inches globally by default.
Revert to using inches globally by default, unless the user sets the
property /sim/atc/use-millibars. Whilst this is therefore wrong by
default, it is probably the best thing in the short term since
FlightGear's altimeter dialog and the altimeters on the default
aircraft set using inches.
Dave Luff [Wed, 5 Jan 2011 00:27:18 +0000 (00:27 +0000)]
ATIS improvements from John Denker
Primarily an improvment to the internationalisation. Previously the ATIS considered
the world as either the UK or the rest of the world. Now it considers it as US+Canada
or the rest of the world. This is much more consistent with global usage of pressure
units as either inches or millibars, which is the most important difference. Also
some other tweaks and cleanups.
Durk Talsma [Mon, 3 Jan 2011 08:59:48 +0000 (09:59 +0100)]
Traffic tools. Conversion scripts to convert between xml and plain text format. Initial version of conf2xml.pl by me. Updated and modified by Mike Nieber. xml2conf.pl by Mike Nieber.
The apt.dat file contains inconsistent case for many airport name abbreviations,
e.g. MUNI/Muni and intl/Intl. Evaluate the abbreviations in lower-case when
expanding them in order to avoid missing any.
Dave Luff [Thu, 30 Dec 2010 13:27:57 +0000 (13:27 +0000)]
ATIS fixes/refactoring from John Denker
Some fixes, and refactoring of the lexicon and abbreviation remapping
into headers where it can be picked up by the scripts that generate
the voice files.
Dave Luff [Wed, 29 Dec 2010 18:52:39 +0000 (18:52 +0000)]
More fixes to the ATCDCL & ATC compilation
Rename ATC/atis.[ch]xx to ATC/atis_mgr.[ch]xx, to avoid confusingly
having 2 atis.cxx and 2 atis.hxx in the source tree. Also fix a copy
and paste error in src/ATCDCL/CMakeLists.txt.
Dave Luff [Tue, 28 Dec 2010 18:08:41 +0000 (18:08 +0000)]
Remove conditional compilation of ATCDCL
This patch removes the conditional compilation of ATCDCL, compiling both
the old and new ATC systems. The old system only provides ATIS, AWOS and
some dialog lookups, and hence should not conflict with the new system.
Dave Luff [Sun, 26 Dec 2010 23:19:57 +0000 (23:19 +0000)]
Fix up some include paths in main.cxx
Don't include legacy ATCmgr.hxx when it is not compiled (default).
Do include 3 paths that are necessary for main, but were only picked
up indirectly through the legacy ATC code.
Tim Moore [Sat, 25 Dec 2010 23:44:02 +0000 (00:44 +0100)]
cmake changes for osg::CullSettings::ClearMask and Fedora
HAVE_CULLSETTINGS_CLEAR_MASK was not set, so a program to test
CLEAR_MASK was added. The Posix timer function clock_gettime is in
librt on Fedora, and probably on other systems too.