A3XX: Fix that Ground Horizon thing on PFD

This commit is contained in:
Joshua Davidson 2017-07-03 23:02:59 -04:00
parent 93c4382fb9
commit 8629ea00b2
2 changed files with 54 additions and 8 deletions

View file

@ -122,10 +122,10 @@
<path>Aircraft/A320Family/Systems/libraries.xml</path> <path>Aircraft/A320Family/Systems/libraries.xml</path>
</autopilot> </autopilot>
<autopilot n="8"> <autopilot n="8">
<path>Systems/fl2070_sound.xml</path> <path>Aircraft/A320Family/Systems/fl2070_sound.xml</path>
</autopilot> </autopilot>
<property-rule n="100"> <property-rule n="100">
<path>Systems/pfd.xml</path> <path>Aircraft/A320Family/Systems/pfd.xml</path>
</property-rule> </property-rule>
</systems> </systems>

View file

@ -277,20 +277,66 @@
<name>Ground Horizon</name> <name>Ground Horizon</name>
<type>gain</type> <type>gain</type>
<gain>1</gain> <gain>1</gain>
<update-interval-secs type="double">0.05</update-interval-secs> <update-interval-secs type="double">0.01</update-interval-secs>
<input> <input>
<condition>
<and>
<equals>
<property>/gear/gear[1]/wow</property>
<value>0</value>
</equals>
<equals>
<property>/gear/gear[2]/wow</property>
<value>0</value>
</equals>
</and>
</condition>
<expression> <expression>
<sum> <dif>
<property>/orientation/pitch-deg</property>
<table> <table>
<property>/position/gear-agl-ft</property> <property>/position/gear-agl-ft</property>
<entry><ind> 2</ind><dep> 0</dep></entry> <entry><ind> 1</ind><dep> 0</dep></entry>
<entry><ind>150</ind><dep>16</dep></entry> <entry><ind>150</ind><dep> 16</dep></entry>
</table> </table>
</sum> <table>
<property>/orientation/pitch-deg</property>
<entry><ind> 0</ind><dep> 0</dep></entry>
<entry><ind>16</ind><dep>-16</dep></entry>
</table>
</dif>
</expression>
</input>
<input>
<condition>
<or>
<equals>
<property>/gear/gear[1]/wow</property>
<value>1</value>
</equals>
<equals>
<property>/gear/gear[2]/wow</property>
<value>1</value>
</equals>
</or>
</condition>
<expression>
<dif>
<table>
<property>/position/gear-agl-ft</property>
<entry><ind> 1</ind><dep> 0</dep></entry>
<entry><ind>150</ind><dep> 16</dep></entry>
</table>
<table>
<property>/orientation/pitch-deg</property>
<entry><ind>-16</ind><dep> 16</dep></entry>
<entry><ind> 0</ind><dep> 0</dep></entry>
<entry><ind> 16</ind><dep>-16</dep></entry>
</table>
</dif>
</expression> </expression>
</input> </input>
<output>/instrumentation/pfd/horizon-ground</output> <output>/instrumentation/pfd/horizon-ground</output>
<min>-16</min>
<max>16</max> <max>16</max>
</filter> </filter>