1
0
Fork 0
Commit graph

19 commits

Author SHA1 Message Date
James Turner
eb53f3c919 Fix missing include for Linux. 2013-03-17 14:07:07 +00:00
James Turner
c6221b2c84 Fix max-metar-age, bug #1076.
Will merge to 2.10 branch once verified.
2013-03-17 13:14:08 +00:00
James Turner
6c6452c62b Adapt to revised SGTime API
Convert SGTime users to pass SGGeod/SGPath instead of raw values.
2012-09-24 00:03:23 +01:00
Torsten Dreyer
644bb8c4f4 Spring-cleaning: some minor optimization
- initialize uninitialized properties
- use prefix instead of postfix increments
- reduce visibility of variables
- use empty() instead of size() == 0 for vector and string
- pass string by reference, not by value
2012-03-06 22:28:18 +01:00
ThorstenB
e9a9f8c96d Use some more logging class variety.
Stop using SG_GENERAL and SG_ALL everywhere. Using different
classes makes switching the classes really useful...
2011-08-12 00:09:26 +02:00
Torsten Dreyer
e61d37a7a3 Remove some unused code 2011-05-31 20:58:22 +02:00
Torsten Dreyer
8fe3d6c8e8 Bugfix: reset transparency of non fog/mist/haze layers 2011-01-24 19:41:56 +01:00
Torsten Dreyer
e86cecf470 Fix bug #253, at least partially
make options
--wind=nnn@mm
--visibility
--visibility-miles
--ceiling
--turbulence
work again. These options now write properties in the
/environment/config/presets
branch. The values will be applied in the property-rules
in FGDATA/Environment/interpolator.xml
2011-01-19 19:36:04 +01:00
Torsten Dreyer
9337584df0 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.
2011-01-07 13:11:06 +01:00
Torsten Dreyer
e1858b14b6 GlobalWeather: don't crash
Don't crash when flying into METAR generated weather
reporting fog/mist/haze and clear sky
2010-12-27 14:24:44 +01:00
Torsten Dreyer
f8c7f95745 fog/misg/haze: tweak layer's top and limit to 2d-clouds
For the time being, this works only with 3d clouds disabled.
When enabled, limit the top of the misty layer to the bottom of
a possible cloudlayer above.
2010-12-20 21:07:59 +01:00
Torsten Dreyer
80e7955a0c metar: make unknown station-id's work again
Restore old feature where unknown station id's like XXXX were
substituted by the metar station closest to the current position.
2010-12-15 17:57:05 +01:00
Torsten Dreyer
8afcb8da0b metar fog/mist/haze: some final(?) tweaks 2010-12-15 16:58:42 +01:00
Torsten Dreyer
1b4a4c9f52 Metar fog/mist/haze: no hardcoded constants
Move hardcoded constants to the property tree
2010-12-12 21:30:39 +01:00
Torsten Dreyer
87daa1290a Improved fog/mist/haze creation from METAR 2010-12-09 11:08:36 +01:00
Torsten Dreyer
29161c2114 First shot at implementing fog from METAR 2010-12-05 21:34:28 +01:00
Torsten Dreyer
31a807563b Fix static initialization order trouble on OSX 2010-09-13 21:21:10 +02:00
Torsten Dreyer
1a3eddbbcd Keep MSVC happy with the Environment updates 2010-09-11 20:32:37 +02:00
Torsten Dreyer
5c6fe95259 Environment controller overhaul
This is the initial commit for a reworked environment controller.
The main intention is to decouple the individual modules like
metar fetch, metar properties, environment interpolation etc.
to make it easier for other weather module developers to modify
environment settings.
As a side effect, the dialogs for weather-scenario, weather-conditions,
clouds and precipitations have been merged into a single dialog
2010-09-11 16:11:35 +02:00