1
0
Fork 0

Fix automated METAR snow line.

This commit is contained in:
Gijs de Rooy 2012-08-11 19:56:29 +02:00
parent 586b288464
commit b950ff1e6e
2 changed files with 17 additions and 6 deletions

View file

@ -419,13 +419,23 @@
<condition>
<property>/environment/params/metar-updates-snow-level</property>
<property>/environment/params/metar-updates-environment</property>
<property>/environment/metar/snow-cover</property>
<property>/environment/metar/valid</property>
<less-than>
<expression>
<difference>
<product>
<property>/environment/metar/station-elevation-ft</property>
<value>0.3048</value>
</product>
<property>/environment/snow-level-m</property>
</difference>
</expression>
<value>0</value>
</less-than>
</condition>
</enable>
<input>
<condition>
<property>/environment/metar/valid</property>
<property>/environment/metar/snow-cover</property>
</condition>
<expression>
<sum>
<product>
@ -438,6 +448,7 @@
</input>
<input>3200</input>
<output>/environment/snow-level-m</output>
<max>3200</max>
<min>-425</min>
<max>7500</max>
</filter>
</PropertyList>

View file

@ -93,7 +93,7 @@
<col>0</col>
<colspan>4</colspan>
<halign>left</halign>
<label>Set snow level from METAR</label>
<label>Set maximum snow level from METAR</label>
<name>metar-snow</name>
<property>/environment/params/metar-updates-snow-level</property>
<binding>