fbf4be91e3
from https://github.com/c172p-team/c172p/releases/tag/version%2F2020.4 f0e108bca8ebfde42c8496df84dd580716242a0d
2961 lines
85 KiB
XML
2961 lines
85 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- ______________________________________________________________________________
|
|
KAP140 Two Axis with Altitude Preselect autopilot instrument.
|
|
|
|
3D version started 2007 by Ron Jensen, wino@jentronics.com.
|
|
Based on 2D version started 2004 by Roy Vegard Ovesen, rvovesen@tiscali.no.
|
|
|
|
This is an instrument configuration file for the open-source flight
|
|
simulator FlightGear (www.flightgear.org). The file is an XML-encoded
|
|
FlightGear property list defining the instrument's animations and actions.
|
|
|
|
Actions are hotspots on the instrument that will respond to a mouse
|
|
click. Actions always modify the values of properties, either by
|
|
adjusting them, toggling them, or swaping them with other
|
|
properties' values.
|
|
-->
|
|
<PropertyList include="kap140-config.xml">
|
|
|
|
<name>KAP140TwoAxisAlt</name>
|
|
<path>kap140.ac</path>
|
|
|
|
<animation>
|
|
<name>annunciators</name>
|
|
|
|
<object-name>ann-fail-pitch</object-name>
|
|
<object-name>ann-fail-roll</object-name>
|
|
|
|
<object-name>ann-ap-act</object-name>
|
|
<object-name>ann-ap-on</object-name>
|
|
<object-name>ann-yd</object-name>
|
|
|
|
<object-name>ann-mode1-ap</object-name>
|
|
<object-name>ann-mode1-rol</object-name>
|
|
<object-name>ann-mode1-hdg</object-name>
|
|
<object-name>ann-mode1-nav</object-name>
|
|
<object-name>ann-mode1-apr</object-name>
|
|
<object-name>ann-mode1-rev</object-name>
|
|
|
|
<object-name>ann-arm1</object-name>
|
|
<object-name>ann-arm1-nav</object-name>
|
|
<object-name>ann-arm1-apr</object-name>
|
|
<object-name>ann-arm1-rev</object-name>
|
|
<object-name>ann-arm1-gs</object-name>
|
|
|
|
<object-name>ann-mode2-pft</object-name>
|
|
<object-name>ann-mode2-vs</object-name>
|
|
<object-name>ann-mode2-alt</object-name>
|
|
<object-name>ann-mode2-gs</object-name>
|
|
<object-name>ann-mode2-fail</object-name>
|
|
|
|
<object-name>ann-arm2</object-name>
|
|
<object-name>ann-arm2-alt</object-name>
|
|
|
|
<object-name>ann-pt-up</object-name>
|
|
<object-name>ann-pt</object-name>
|
|
<object-name>ann-pt-down</object-name>
|
|
|
|
<object-name>ann-decimal</object-name>
|
|
<object-name>ann-digit1</object-name>
|
|
<object-name>ann-digit2</object-name>
|
|
<object-name>ann-digit3</object-name>
|
|
<object-name>ann-digit4</object-name>
|
|
<object-name>ann-digit5</object-name>
|
|
<object-name>ann-digit-minus</object-name>
|
|
|
|
<object-name>ann-alt-alert</object-name>
|
|
<object-name>ann-fpm</object-name>
|
|
<object-name>ann-ft</object-name>
|
|
<object-name>ann-hpa</object-name>
|
|
<object-name>ann-inhg</object-name>
|
|
|
|
<object-name>ann-test</object-name>
|
|
</animation>
|
|
|
|
<animation>
|
|
<name>buttons</name>
|
|
<object-name>btn-ap</object-name>
|
|
<object-name>btn-hdg</object-name>
|
|
<object-name>btn-nav</object-name>
|
|
<object-name>btn-apr</object-name>
|
|
<object-name>btn-rev</object-name>
|
|
<object-name>btn-alt</object-name>
|
|
<object-name>btn-down</object-name>
|
|
<object-name>btn-up</object-name>
|
|
<object-name>btn-arm</object-name>
|
|
<object-name>btn-baro</object-name>
|
|
</animation>
|
|
|
|
<effect>
|
|
<inherits-from>../../../../Effects/interior/lm-kap140</inherits-from>
|
|
<object-name>knob-outer</object-name>
|
|
<object-name>knob-inner</object-name>
|
|
<object-name>base</object-name>
|
|
<object-name>btn-ap</object-name>
|
|
<object-name>btn-hdg</object-name>
|
|
<object-name>btn-nav</object-name>
|
|
<object-name>btn-apr</object-name>
|
|
<object-name>btn-rev</object-name>
|
|
<object-name>btn-alt</object-name>
|
|
<object-name>btn-down</object-name>
|
|
<object-name>btn-up</object-name>
|
|
<object-name>btn-arm</object-name>
|
|
<object-name>btn-baro</object-name>
|
|
</effect>
|
|
|
|
<effect>
|
|
<inherits-from>../../../../Effects/interior/c172p-interior</inherits-from>
|
|
<object-name>ann-fail-pitch</object-name>
|
|
<object-name>ann-fail-roll</object-name>
|
|
|
|
<object-name>ann-ap-act</object-name>
|
|
<object-name>ann-ap-on</object-name>
|
|
<object-name>ann-yd</object-name>
|
|
|
|
<object-name>ann-mode1-ap</object-name>
|
|
<object-name>ann-mode1-rol</object-name>
|
|
<object-name>ann-mode1-hdg</object-name>
|
|
<object-name>ann-mode1-nav</object-name>
|
|
<object-name>ann-mode1-apr</object-name>
|
|
<object-name>ann-mode1-rev</object-name>
|
|
|
|
<object-name>ann-arm1</object-name>
|
|
<object-name>ann-arm1-nav</object-name>
|
|
<object-name>ann-arm1-apr</object-name>
|
|
<object-name>ann-arm1-rev</object-name>
|
|
<object-name>ann-arm1-gs</object-name>
|
|
|
|
<object-name>ann-mode2-pft</object-name>
|
|
<object-name>ann-mode2-vs</object-name>
|
|
<object-name>ann-mode2-alt</object-name>
|
|
<object-name>ann-mode2-gs</object-name>
|
|
<object-name>ann-mode2-fail</object-name>
|
|
|
|
<object-name>ann-arm2</object-name>
|
|
<object-name>ann-arm2-alt</object-name>
|
|
|
|
<object-name>ann-pt-up</object-name>
|
|
<object-name>ann-pt</object-name>
|
|
<object-name>ann-pt-down</object-name>
|
|
|
|
<object-name>ann-decimal</object-name>
|
|
<object-name>ann-digit1</object-name>
|
|
<object-name>ann-digit2</object-name>
|
|
<object-name>ann-digit3</object-name>
|
|
<object-name>ann-digit4</object-name>
|
|
<object-name>ann-digit5</object-name>
|
|
<object-name>ann-digit-minus</object-name>
|
|
|
|
<object-name>ann-alt-alert</object-name>
|
|
<object-name>ann-fpm</object-name>
|
|
<object-name>ann-ft</object-name>
|
|
<object-name>ann-hpa</object-name>
|
|
<object-name>ann-inhg</object-name>
|
|
</effect>
|
|
|
|
<animation>
|
|
<type>material</type>
|
|
<object-name>buttons</object-name>
|
|
<condition>
|
|
<or>
|
|
<not>
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
</not>
|
|
<equals>
|
|
<property>/sim/rendering/shaders/model</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<emission>
|
|
<red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
|
|
<green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
|
|
<blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
|
|
</emission>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>material</type>
|
|
<object-name>buttons</object-name>
|
|
<emission>
|
|
<red>0.5</red>
|
|
<green>0.1</green>
|
|
<blue>0.00005</blue>
|
|
<factor-prop>/sim/model/c172p/lighting/ap</factor-prop>
|
|
</emission>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>material</type>
|
|
<object-name>annunciators</object-name>
|
|
<object-name>alt-digits</object-name>
|
|
<object-name>hpa-digits</object-name>
|
|
<object-name>inhg-digits</object-name>
|
|
<object-name>vs-digits</object-name>
|
|
<object-name>vs-digits-minus</object-name>
|
|
<condition>
|
|
<and>
|
|
<not>
|
|
<property>sim/rendering/rembrandt/enabled</property>
|
|
</not>
|
|
<greater-than>
|
|
<property>/sim/model/c172p/lighting/ap</property>
|
|
<value>0.0</value>
|
|
</greater-than>
|
|
</and>
|
|
</condition>
|
|
<emission>
|
|
<red>1.0</red>
|
|
<green>1.0</green>
|
|
<blue>1.0</blue>
|
|
<factor-prop>/sim/model/c172p/lighting/ap</factor-prop>
|
|
</emission>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>material</type>
|
|
<object-name>annunciators</object-name>
|
|
<object-name>alt-digits</object-name>
|
|
<object-name>hpa-digits</object-name>
|
|
<object-name>inhg-digits</object-name>
|
|
<object-name>vs-digits</object-name>
|
|
<object-name>vs-digits-minus</object-name>
|
|
<condition>
|
|
<and>
|
|
<not>
|
|
<property>sim/rendering/rembrandt/enabled</property>
|
|
</not>
|
|
<equals>
|
|
<property>/sim/model/c172p/lighting/ap</property>
|
|
<value>0.0</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<emission>
|
|
<red>1.0</red>
|
|
<green>1.0</green>
|
|
<blue>1.0</blue>
|
|
</emission>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<condition>
|
|
<greater-than>
|
|
<value alias="/params/model"/>
|
|
<value>1</value>
|
|
</greater-than>
|
|
</condition>
|
|
<object-name>btn-alt</object-name>
|
|
<object-name>btn-down</object-name>
|
|
<object-name>btn-up</object-name>
|
|
<object-name>base-frame-inner</object-name>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<condition>
|
|
<greater-than>
|
|
<value alias="/params/model"/>
|
|
<value>2</value>
|
|
</greater-than>
|
|
</condition>
|
|
<object-name>btn-arm</object-name>
|
|
<object-name>btn-baro</object-name>
|
|
<object-name>knob-inner</object-name>
|
|
<object-name>knob-outer</object-name>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-decimal</object-name>
|
|
<object-name>ann-digit1</object-name>
|
|
<object-name>ann-digit2</object-name>
|
|
<object-name>ann-digit3</object-name>
|
|
<object-name>ann-digit4</object-name>
|
|
<object-name>ann-digit5</object-name>
|
|
<object-name>ann-digit-minus</object-name>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-timer</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/digit-timer</property>
|
|
</dif>
|
|
<value>2</value>
|
|
</product>
|
|
<value>2</value>
|
|
</mod>
|
|
</expression>
|
|
<value>1</value>
|
|
</less-than>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- Annunciators -->
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>annunciators</object-name>
|
|
<object-name>roll-axis-fail</object-name>
|
|
<object-name>pitch-axis-fail</object-name>
|
|
<condition>
|
|
<property>autopilot/kap140/powered</property>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-fail-roll</object-name>
|
|
<name>Roll Axis Failure</name>
|
|
<condition>
|
|
<or>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>2</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</or>
|
|
<property>autopilot/kap140/roll-axis-fail</property>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-fail-pitch</object-name>
|
|
<name>Pitch Axis Failure</name>
|
|
<condition>
|
|
<or>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>2</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</or>
|
|
<property>autopilot/kap140/pitch-axis-fail</property>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- not in use -->
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-yd</object-name>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>9</value>
|
|
</greater-than>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- activ annun -->
|
|
|
|
<!-- digits -->
|
|
<animation>
|
|
<type>textranslate</type>
|
|
<object-name>ann-digit1</object-name>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<factor>0.00001</factor>
|
|
<step>10000</step>
|
|
<axis>
|
|
<x>1</x>
|
|
<y>0</y>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>textranslate</type>
|
|
<object-name>ann-digit2</object-name>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<factor>0.0001</factor>
|
|
<step>1000</step>
|
|
<axis>
|
|
<x>1</x>
|
|
<y>0</y>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>textranslate</type>
|
|
<object-name>ann-digit3</object-name>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<factor>0.001</factor>
|
|
<step>100</step>
|
|
<axis>
|
|
<x>1</x>
|
|
<y>0</y>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>textranslate</type>
|
|
<object-name>ann-digit4</object-name>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<factor>0.01</factor>
|
|
<step>10</step>
|
|
<axis>
|
|
<x>1</x>
|
|
<y>0</y>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>textranslate</type>
|
|
<object-name>ann-digit5</object-name>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<factor>0.1</factor>
|
|
<step>1</step>
|
|
<axis>
|
|
<x>1</x>
|
|
<y>0</y>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-digit1</object-name>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<and>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<property>autopilot/kap140/bad-condition</property>
|
|
</and>
|
|
<and>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<or>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<value>9999</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<value>-9999</value>
|
|
</less-than>
|
|
</or>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-digit2</object-name>
|
|
<object-name>ann-decimal</object-name>
|
|
<condition>
|
|
<and>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<or>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<value>999</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<value>-999</value>
|
|
</less-than>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-digit3</object-name>
|
|
<condition>
|
|
<and>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<or>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<value>99</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<value>-99</value>
|
|
</less-than>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-digit4</object-name>
|
|
<condition>
|
|
<and>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<or>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<value>9</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/digit</property>
|
|
<value>-9</value>
|
|
</less-than>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-digit5</object-name>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<and>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/baro-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-digit-minus</object-name>
|
|
<condition>
|
|
<or>
|
|
<and>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/internal/target-altitude</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</and>
|
|
<and>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/internal/target-climb-rate</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- pre-flight-test -->
|
|
<animation>
|
|
<type>select</type>
|
|
<name>PFT Annunciator</name>
|
|
<object-name>ann-mode2-pft</object-name>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<and>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<property>autopilot/kap140/bad-condition</property>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode2-fail</object-name>
|
|
<name>Fail Annunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>-1</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-test</object-name>
|
|
<name>Test Annunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<not><property>autopilot/kap140/bad-condition</property></not>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-ap-on</object-name>
|
|
<object-name>ann-ap-act</object-name>
|
|
<name>AP Anunciator</name>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<and>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>5</value>
|
|
</equals>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/ap-timer</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>autopilot/kap140/panel/ap-timer</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</dif>
|
|
<value>2</value>
|
|
</product>
|
|
<value>2</value>
|
|
</mod>
|
|
</expression>
|
|
<value>1</value>
|
|
</less-than>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-ap-act</object-name>
|
|
<name>AP Anunciator</name>
|
|
<condition>
|
|
<not><property>autopilot/kap140/settings/cws</property></not>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- mode1 -->
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode1-ap</object-name>
|
|
<name>AP Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>5</value>
|
|
</equals>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/ap-timer</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>autopilot/kap140/panel/ap-timer</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</dif>
|
|
<value>2</value>
|
|
</product>
|
|
<value>2</value>
|
|
</mod>
|
|
</expression>
|
|
<value>1</value>
|
|
</less-than>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode1-rol</object-name>
|
|
<name>ROL Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode1-hdg</object-name>
|
|
<name>HDG Anunciator</name>
|
|
<condition>
|
|
<or>
|
|
<and>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<not><property>autopilot/kap140/settings/from-hdg</property></not>
|
|
</and>
|
|
<and>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
</dif>
|
|
<value>2</value>
|
|
</product>
|
|
<value>2</value>
|
|
</mod>
|
|
</expression>
|
|
<value>1</value>
|
|
</less-than>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode1-nav</object-name>
|
|
<name>NAV Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<or>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
<value>1</value>
|
|
</less-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
</dif>
|
|
<value>10</value>
|
|
</product>
|
|
<value>15</value>
|
|
</mod>
|
|
</expression>
|
|
<value>2</value>
|
|
</less-than>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode1-apr</object-name>
|
|
<name>APR Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<or>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
<value>1</value>
|
|
</less-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
</dif>
|
|
<value>10</value>
|
|
</product>
|
|
<value>15</value>
|
|
</mod>
|
|
</expression>
|
|
<value>2</value>
|
|
</less-than>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode1-rev</object-name>
|
|
<name>REV Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>5</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<or>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
<value>1</value>
|
|
</less-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
</dif>
|
|
<value>10</value>
|
|
</product>
|
|
<value>15</value>
|
|
</mod>
|
|
</expression>
|
|
<value>2</value>
|
|
</less-than>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- arm1 -->
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-arm1</object-name>
|
|
<name>ARM1 Anunciator</name>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-arm1-nav</object-name>
|
|
<name>NAV-ARM Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>3</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-arm1-apr</object-name>
|
|
<name>APR-ARM Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-arm1-rev</object-name>
|
|
<name>REV-ARM Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>5</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-arm1-gs</object-name>
|
|
<name>GS-ARM Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>6</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- mode2 -->
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode2-vs</object-name>
|
|
<name>VS Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/gs-timer</property>
|
|
<value>1</value>
|
|
</less-than>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode2-alt</object-name>
|
|
<name>ALT Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/gs-timer</property>
|
|
<value>1</value>
|
|
</less-than>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-mode2-gs</object-name>
|
|
<name>GS Anunciator</name>
|
|
<condition>
|
|
<or>
|
|
<and>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/panel/gs-timer</property>
|
|
<value>1</value>
|
|
</less-than>
|
|
</and>
|
|
<and>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/gs-timer</property>
|
|
<value>1</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/gs-timer</property>
|
|
</dif>
|
|
<value>10</value>
|
|
</product>
|
|
<value>15</value>
|
|
</mod>
|
|
</expression>
|
|
<value>2</value>
|
|
</less-than>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- arm2 -->
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-arm2</object-name>
|
|
<object-name>ann-arm2-alt</object-name>
|
|
<name>ALT-ARM Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- pt -->
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-pt</object-name>
|
|
<object-name>ann-pt-up</object-name>
|
|
<object-name>ann-pt-down</object-name>
|
|
<name>Pitch trim annunciator</name>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>4</value>
|
|
</greater-than>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-pt</object-name>
|
|
<name>Pitch trim up annunciator</name>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>autopilot/kap140/sensors/pitch-up</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<and>
|
|
<greater-than>
|
|
<property>autopilot/kap140/sensors/pitch-up</property>
|
|
<value>1</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/sensors/pitch-up</property>
|
|
</dif>
|
|
<value>2</value>
|
|
</product>
|
|
<value>2</value>
|
|
</mod>
|
|
</expression>
|
|
<value>1</value>
|
|
</less-than>
|
|
</and>
|
|
<equals>
|
|
<property>autopilot/kap140/sensors/pitch-down</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<and>
|
|
<greater-than>
|
|
<property>autopilot/kap140/sensors/pitch-down</property>
|
|
<value>1</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/sensors/pitch-down</property>
|
|
</dif>
|
|
<value>2</value>
|
|
</product>
|
|
<value>2</value>
|
|
</mod>
|
|
</expression>
|
|
<value>1</value>
|
|
</less-than>
|
|
</and>
|
|
<and>
|
|
<equals>
|
|
<property>autopilot/kap140/sensors/pitch-trim</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/sensors/pitch-up</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/sensors/pitch-down</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-pt-up</object-name>
|
|
<name>Pitch trim up annunciator</name>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>autopilot/kap140/sensors/pitch-up</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<and>
|
|
<greater-than>
|
|
<property>autopilot/kap140/sensors/pitch-up</property>
|
|
<value>2</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/sensors/pitch-up</property>
|
|
</dif>
|
|
<value>2</value>
|
|
</product>
|
|
<value>2</value>
|
|
</mod>
|
|
</expression>
|
|
<value>1</value>
|
|
</less-than>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-pt-down</object-name>
|
|
<name>Pitch trim down annunciator</name>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>autopilot/kap140/sensors/pitch-down</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<and>
|
|
<greater-than>
|
|
<property>autopilot/kap140/sensors/pitch-down</property>
|
|
<value>2</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/sensors/pitch-down</property>
|
|
</dif>
|
|
<value>2</value>
|
|
</product>
|
|
<value>2</value>
|
|
</mod>
|
|
</expression>
|
|
<value>1</value>
|
|
</less-than>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- alt alerter -->
|
|
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-alt-alert</object-name>
|
|
<name>ALERT Anunciator</name>
|
|
<condition>
|
|
<or>
|
|
|
|
<and>
|
|
<not-equals>
|
|
<property>autopilot/kap140/panel/alt-alert-arm</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
<less-than>
|
|
<expression>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/alt-alert-arm</property>
|
|
</dif>
|
|
</expression>
|
|
<value>0.5</value>
|
|
</less-than>
|
|
</and>
|
|
|
|
<and>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/alt-alert</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/alt-alert-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
|
|
<and>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/alt-alert</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
<not-equals>
|
|
<property>autopilot/kap140/panel/alt-alert-arm</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
<less-than>
|
|
<expression>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/alt-alert</property>
|
|
</dif>
|
|
</expression>
|
|
<value>5</value>
|
|
</less-than>
|
|
<less-than>
|
|
<expression>
|
|
<mod>
|
|
<product>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/alt-alert</property>
|
|
</dif>
|
|
<value>2</value>
|
|
</product>
|
|
<value>2</value>
|
|
</mod>
|
|
</expression>
|
|
<value>1</value>
|
|
</less-than>
|
|
</and>
|
|
|
|
<and>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/alt-alert</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
<not-equals>
|
|
<property>autopilot/kap140/panel/alt-alert-arm</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
<greater-than>
|
|
<expression>
|
|
<dif>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<property>autopilot/kap140/panel/alt-alert</property>
|
|
</dif>
|
|
</expression>
|
|
<value>5</value>
|
|
</greater-than>
|
|
</and>
|
|
|
|
</or>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- alt-setting -->
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-ft</object-name>
|
|
<name>FPM Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- vs-setting -->
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-fpm</object-name>
|
|
<name>FPM Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- inhg-setting -->
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-inhg</object-name>
|
|
<name>INHG Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/baro-mode</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- hpa-setting -->
|
|
<animation>
|
|
<type>select</type>
|
|
<object-name>ann-hpa</object-name>
|
|
<name>hPa Anunciator</name>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/baro-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
</animation>
|
|
|
|
<!-- Actions -->
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-ap</object-name>
|
|
<action>
|
|
<name>AP Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-ap</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>4</value>
|
|
</greater-than>
|
|
<not><property>autopilot/kap140/roll-axis-fail</property></not>
|
|
<not><property>autopilot/kap140/pitch-axis-fail</property></not>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/state-old</property>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>4</value>
|
|
</greater-than>
|
|
<not><property>autopilot/kap140/roll-axis-fail</property></not>
|
|
<not><property>autopilot/kap140/pitch-axis-fail</property></not>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/internal/target-climb-rate</property>
|
|
<property>autopilot/internal/vert-speed-fpm</property>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-ap</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-ap-btn</tooltip-id>
|
|
<label>Autopilot Arm/Disarm</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-hdg</object-name>
|
|
<action>
|
|
<name>HDG Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-hdg</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>3</value>
|
|
</less-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>-1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>3</value>
|
|
</less-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>2</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<greater-than>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>2</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>6</value>
|
|
</less-than>
|
|
<property>autopilot/kap140/settings/from-hdg</property>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>2</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<greater-than>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>2</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>6</value>
|
|
</less-than>
|
|
<not><property>autopilot/kap140/settings/from-hdg</property></not>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>3</value>
|
|
</less-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/from-hdg</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/internal/target-roll-deg</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/internal/target-intercept-angle</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-hdg</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-hdg-btn</tooltip-id>
|
|
<label>HDG Mode</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-nav</object-name>
|
|
<action>
|
|
<name>NAV Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-nav</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>3</value>
|
|
</not-equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>3</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>-1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>3</value>
|
|
</not-equals>
|
|
<greater-than>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>-1</value>
|
|
</greater-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>3</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>3</value>
|
|
</not-equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<not><property alias="/params/hsi-installed"/></not>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/from-hdg</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<not><property alias="/params/hsi-installed"/></not>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/from-hdg</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<not><property alias="/params/hsi-installed"/></not>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-nav</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-nav-btn</tooltip-id>
|
|
<label>NAV Mode</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-apr</object-name>
|
|
<action>
|
|
<name>APR Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-apr</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>4</value>
|
|
</not-equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>-1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>4</value>
|
|
</not-equals>
|
|
<greater-than>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>-1</value>
|
|
</greater-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>4</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>4</value>
|
|
</not-equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<not><property alias="/params/hsi-installed"/></not>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/from-hdg</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<not><property alias="/params/hsi-installed"/></not>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/from-hdg</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<not><property alias="/params/hsi-installed"/></not>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-apr</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-apr-btn</tooltip-id>
|
|
<label>APR Mode</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-rev</object-name>
|
|
<action>
|
|
<name>REV Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-rev</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>5</value>
|
|
</not-equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>5</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>-1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>5</value>
|
|
</not-equals>
|
|
<greater-than>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>-1</value>
|
|
</greater-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>5</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>5</value>
|
|
</not-equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>5</value>
|
|
</equals>
|
|
<not><property alias="/params/hsi-installed"/></not>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/from-hdg</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<not><property alias="/params/hsi-installed"/></not>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/from-hdg</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>5</value>
|
|
</equals>
|
|
<not><property alias="/params/hsi-installed"/></not>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/lateral-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/hdg-timer</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/nav-timer</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-rev</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-rev-btn</tooltip-id>
|
|
<label>REV Mode</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-alt</object-name>
|
|
<action>
|
|
<name>ALT Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-alt</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>-1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>2</value>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>-1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>1</value>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/gs-timer</property>
|
|
<value>0</value>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/internal/target-pressure</property>
|
|
<value>0.0</value>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/internal/target-pressure</property>
|
|
<property alias="/params/pressure-source"/>
|
|
</binding>
|
|
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-alt</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-alt-btn</tooltip-id>
|
|
<label>ALT/VS Mode</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-down</object-name>
|
|
<action>
|
|
<name>DOWN Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-down</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<!-- FPM setting -->
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/fpm-timer</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>autopilot/internal/target-climb-rate</property>
|
|
<step>-100</step>
|
|
<min>-2000</min>
|
|
<max>2000</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/fpm-old</property>
|
|
<property>autopilot/internal/target-climb-rate</property>
|
|
</binding>
|
|
<!--altitude setting-->
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>autopilot/internal/target-pressure</property>
|
|
<step>0.022</step>
|
|
<min>5.0</min>
|
|
<max>35.0</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<greater-than>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<expression>
|
|
<sum>
|
|
<property>autopilot/kap140/panel/button-down</property>
|
|
<value>1</value>
|
|
</sum>
|
|
</expression>
|
|
</greater-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/internal/target-pressure</property>
|
|
<property alias="/params/pressure-source"/>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-down</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-down-btn</tooltip-id>
|
|
<label>DOWN</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-up</object-name>
|
|
<action>
|
|
<name>UP Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-up</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<!-- FPM setting -->
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/fpm-timer</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>autopilot/internal/target-climb-rate</property>
|
|
<step>100</step>
|
|
<min>-2000</min>
|
|
<max>2000</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/fpm-old</property>
|
|
<property>autopilot/internal/target-climb-rate</property>
|
|
</binding>
|
|
<!--altitude setting-->
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>autopilot/internal/target-pressure</property>
|
|
<step>-0.022</step>
|
|
<min>5.0</min>
|
|
<max>35.0</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<greater-than>
|
|
<property>sim/time/elapsed-sec</property>
|
|
<expression>
|
|
<sum>
|
|
<property>autopilot/kap140/panel/button-up</property>
|
|
<value>1</value>
|
|
</sum>
|
|
</expression>
|
|
</greater-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/internal/target-pressure</property>
|
|
<property alias="/params/pressure-source"/>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-up</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-up-btn</tooltip-id>
|
|
<label>UP</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-arm</object-name>
|
|
<action>
|
|
<name>ARM Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-arm</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>-1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>2</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<less-than>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>0</value>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-arm</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-arm-btn</tooltip-id>
|
|
<label>ARM</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>btn-baro</object-name>
|
|
<action>
|
|
<name>BARO Button</name>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140")</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-baro</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</greater-than>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/baro-mode-old</property>
|
|
<property>autopilot/kap140/panel/baro-mode</property>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/button-baro</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>kap140-baro-btn</tooltip-id>
|
|
<label>Barometer/Altitude Set</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>knob</type>
|
|
<object-name>knob-outer</object-name>
|
|
<action>
|
|
|
|
<!-- alt preselect setting -->
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140-dial")</script>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>4</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>autopilot/internal/target-altitude</property>
|
|
<factor>1000</factor>
|
|
<min>-1000</min>
|
|
<max>35000</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>5</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>2</value>
|
|
</binding>
|
|
|
|
<!-- baro setting -->
|
|
|
|
<binding>
|
|
<condition>
|
|
<not><property alias="/params/baro-tied"/></not>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/baro-mode</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property alias="/params/baro-inhg"/>
|
|
<factor>0.1</factor>
|
|
<min>26.0</min>
|
|
<max>33.0</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<not><property alias="/params/baro-tied"/></not>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/baro-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property alias="/params/baro-hpa"/>
|
|
<factor>10</factor>
|
|
<min>880</min>
|
|
<max>1118</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<not><property alias="/params/baro-tied"/></not>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/baro-timer</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>5</value>
|
|
</binding>
|
|
|
|
<!-- position for animation -->
|
|
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>autopilot/kap140/panel/knob-outer-pos</property>
|
|
<factor>1</factor>
|
|
</binding>
|
|
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>ap-knob-outer</tooltip-id>
|
|
<label>Adjust ALT: 1000 ft; Baro: 1 inHg</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>knob</type>
|
|
<object-name>knob-inner</object-name>
|
|
<action>
|
|
|
|
<!-- alt preselect setting -->
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>c172p.click("kap140-dial")</script>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>4</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>autopilot/internal/target-altitude</property>
|
|
<factor>100</factor>
|
|
<min>-1000</min>
|
|
<max>35000</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>5</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/settings/vertical-arm</property>
|
|
<value>2</value>
|
|
</binding>
|
|
|
|
<!-- baro setting -->
|
|
|
|
<binding>
|
|
<condition>
|
|
<not><property alias="/params/baro-tied"/></not>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/baro-mode</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property alias="/params/baro-inhg"/>
|
|
<factor>0.01</factor>
|
|
<min>26.0</min>
|
|
<max>33.0</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<not><property alias="/params/baro-tied"/></not>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/baro-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property alias="/params/baro-hpa"/>
|
|
<factor>1</factor>
|
|
<min>880</min>
|
|
<max>1118</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<not><property alias="/params/baro-tied"/></not>
|
|
<greater-than>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>3</value>
|
|
</greater-than>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/digit-mode</property>
|
|
<value>3</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/baro-timer</property>
|
|
<property>sim/time/elapsed-sec</property>
|
|
</binding>
|
|
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>autopilot/kap140/panel/state</property>
|
|
<value>5</value>
|
|
</binding>
|
|
|
|
<!-- position for animation -->
|
|
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>autopilot/kap140/panel/knob-inner-pos</property>
|
|
<factor>1</factor>
|
|
</binding>
|
|
|
|
</action>
|
|
<hovered>
|
|
<binding>
|
|
<command>set-tooltip</command>
|
|
<tooltip-id>ap-knob-inner</tooltip-id>
|
|
<label>Adjust ALT: 100 ft; Baro: 0.01 inHg</label>
|
|
</binding>
|
|
</hovered>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>rotate</type>
|
|
<object-name>knob-inner</object-name>
|
|
<property>autopilot/kap140/panel/knob-inner-pos</property>
|
|
<factor>15</factor>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>rotate</type>
|
|
<object-name>knob-outer</object-name>
|
|
<property>autopilot/kap140/panel/knob-outer-pos</property>
|
|
<factor>10</factor>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-ap</object-name>
|
|
<property>autopilot/kap140/panel/button-ap</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-hdg</object-name>
|
|
<property>autopilot/kap140/panel/button-hdg</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-nav</object-name>
|
|
<property>autopilot/kap140/panel/button-nav</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-apr</object-name>
|
|
<property>autopilot/kap140/panel/button-apr</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-rev</object-name>
|
|
<property>autopilot/kap140/panel/button-rev</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-alt</object-name>
|
|
<property>autopilot/kap140/panel/button-alt</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-up</object-name>
|
|
<property>autopilot/kap140/panel/button-up</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-down</object-name>
|
|
<property>autopilot/kap140/panel/button-down</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-arm</object-name>
|
|
<property>autopilot/kap140/panel/button-arm</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>btn-baro</object-name>
|
|
<property>autopilot/kap140/panel/button-baro</property>
|
|
<factor>1</factor>
|
|
<interpolation>
|
|
<entry><ind>0.0</ind><dep>0.0</dep></entry>
|
|
<entry><ind>1.0</ind><dep>1.0</dep></entry>
|
|
</interpolation>
|
|
<axis>
|
|
<object-name>knob-axis</object-name>
|
|
</axis>
|
|
</animation>
|
|
|
|
</PropertyList>
|