<?xml version="1.0"?>

<!-- 747 speed setting indicator :

     VMO is 375 kt.
-->

<PropertyList>

 <name>Speed setting indicator</name>
 <w-base>100</w-base>
 <h-base>150</h-base>

 <params>
  <spd-disp>/controls/autoflight/dial-speed-kt</spd-disp>
  <spd-ctrl>/controls/autoflight/dial-speed-kt</spd-ctrl>
  <spd-auto>/autopilot/settings/target-speed-kt</spd-auto>
  <mach-disp>/controls/autoflight/dial-mach</mach-disp>
  <mach-ctrl>/controls/autoflight/dial-mach</mach-ctrl>
  <mach-auto>/autopilot/settings/target-mach</mach-auto>
 </params>

 <layers>

  <layer>
   <name>background</name>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/747-black-bg.rgb</path>
   </texture>
    <w>80</w>
    <h>35</h>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>30</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>38</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>button</name>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/747-white-led.rgb</path>
   </texture>
    <w>35</w>
    <h>35</h>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>14</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>AP Speed display</name>
   <type>switch</type>

   <layer>
    <name>knot dial</name>
    <condition>
     <less-than>
      <property>/instrumentation/altimeter/indicated-altitude-ft</property>
      <property n="1">/controls/autoflight/automach-ft</property>
     </less-than>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>10</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property alias="../../../../../../params/spd-disp"/>
      <format>%03.0f</format>
     </chunk>
    </chunks>
   </layer>

   <layer>
    <name>mach dial</name>
    <type>text</type>
    <font>led</font>
    <point-size>10</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property alias="../../../../../../params/mach-disp"/>
      <format>%0.2f</format>
     </chunk>
    </chunks>
   </layer>

   <transformations>
    <transformation>
     <type>y-shift</type>
     <offset>27</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>Title</name>
   <type>text</type>
   <point-size>12</point-size>
   <color>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
   </color>
   <chunks>
    <chunk>
     <type>literal</type>
     <text>A/T SPEED</text>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-10</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>65</offset>
    </transformation>
   </transformations>
  </layer>

 </layers>

 <actions>

  <action>
   <name>Minus 10</name>
   <button>0</button>
   <x>0</x>
   <y>-17</y>
   <w>15</w>
   <h>15</h>
   <binding>
    <condition>
     <less-than>
      <property>/instrumentation/altimeter/indicated-altitude-ft</property>
      <property n="1">/controls/autoflight/automach-ft</property>
     </less-than>
    </condition>
    <command>property-adjust</command>
    <property alias="../../../../params/spd-ctrl"/>
    <step>-10</step>
    <min>130</min>
    <max>375</max>
    <wrap>0</wrap>
   </binding>
   <binding>
    <condition>
     <and>
      <less-than>
       <property>/instrumentation/altimeter/indicated-altitude-ft</property>
       <property n="1">/controls/autoflight/automach-ft</property>
      </less-than>
      <property>/controls/autoflight/autothrottle-engage</property>
      <not-equals>
       <property>/controls/autoflight/heading</property>
       <value>autoland</value>
      </not-equals>
     </and>
    </condition>
    <command>property-assign</command>
    <property alias="../../../../params/spd-auto"/>
    <property n="1" alias="../../../../params/spd-ctrl"/>
   </binding>
   <binding>
    <condition>
     <greater-than-equals>
      <property>/instrumentation/altimeter/indicated-altitude-ft</property>
      <property n="1">/controls/autoflight/automach-ft</property>
     </greater-than-equals>
    </condition>
    <command>property-adjust</command>
    <property alias="../../../../params/mach-ctrl"/>
    <step>-0.1</step>
    <min>0.7</min>
    <max>0.95</max>
    <wrap>0</wrap>
   </binding>
   <binding>
    <condition>
     <and>
      <greater-than-equals>
       <property>/instrumentation/altimeter/indicated-altitude-ft</property>
       <property n="1">/controls/autoflight/automach-ft</property>
      </greater-than-equals>
      <property>/controls/autoflight/autothrottle-engage</property>
     </and>
    </condition>
    <command>property-assign</command>
    <property alias="../../../../params/mach-auto"/>
    <property n="1" alias="../../../../params/mach-ctrl"/>
   </binding>
  </action>

  <action>
   <name>Plus 10</name>
   <button>0</button>
   <x>0</x>
   <y>-1</y>
   <w>15</w>
   <h>15</h>
   <binding>
    <condition>
     <less-than>
      <property>/instrumentation/altimeter/indicated-altitude-ft</property>
      <property n="1">/controls/autoflight/automach-ft</property>
     </less-than>
    </condition>
    <command>property-adjust</command>
    <property alias="../../../../params/spd-ctrl"/>
    <step>10</step>
    <min>130</min>
    <max>375</max>
    <wrap>0</wrap>
   </binding>
   <binding>
    <condition>
     <and>
      <less-than>
       <property>/instrumentation/altimeter/indicated-altitude-ft</property>
       <property n="1">/controls/autoflight/automach-ft</property>
      </less-than>
      <property>/controls/autoflight/autothrottle-engage</property>
      <not-equals>
       <property>/controls/autoflight/heading</property>
       <value>autoland</value>
      </not-equals>
     </and>
    </condition>
    <command>property-assign</command>
    <property alias="../../../../params/spd-auto"/>
    <property n="1" alias="../../../../params/spd-ctrl"/>
   </binding>
   <binding>
    <condition>
     <greater-than-equals>
      <property>/instrumentation/altimeter/indicated-altitude-ft</property>
      <property n="1">/controls/autoflight/automach-ft</property>
     </greater-than-equals>
    </condition>
    <command>property-adjust</command>
    <property alias="../../../../params/mach-ctrl"/>
    <step>0.1</step>
    <min>0.7</min>
    <max>0.95</max>
    <wrap>0</wrap>
   </binding>
   <binding>
    <condition>
     <and>
      <greater-than-equals>
       <property>/instrumentation/altimeter/indicated-altitude-ft</property>
       <property n="1">/controls/autoflight/automach-ft</property>
      </greater-than-equals>
      <property>/controls/autoflight/autothrottle-engage</property>
     </and>
    </condition>
    <command>property-assign</command>
    <property alias="../../../../params/mach-auto"/>
    <property n="1" alias="../../../../params/mach-ctrl"/>
   </binding>
  </action>

  <action>
   <name>Minus 1</name>
   <button>0</button>
   <x>14</x>
   <y>-17</y>
   <w>15</w>
   <h>15</h>
   <binding>
    <condition>
     <less-than>
      <property>/instrumentation/altimeter/indicated-altitude-ft</property>
      <property n="1">/controls/autoflight/automach-ft</property>
     </less-than>
    </condition>
    <command>property-adjust</command>
    <property alias="../../../../params/spd-ctrl"/>
    <step>-1</step>
    <min>130</min>
    <max>375</max>
    <wrap>0</wrap>
   </binding>
   <binding>
    <condition>
     <and>
      <less-than>
       <property>/instrumentation/altimeter/indicated-altitude-ft</property>
       <property n="1">/controls/autoflight/automach-ft</property>
      </less-than>
      <property>/controls/autoflight/autothrottle-engage</property>
      <not-equals>
       <property>/controls/autoflight/heading</property>
       <value>autoland</value>
      </not-equals>
     </and>
    </condition>
    <command>property-assign</command>
    <property alias="../../../../params/spd-auto"/>
    <property n="1" alias="../../../../params/spd-ctrl"/>
   </binding>
   <binding>
    <condition>
     <greater-than-equals>
      <property>/instrumentation/altimeter/indicated-altitude-ft</property>
      <property n="1">/controls/autoflight/automach-ft</property>
     </greater-than-equals>
    </condition>
    <command>property-adjust</command>
    <property alias="../../../../params/mach-ctrl"/>
    <step>-0.01</step>
    <min>0.7</min>
    <max>0.95</max>
    <wrap>0</wrap>
   </binding>
   <binding>
    <condition>
     <and>
      <greater-than-equals>
       <property>/instrumentation/altimeter/indicated-altitude-ft</property>
       <property n="1">/controls/autoflight/automach-ft</property>
      </greater-than-equals>
      <property>/controls/autoflight/autothrottle-engage</property>
     </and>
    </condition>
    <command>property-assign</command>
    <property alias="../../../../params/mach-auto"/>
    <property n="1" alias="../../../../params/mach-ctrl"/>
   </binding>
  </action>

  <action>
   <name>Plus 1</name>
   <button>0</button>
   <x>14</x>
   <y>-1</y>
   <w>15</w>
   <h>15</h>
   <binding>
    <condition>
     <less-than>
      <property>/instrumentation/altimeter/indicated-altitude-ft</property>
      <property n="1">/controls/autoflight/automach-ft</property>
     </less-than>
    </condition>
    <command>property-adjust</command>
    <property alias="../../../../params/spd-ctrl"/>
    <step>1</step>
    <min>130</min>
    <max>375</max>
    <wrap>0</wrap>
   </binding>
   <binding>
    <condition>
     <and>
      <less-than>
       <property>/instrumentation/altimeter/indicated-altitude-ft</property>
       <property n="1">/controls/autoflight/automach-ft</property>
      </less-than>
      <property>/controls/autoflight/autothrottle-engage</property>
      <not-equals>
       <property>/controls/autoflight/heading</property>
       <value>autoland</value>
      </not-equals>
     </and>
    </condition>
    <command>property-assign</command>
    <property alias="../../../../params/spd-auto"/>
    <property n="1" alias="../../../../params/spd-ctrl"/>
   </binding>
   <binding>
    <condition>
     <greater-than-equals>
      <property>/instrumentation/altimeter/indicated-altitude-ft</property>
      <property n="1">/controls/autoflight/automach-ft</property>
     </greater-than-equals>
    </condition>
    <command>property-adjust</command>
    <property alias="../../../../params/mach-ctrl"/>
    <step>0.01</step>
    <min>0.7</min>
    <max>0.95</max>
    <wrap>0</wrap>
   </binding>
   <binding>
    <condition>
     <and>
      <greater-than-equals>
       <property>/instrumentation/altimeter/indicated-altitude-ft</property>
       <property n="1">/controls/autoflight/automach-ft</property>
      </greater-than-equals>
      <property>/controls/autoflight/autothrottle-engage</property>
     </and>
    </condition>
    <command>property-assign</command>
    <property alias="../../../../params/mach-auto"/>
    <property n="1" alias="../../../../params/mach-ctrl"/>
   </binding>
  </action>

 </actions>

</PropertyList>
