1
0
Fork 0

Merge branch 'master' of git://gitorious.org/fg/fgdata

This commit is contained in:
BARANGER Emmanuel 2012-08-12 03:42:50 +02:00
commit eda3232dc4
3 changed files with 18 additions and 7 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

@ -904,7 +904,7 @@ var showWeightDialog = func {
if( fdmdata.cg != nil ) {
var n = props.globals.getNode("/limits/mass-and-balance/cg/dimension");
tablerow("Center of Gravity", fdmdata.cg, "%.1f " ~ (n == nil ? "in" : n.getValue()));
tablerow("Center of Gravity", props.globals.getNode(fdmdata.cg), "%.1f " ~ (n == nil ? "in" : n.getValue()));
}
dialog[name].addChild("hrule");

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>