1
0
Fork 0

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
This commit is contained in:
Torsten Dreyer 2010-09-11 16:15:49 +02:00
parent a875bcbbb4
commit c6072c9c76
4 changed files with 1111 additions and 892 deletions

View file

@ -66,7 +66,7 @@
</scenario>
<scenario>
<name>CAT IIIb minimum</name>
<metar>XXXX 012345Z VRB01KT 0100 FG OVC001 OVC002 02/02 Q0990</metar>
<metar>XXXX 012345Z VRB01KT 0100 -RA FG OVC001 OVC002 02/02 Q0990</metar>
<description>This is expert level. You will barely see the taxiway from the cockpit, even if you are
on ground. Fog and light drizzle, freezing level at 1000ft.</description>
</scenario>
@ -202,9 +202,18 @@
<cloudlayers include="cloudlayers.xml"/>
<realwx>
<metar>/environment/metar</metar>
<!-- user NOAA for METAR (no aloft data) -->
<data-source>noaa</data-source>
<!-- use http://www.navlost.eu/ for METAR and aloft data -->
<!-- data-source>nwx<data-source -->
<enabled>true</enabled>
</realwx>
<params>
<real-world-weather-fetch type="bool">false</real-world-weather-fetch>
<metar-max-age-min type="long">240</metar-max-age-min>
<metar-max-age-min type="long">240</metar-max-age-min> <!-- deprecated -->
<metar-updates-environment type="bool">true</metar-updates-environment>
<control-fdm-atmosphere type="bool">true</control-fdm-atmosphere>
<contrail-altitude>30000</contrail-altitude>

File diff suppressed because it is too large Load diff

View file

@ -289,30 +289,30 @@
<label>Environment</label>
<item>
<label>Weather Scenario</label>
<binding>
<command>dialog-show</command>
<dialog-name>weather_scenario</dialog-name>
</binding>
</item>
<item>
<label>Weather Conditions</label>
<label>Global Weather</label>
<binding>
<command>dialog-show</command>
<dialog-name>weather</dialog-name>
</binding>
</item>
<item>
<label>Clouds</label>
<binding>
<command>dialog-show</command>
<dialog-name>clouds</dialog-name>
</binding>
</item>
<item>
<item>
<label>Local Weather</label>
<binding>
<command>dialog-show</command>
<dialog-name>local_weather</dialog-name>
</binding>
</item>
<item>
<label>Local Weather Tiles</label>
<binding>
<command>dialog-show</command>
<dialog-name>local_weather_tiles</dialog-name>
</binding>
</item>
<item>
<label>Time Settings</label>
<binding>
<command>dialog-show</command>
@ -320,14 +320,6 @@
</binding>
</item>
<item>
<label>Rain/Snow Settings</label>
<binding>
<command>dialog-show</command>
<dialog-name>rainsnow</dialog-name>
</binding>
</item>
<item>
<label>Wildfire Settings</label>
<binding>
@ -336,21 +328,6 @@
</binding>
</item>
<item>
<label>Local Weather</label>
<binding>
<command>dialog-show</command>
<dialog-name>local_weather</dialog-name>
</binding>
</item>
<item>
<label>Local Weather Tiles</label>
<binding>
<command>dialog-show</command>
<dialog-name>local_weather_tiles</dialog-name>
</binding>
</item>
</menu>
<menu>

View file

@ -282,14 +282,21 @@ Started September 2000 by David Megginson, david@megginson.com
<systems>
<path>Aircraft/Generic/generic-systems.xml</path>
<autopilot>
<name>generic autopilot</name>
<path>Aircraft/Generic/generic-autopilot.xml</path>
</autopilot>
<!--
replace the hard coded helpers, which are gone now
-->
<autopilot>
<name>autopilot helpers</name>
<path>Aircraft/Generic/generic-autopilot-helper.xml</path>
</autopilot>
<property-rule>
<name>Environment Interpolation Rule</name>
<path>Environment/interpolator.xml</path>
</property-rule>
<property-rule>
<name>Environment METAR Interpolation Rule</name>
<path>Environment/metarinterpolator.xml</path>
</property-rule>
</systems>
<instrumentation>
<path>Aircraft/Generic/generic-instrumentation.xml</path>