1
0
Fork 0

Partial fix for the c172p autopilot, exposing possible textranslate bug.

See bug #340.
This commit is contained in:
Stuart Buchanan 2011-07-04 20:26:12 +01:00
parent 09062b72a9
commit e47c8d46fc
2 changed files with 40 additions and 79 deletions

View file

@ -289,10 +289,10 @@ properties' values.
<property>/autopilot/KAP140/annunciators/vs-number</property>
<value type="bool">true</value>
</equals>
<greater-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<value>0</value>
</greater-than>
<less-than>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<value>0.0</value>
</less-than>
</and>
</condition>
</animation>
@ -308,25 +308,19 @@ properties' values.
<property>/autopilot/KAP140/annunciators/vs-number</property>
<value type="bool">true</value>
</equals>
<less-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<greater-than-equals>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<value>0</value>
</less-than>
</greater-than-equals>
</and>
</condition>
</animation>
<animation>
<type>textranslate</type>
<object-name>vs-digit5</object-name>
<condition>
<less-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<value>0</value>
</less-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>-5800</factor>
<step>0.000017241379</step>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>0.1</factor>
<step>0.1</step>
<axis>
<x>1</x>
<y>0</y>
@ -336,15 +330,9 @@ properties' values.
<animation>
<type>textranslate</type>
<object-name>vs-digit4</object-name>
<condition>
<less-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<value>0</value>
</less-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>-580</factor>
<step>0.00017241379</step>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>0.01</factor>
<step>0.1</step>
<axis>
<x>1</x>
<y>0</y>
@ -354,15 +342,9 @@ properties' values.
<animation>
<type>textranslate</type>
<object-name>vs-digit3</object-name>
<condition>
<less-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<value>0</value>
</less-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>-58</factor>
<step>0.0017241379</step>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>0.001</factor>
<step>0.1</step>
<axis>
<x>1</x>
<y>0</y>
@ -372,15 +354,9 @@ properties' values.
<animation>
<type>textranslate</type>
<object-name>vs-digit2</object-name>
<condition>
<less-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<value>0</value>
</less-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>-5.8</factor>
<step>0.017241379</step>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>0.0001</factor>
<step>0.1</step>
<axis>
<x>1</x>
<y>0</y>
@ -390,15 +366,9 @@ properties' values.
<animation>
<type>textranslate</type>
<object-name>vs-digit5-minus</object-name>
<condition>
<greater-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<value>0</value>
</greater-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>5800</factor>
<step>0.000017241379</step>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>-0.1</factor>
<step>0.1</step>
<axis>
<x>1</x>
<y>0</y>
@ -408,15 +378,9 @@ properties' values.
<animation>
<type>textranslate</type>
<object-name>vs-digit4-minus</object-name>
<condition>
<greater-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<value>0</value>
</greater-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>580</factor>
<step>0.00017241379</step>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>-0.01</factor>
<step>0.1</step>
<axis>
<x>1</x>
<y>0</y>
@ -426,15 +390,9 @@ properties' values.
<animation>
<type>textranslate</type>
<object-name>vs-digit3-minus</object-name>
<condition>
<greater-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<value>0</value>
</greater-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>58</factor>
<step>0.0017241379</step>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>-0.001</factor>
<step>0.1</step>
<axis>
<x>1</x>
<y>0</y>
@ -444,15 +402,9 @@ properties' values.
<animation>
<type>textranslate</type>
<object-name>vs-digit2-minus</object-name>
<condition>
<greater-than>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<value>0</value>
</greater-than>
</condition>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<factor>5.8</factor>
<step>0.017241379</step>
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
<factor>-0.0001</factor>
<step>0.1</step>
<axis>
<x>1</x>
<y>0</y>

View file

@ -266,6 +266,15 @@
<filter-time>0.1</filter-time>
</filter>
<filter>
<name>conversion to fpm</name>
<debug>false</debug>
<type>gain</type>
<input>/autopilot/KAP140/settings/target-pressure-rate</input>
<output>/autopilot/KAP140/settings/target-pressure-rate-fpm</output>
<gain>-58000</gain>
</filter>
<!-- Vertical Speed (VS) Mode -->
<pid-controller>
<name>Vertical Speed (VS) Mode</name>