| 1 |
<?xml version="1.0" ?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
<PropertyList> |
| 19 |
<params> |
| 20 |
<from>environment/metar/clouds/layer[0]/elevation-ft</from> |
| 21 |
<to>/environment/clouds/layer[0]/elevation-ft</to> |
| 22 |
</params> |
| 23 |
<name>MetarController:clouds:altitude_interpolate</name> |
| 24 |
<type>exponential</type> |
| 25 |
<filter-time> |
| 26 |
<condition> |
| 27 |
|
| 28 |
<or> |
| 29 |
<less-than> |
| 30 |
<property alias="../../../../../params/from"/> |
| 31 |
<value>-9000</value> |
| 32 |
</less-than> |
| 33 |
<less-than> |
| 34 |
<property alias="../../../../../params/to"/> |
| 35 |
<value>-9000</value> |
| 36 |
</less-than> |
| 37 |
<greater-than> |
| 38 |
<expression> |
| 39 |
<abs> |
| 40 |
<difference> |
| 41 |
<property alias="../../../../../../../../params/from"/> |
| 42 |
<property alias="../../../../../../../../params/to"/> |
| 43 |
</difference> |
| 44 |
</abs> |
| 45 |
</expression> |
| 46 |
<value>2000</value> |
| 47 |
</greater-than> |
| 48 |
</or> |
| 49 |
</condition> |
| 50 |
<value>0</value> |
| 51 |
</filter-time> |
| 52 |
|
| 53 |
<filter-time>60</filter-time> |
| 54 |
|
| 55 |
<enable> |
| 56 |
<condition> |
| 57 |
<property>/environment/metar/valid</property> |
| 58 |
<property>/environment/params/metar-updates-environment</property> |
| 59 |
</condition> |
| 60 |
</enable> |
| 61 |
<input alias="../params/from"/> |
| 62 |
<output alias="../params/to"/> |
| 63 |
</PropertyList> |