1
0
Fork 0

Fix issue 2537, re-enable the wind interpolation when live data is (temporarily) unavailable.

This commit is contained in:
Erik Hofman 2021-02-08 09:44:31 +01:00
parent 0b62b8b03e
commit 0c07fce69f

View file

@ -23,6 +23,24 @@
-->
<PropertyList>
<!--
Normally /environment/config/enabled is disabled when Advanced Weather is
selected. But In case live weather fails values can get out of control.
So re-enable the interpolators is such case.
https://sourceforge.net/p/flightgear/codetickets/2537/
-->
<logic>
<input>
<or>
<property>/environment/config/enabled</property>
<not>
<property>/environment/metar/valid</property>
</not>
</or>
</input>
<output>/environment/config/livedata-disabled</output>
</logic>
<filter>
<name>EnvironmentInterpolator:temperature-sea-level-degc</name>
<enable>
@ -83,7 +101,7 @@
<filter>
<name>EnvironmentInterpolator:wind-from-north</name>
<enable>
<property>/environment/config/enabled</property>
<property>/environment/config/livedata-disabled</property>
</enable>
<input>
<condition>
@ -100,7 +118,7 @@
<filter>
<name>EnvironmentInterpolator:wind-from-east</name>
<enable>
<property>/environment/config/enabled</property>
<property>/environment/config/livedata-disabled</property>
</enable>
<input>
<condition>