1
0
Fork 0

Bugfix: HUD GPS data only shown if WP1 is valid.

When WP1 is invalid, hide most data since it's bogus.
This commit is contained in:
James Turner 2014-01-14 13:16:50 +00:00
parent cc6c7ab3d8
commit 17a1aee4e4

View file

@ -67,6 +67,7 @@
</input> </input>
<condition> <condition>
<property>/instrumentation/gps/wp/wp[1]/valid</property>
<equals> <equals>
<property>/instrumentation/gps/mode</property> <property>/instrumentation/gps/mode</property>
<value>dto</value> <value>dto</value>
@ -84,6 +85,7 @@
</input> </input>
<condition> <condition>
<property>/instrumentation/gps/wp/wp[1]/valid</property>
<equals> <equals>
<property>/instrumentation/gps/mode</property> <property>/instrumentation/gps/mode</property>
<value>leg</value> <value>leg</value>
@ -103,6 +105,7 @@
</input> </input>
<condition> <condition>
<property>/instrumentation/gps/wp/wp[1]/valid</property>
<equals> <equals>
<property>/instrumentation/gps/mode</property> <property>/instrumentation/gps/mode</property>
<value>leg</value> <value>leg</value>
@ -122,6 +125,9 @@
<input> <input>
<property>/instrumentation/gps/wp/wp[1]/distance-nm</property> <property>/instrumentation/gps/wp/wp[1]/distance-nm</property>
</input> </input>
<condition>
<property>/instrumentation/gps/wp/wp[1]/valid</property>
</condition>
</label> </label>
<label> <label>
@ -134,6 +140,9 @@
<input> <input>
<property>/instrumentation/gps/wp/wp[1]/TTW</property> <property>/instrumentation/gps/wp/wp[1]/TTW</property>
</input> </input>
<condition>
<property>/instrumentation/gps/wp/wp[1]/valid</property>
</condition>
</label> </label>
<label> <label>
@ -145,6 +154,9 @@
<input> <input>
<property>/instrumentation/gps/wp/wp[1]/bearing-mag-deg</property> <property>/instrumentation/gps/wp/wp[1]/bearing-mag-deg</property>
</input> </input>
<condition>
<property>/instrumentation/gps/wp/wp[1]/valid</property>
</condition>
</label> </label>
<label> <label>
@ -159,6 +171,7 @@
</input> </input>
<condition> <condition>
<property>/instrumentation/gps/wp/wp[1]/valid</property>
<greater-than> <greater-than>
<expression> <expression>
<abs><property>/instrumentation/gps/wp/wp[1]/course-error-nm</property></abs> <abs><property>/instrumentation/gps/wp/wp[1]/course-error-nm</property></abs>