> Keeping that in mind, I just started working on the following idea:
>
> Step #1
>...
>> Step #2 
So - I am just about to commit what I have done so far. It is a fairly big 
change to the environment controller, so I'd like to announce what's going to 
happen.

The main part is a new subsystem within the subsystem-group "environment" 
which handles METAR data. It is responsible for fetching real-world data, 
parsing the METAR string, presenting the data as properties in the property 
tree and smoothly applying the metar data to the environment. A big part of 
it lived in the FGClouds class before under the name "scenario"
The fetching of real-world METAR can be switched on and off at runtime by 
setting the well known property /environment/params/real-world-weather-fetch 
or at system startup by using --enable-real-weather-fetch. 
A new property /environment/metar/data now exists. An arbitrary METAR string 
can be written to this property at runtime. This METAR will be parsed at the 
weather within will smoothly be applied to the current environment. For 
convenience, a new startup parameter --metar is introduced to set the 
property.
METAR data sets the cloud layers, pressure, temperature, visibility and the 
winds for the boundary and the aloft layer. This can be switched off 
completely, so one may configure a static weather using the weather and 
clouds dialog or providing the required properties. The METAR interpreter is 
disabled by setting the 
property /environment/params/metar-updates-environment.
The setup of winds aloft can be switched off individually by setting the 
property /environment/params/metar-updates-winds-aloft to make use of other 
services providing this data.

The weather_scenario dialog is changed and supports now the following actions:
* Enable/Disable real-weather-fetch
* Select on of many predefined weather scenarios
* Enter a user defined METAR string

Most of this is nothing really new. The code has been there and I just did 
some reorganization to make the new features available. Anyhow, the 
environment_ctrl.?xx have change a lot and so does fgclouds.?xx.
 I'm planning to commit all this before the weekend, so there is some time to 
fix whatever went wrong.

Stay tuned

Torsten

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to