1
0
Fork 0
fgdata/Aircraft/Instruments/KAP140TwoAxisAlt.xml
mfranz 10efd065c4 Dave Perry & Roy Vegard Ovesen:
"This patch allows all the AC using the kap140 to use one kap140.nas
which includes Roy's move to "bool" values as well as the check for
power used by the pa24-250." (dp)
2007-02-04 12:55:28 +00:00

1031 lines
No EOL
22 KiB
XML

<?xml version="1.0"?>
<!--
_______________________________________________________________________________
KAP140 Two Axis with Altitude Preselect autopilot instrument.
Started 2004 by Roy Vegard Ovesen.
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 layers and actions.
Each instrument is composed of layers stacked on top of each other.
A layer may be a texture (with transparent parts to show the layers
underneath), text, or a special layer that switches between two
others (say, to turn an indicator light on or off). Each layer can
move independently in proportion to a property value, and text
can be generated from property values as well: all of the layer's
movements are defined as transformations.
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>
<name>KAP140TwoAxisAlt</name>
<w-base>512</w-base>
<h-base>133</h-base>
<!-- Layers -->
<layers>
<layer>
<name>background</name>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.0</x1>
<x2>1.0</x2>
<y1>0.0</y1>
<y2>0.263671875</y2>
</texture>
<w>512</w>
<h>133</h>
</layer>
<layer>
<name>AP Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/ap</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.32421875</x1>
<x2>0.392578125</x2>
<y1>0.802734375</y1>
<y2>0.845703125</y2>
</texture>
<w>35</w>
<h>21</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-160</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>ROL Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/rol</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.0</x1>
<x2>0.09765625</x2>
<y1>0.802734375</y1>
<y2>0.845703125</y2>
</texture>
<w>50</w>
<h>21</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-152</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>HDG Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/hdg</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.1015625</x1>
<x2>0.205078125</x2>
<y1>0.802734375</y1>
<y2>0.845703125</y2>
</texture>
<w>52</w>
<h>21</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-150</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>NAV Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/nav</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.2109375</x1>
<x2>0.31640625</x2>
<y1>0.802734375</y1>
<y2>0.845703125</y2>
</texture>
<w>53</w>
<h>21</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-150</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>NAV ARM Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/nav-arm</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.0</x1>
<x2>0.12890625</x2>
<y1>0.939453125</y1>
<y2>1.0</y2>
</texture>
<w>64</w>
<h>30</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-145</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>15</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>APR Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/apr</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.32421875</x1>
<x2>0.4296875</x2>
<y1>0.802734375</y1>
<y2>0.845703125</y2>
</texture>
<w>53</w>
<h>21</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-150</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>APR-ARM Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/apr-arm</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.13671875</x1>
<x2>0.265625</x2>
<y1>0.939453125</y1>
<y2>1.0</y2>
</texture>
<w>64</w>
<h>30</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-145</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>15</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>REV Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/rev</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.4375</x1>
<x2>0.54296875</x2>
<y1>0.802734375</y1>
<y2>0.845703125</y2>
</texture>
<w>53</w>
<h>21</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-150</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>REV-ARM Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/rev-arm</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.2734375</x1>
<x2>0.40234375</x2>
<y1>0.939453125</y1>
<y2>1.0</y2>
</texture>
<w>64</w>
<h>30</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-145</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>15</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>VS Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/vs</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.732421875</x1>
<x2>0.787109375</x2>
<y1>0.802734375</y1>
<y2>0.845703125</y2>
</texture>
<w>28</w>
<h>21</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-47</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>FPM Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/vs-number</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.91015625</x1>
<x2>0.955078125</x2>
<y1>0.978515625</y1>
<y2>0.998046875</y2>
</texture>
<w>23</w>
<h>10</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>75</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>20</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>VS Number</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/vs-number</property>
<value type="bool">true</value>
</equals>
</condition>
<type>text</type>
<font>led</font>
<point-size>11</point-size>
<color>
<red>1.0</red>
<green>0.5</green>
<blue>0.0</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
<scale>-58000</scale>
<format>%05.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>30</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>30</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>ALT Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/alt</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.623046875</x1>
<x2>0.724609375</x2>
<y1>0.802734375</y1>
<y2>0.845703125</y2>
</texture>
<w>52</w>
<h>21</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-60</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>ALT-ARM Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/alt-arm</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.41015625</x1>
<x2>0.537109375</x2>
<y1>0.939453125</y1>
<y2>1.0</y2>
</texture>
<w>64</w>
<h>30</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-53</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>15</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>ALT Preselect Number</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/alt-number</property>
<value type="bool">true</value>
</equals>
</condition>
<type>text</type>
<font>led</font>
<point-size>11</point-size>
<color>
<red>1.0</red>
<green>0.5</green>
<blue>0.0</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>/autopilot/KAP140/settings/target-alt-ft</property>
<scale>1</scale>
<format>%05.0f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>30</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>30</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>FT Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/alt-number</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.96875</x1>
<x2>0.99609375</x2>
<y1>0.978515625</y1>
<y2>0.998046875</y2>
</texture>
<w>14</w>
<h>10</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>99</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>20</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>ALERT Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/alt-alert</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.814453125</x1>
<x2>0.88671875</x2>
<y1>0.978515625</y1>
<y2>0.998046875</y2>
</texture>
<w>37</w>
<h>10</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>27</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>20</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>GS Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/gs</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.791015625</x1>
<x2>0.85546875</x2>
<y1>0.802734375</y1>
<y2>0.845703125</y2>
</texture>
<w>31</w>
<h>21</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-47</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>40</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>GS-ARM Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/gs-arm</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.548828125</x1>
<x2>0.640625</x2>
<y1>0.939453125</y1>
<y2>1.0</y2>
</texture>
<w>45</w>
<h>30</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-136</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>15</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Pitch trim up annunciator</name>
<condition>
<and>
<equals>
<property>/autopilot/KAP140/annunciators/pt-up</property>
<value type="bool">true</value>
</equals>
</and>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.9765625</x1>
<x2>0.994140625</x2>
<y1>0.873046875</y1>
<y2>0.94140625</y2>
</texture>
<w>9</w>
<h>35</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-7</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>35</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Pitch trim down annunciator</name>
<condition>
<and>
<equals>
<property>/autopilot/KAP140/annunciators/pt-dn</property>
<value type="bool">true</value>
</equals>
</and>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.9765625</x1>
<x2>0.994140625</x2>
<y1>0.84375</y1>
<y2>0.912109375</y2>
</texture>
<w>9</w>
<h>35</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-7</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>20</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Baro Setting inHg number</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/bs-inhg-number</property>
<value type="bool">true</value>
</equals>
</condition>
<type>text</type>
<font>led</font>
<point-size>11</point-size>
<color>
<red>1.0</red>
<green>0.5</green>
<blue>0.0</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>/autopilot/KAP140/settings/baro-setting-inhg</property>
<scale>1</scale>
<format>%2.2f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>37</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>30</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>IN HG Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/bs-inhg-number</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.93359375</x1>
<x2>0.99609375</x2>
<y1>0.955078125</y1>
<y2>0.974609375</y2>
</texture>
<w>32</w>
<h>10</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>90</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>5</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Baro Setting hPa number</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/bs-hpa-number</property>
<value type="bool">true</value>
</equals>
</condition>
<type>text</type>
<font>led</font>
<point-size>11</point-size>
<color>
<red>1.0</red>
<green>0.5</green>
<blue>0.0</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>/autopilot/KAP140/settings/baro-setting-hpa</property>
<scale>1</scale>
<format>%01.3f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>37</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>30</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>hPa Anunciator</name>
<condition>
<equals>
<property>/autopilot/KAP140/annunciators/bs-hpa-number</property>
<value type="bool">true</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/KAP140.rgb</path>
<x1>0.845703125</x1>
<x2>0.88671875</x2>
<y1>0.953125</y1>
<y2>0.97265625</y2>
</texture>
<w>21</w>
<h>10</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>35</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>5</offset>
</transformation>
</transformations>
</layer>
</layers>
<!-- Actions -->
<actions>
<action>
<name>AP Button</name>
<button>0</button>
<x>-239</x>
<y>-54</y>
<w>30</w>
<h>20</h>
<binding>
<command>nasal</command>
<script>
kap140.apButton();
</script>
</binding>
</action>
<action>
<name>HDG Button</name>
<button>0</button>
<x>-149</x>
<y>-54</y>
<w>30</w>
<h>20</h>
<binding>
<command>nasal</command>
<script>
kap140.hdgButton();
</script>
</binding>
</action>
<action>
<name>NAV Button</name>
<button>0</button>
<x>-90</x>
<y>-54</y>
<w>30</w>
<h>20</h>
<binding>
<command>nasal</command>
<script>
kap140.navButton();
</script>
</binding>
</action>
<action>
<name>APR Button</name>
<button>0</button>
<x>-30</x>
<y>-54</y>
<w>30</w>
<h>20</h>
<binding>
<command>nasal</command>
<script>
kap140.aprButton();
</script>
</binding>
</action>
<action>
<name>ALT Button</name>
<button>0</button>
<x>80</x>
<y>-54</y>
<w>30</w>
<h>20</h>
<binding>
<command>nasal</command>
<script>
kap140.altButton();
</script>
</binding>
</action>
<action>
<name>REV Button</name>
<button>0</button>
<x>30</x>
<y>-54</y>
<w>30</w>
<h>20</h>
<binding>
<command>nasal</command>
<script>
kap140.revButton();
</script>
</binding>
</action>
<action>
<name>DN Button</name>
<button>0</button>
<x>128</x>
<y>-48</y>
<w>30</w>
<h>20</h>
<binding>
<command>nasal</command>
<script>
kap140.downButton();
</script>
</binding>
</action>
<action>
<name>UP Button</name>
<button>0</button>
<x>128</x>
<y>-8</y>
<w>30</w>
<h>20</h>
<binding>
<command>nasal</command>
<script>
kap140.upButton();
</script>
</binding>
</action>
<action>
<name>ARM Button</name>
<button>0</button>
<x>158</x>
<y>38</y>
<w>30</w>
<h>20</h>
<binding>
<command>nasal</command>
<script>
kap140.armButton();
</script>
</binding>
</action>
<action>
<name>BARO Button</name>
<button>0</button>
<x>208</x>
<y>38</y>
<w>30</w>
<h>20</h>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
kap140.baroButtonPress();
</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>
kap140.baroButtonRelease();
</script>
</binding>
</mod-up>
</action>
<action>
<name>Knob small up</name>
<button>0</button>
<x>210</x>
<y>-48</y>
<w>35</w>
<h>60</h>
<binding>
<command>nasal</command>
<script>
kap140.knobSmallUp();
</script>
</binding>
</action>
<action>
<name>Knob large up</name>
<button>1</button>
<x>210</x>
<y>-48</y>
<w>35</w>
<h>60</h>
<binding>
<command>nasal</command>
<script>
kap140.knobLargeUp();
</script>
</binding>
</action>
<action>
<name>Knob small down</name>
<button>0</button>
<x>177</x>
<y>-48</y>
<w>35</w>
<h>60</h>
<binding>
<command>nasal</command>
<script>
kap140.knobSmallDown();
</script>
</binding>
</action>
<action>
<name>Knob large down</name>
<button>1</button>
<x>177</x>
<y>-48</y>
<w>35</w>
<h>60</h>
<binding>
<command>nasal</command>
<script>
kap140.knobLargeDown();
</script>
</binding>
</action>
</actions>
</PropertyList>