1
0
Fork 0

Fix KAP140 VS display (finally!) - bug 340.

Fixed c172p and pa28-161. Zlin50 has not been fixed, but appears to have the same issue.

Clean-up of the KAP140s required - none use the Instruments-3D version of the model!
This commit is contained in:
Stuart Buchanan 2011-07-06 22:03:25 +01:00
parent 687c49abfa
commit c0d8f31c32
3 changed files with 69 additions and 102 deletions

View file

@ -261,26 +261,14 @@ properties' values.
</equals> </equals>
</condition> </condition>
</animation> </animation>
<animation> <animation>
<type>select</type> <type>select</type>
<object-name>vs-minus</object-name> <object-name>vs-minus</object-name>
<object-name>vs-digits-minus</object-name> <object-name>vs-digit2-minus</object-name>
<condition> <object-name>vs-digit3-minus</object-name>
<and> <object-name>vs-digit4-minus</object-name>
<equals> <object-name>vs-digit5-minus</object-name>
<property>/autopilot/KAP140/annunciators/vs-number</property>
<value type="bool">true</value>
</equals>
<greater-than>
<value>0</value>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>vs-digits</object-name>
<condition> <condition>
<and> <and>
<equals> <equals>
@ -288,25 +276,38 @@ properties' values.
<value type="bool">true</value> <value type="bool">true</value>
</equals> </equals>
<less-than> <less-than>
<value>0</value> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<property>/autopilot/KAP140/settings/target-pressure-rate</property> <value>-1.0</value>
</less-than> </less-than>
</and> </and>
</condition> </condition>
</animation> </animation>
<animation>
<type>select</type>
<object-name>vs-digit2</object-name>
<object-name>vs-digit3</object-name>
<object-name>vs-digit4</object-name>
<object-name>vs-digit5</object-name>
<condition>
<and>
<equals>
<property>/autopilot/KAP140/annunciators/vs-number</property>
<value type="bool">true</value>
</equals>
<greater-than-equals>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<value>-1.0</value>
</greater-than-equals>
</and>
</condition>
</animation>
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>vs-digit5</object-name> <object-name>vs-digit5</object-name>
<property>/autopilot/KAP140/settings/target-pressure-rate</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<condition> <factor>0.1</factor>
<less-than> <step>1</step>
<value>0</value> <bias>0.5</bias>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
</less-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>-5800</factor>
<step>0.000017241379</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -316,16 +317,10 @@ properties' values.
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>vs-digit4</object-name> <object-name>vs-digit4</object-name>
<property>/autopilot/KAP140/settings/target-pressure-rate</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<condition> <factor>0.01</factor>
<less-than> <step>10</step>
<value>0</value> <bias>0.5</bias>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
</less-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>-580</factor>
<step>0.00017241379</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -335,16 +330,10 @@ properties' values.
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>vs-digit3</object-name> <object-name>vs-digit3</object-name>
<property>/autopilot/KAP140/settings/target-pressure-rate</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<condition> <factor>0.001</factor>
<less-than> <step>100</step>
<value>0</value> <bias>0.5</bias>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
</less-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>-58</factor>
<step>0.0017241379</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -354,16 +343,10 @@ properties' values.
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>vs-digit2</object-name> <object-name>vs-digit2</object-name>
<property>/autopilot/KAP140/settings/target-pressure-rate</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<condition> <factor>0.0001</factor>
<less-than> <step>1000</step>
<value>0</value> <bias>0.5</bias>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
</less-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>-5.8</factor>
<step>0.017241379</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -373,16 +356,10 @@ properties' values.
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>vs-digit5-minus</object-name> <object-name>vs-digit5-minus</object-name>
<property>/autopilot/KAP140/settings/target-pressure-rate</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<condition> <factor>-0.1</factor>
<greater-than> <step>1</step>
<value>0</value> <bias>0.5</bias>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
</greater-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>5800</factor>
<step>0.000017241379</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -392,16 +369,10 @@ properties' values.
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>vs-digit4-minus</object-name> <object-name>vs-digit4-minus</object-name>
<property>/autopilot/KAP140/settings/target-pressure-rate</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<condition> <factor>-0.01</factor>
<greater-than> <step>10</step>
<value>0</value> <bias>9.5</bias>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
</greater-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>580</factor>
<step>0.00017241379</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -411,16 +382,10 @@ properties' values.
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>vs-digit3-minus</object-name> <object-name>vs-digit3-minus</object-name>
<property>/autopilot/KAP140/settings/target-pressure-rate</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<condition> <factor>-0.001</factor>
<greater-than> <step>100</step>
<value>0</value> <bias>99.5</bias>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
</greater-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>58</factor>
<step>0.0017241379</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -430,22 +395,17 @@ properties' values.
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>vs-digit2-minus</object-name> <object-name>vs-digit2-minus</object-name>
<property>/autopilot/KAP140/settings/target-pressure-rate</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<condition> <factor>-0.0001</factor>
<greater-than> <step>1000</step>
<value>0</value> <bias>999.5</bias>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
</greater-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>5.8</factor>
<step>0.017241379</step>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
<z>0</z> <z>0</z>
</axis> </axis>
</animation> </animation>
<!-- alt-setting --> <!-- alt-setting -->
<animation> <animation>
<type>select</type> <type>select</type>

View file

@ -291,7 +291,7 @@ properties' values.
</equals> </equals>
<less-than> <less-than>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<value>0.0</value> <value>-1.0</value>
</less-than> </less-than>
</and> </and>
</condition> </condition>
@ -310,7 +310,7 @@ properties' values.
</equals> </equals>
<greater-than-equals> <greater-than-equals>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<value>0</value> <value>-1.0</value>
</greater-than-equals> </greater-than-equals>
</and> </and>
</condition> </condition>
@ -321,6 +321,7 @@ properties' values.
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>0.1</factor> <factor>0.1</factor>
<step>1</step> <step>1</step>
<bias>0.5</bias>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -333,6 +334,7 @@ properties' values.
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>0.01</factor> <factor>0.01</factor>
<step>10</step> <step>10</step>
<bias>0.5</bias>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -345,6 +347,7 @@ properties' values.
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>0.001</factor> <factor>0.001</factor>
<step>100</step> <step>100</step>
<bias>0.5</bias>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -357,6 +360,7 @@ properties' values.
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>0.0001</factor> <factor>0.0001</factor>
<step>1000</step> <step>1000</step>
<bias>0.5</bias>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -369,6 +373,7 @@ properties' values.
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>-0.1</factor> <factor>-0.1</factor>
<step>1</step> <step>1</step>
<bias>0.5</bias>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -381,6 +386,7 @@ properties' values.
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>-0.01</factor> <factor>-0.01</factor>
<step>10</step> <step>10</step>
<bias>9.5</bias>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -393,6 +399,7 @@ properties' values.
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>-0.001</factor> <factor>-0.001</factor>
<step>100</step> <step>100</step>
<bias>99.5</bias>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -405,6 +412,7 @@ properties' values.
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property> <property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>-0.0001</factor> <factor>-0.0001</factor>
<step>1000</step> <step>1000</step>
<bias>999.5</bias>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>

View file

@ -131,7 +131,6 @@ Started October 23 2001 by John Check, fgpanels@rockfish.net
<KAP140> <KAP140>
<settings> <settings>
<auto-pitch-trim type="bool">true</auto-pitch-trim> <auto-pitch-trim type="bool">true</auto-pitch-trim>
<target-pressure-rate-fpm type="int">0</target-pressure-rate-fpm>
</settings> </settings>
</KAP140> </KAP140>
</autopilot> </autopilot>