<?xml version="1.0"?>

<!-- 747-200 IVSI with TCAS.

     Real data :
     - limited to 6000 ft / minute.
     - integrated TCAS, supporting TCAS II.
     - glass instrument (not analog).

     Hypothetical data :
     - limited to 9 targets.
     - color codes : cyan (other traffic), yellow (proximate traffic).
     - the IVSI indicates RA (Resolution Advisatory) by a vertical speed.


     References :
     ==========
http://www.ac11.org/library/TCAS_II_V7.pdf :
       TCAS II version 7, FAA, November 2000.

http://www.janes.com/transport/news/jau/jau000725_1_n.shtml :
       Collins TCAS.


......................................................................
Adapted from John Check j4strngs@rockfish.net

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>IVSI / TCAS</name>
 <w-base>128</w-base>
 <h-base>128</h-base>

 <layers>

  <layer>
   <name>glare shield</name>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/747-black-bg.rgb</path>
    <x1>0.0</x1>
    <y1>0.0</y1>
    <x2>1.0</x2>
    <y2>1.0</y2>
   </texture>
   <w>127</w>
   <h>127</h>
  </layer>

  <layer>
   <name>background</name>
   <condition include="747-cond-voltage-inst.xml"/>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/747-vsi.rgb</path>
    <x1>0.0</x1>
    <y1>0.0</y1>
    <x2>1.0</x2>
    <y2>1.0</y2>
   </texture>
   <w>114</w>
   <h>114</h>
  </layer>

<!-- fix misc.rgb -->
  <layer>
   <name>needle</name>
   <condition include="747-cond-voltage-inst.xml"/>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/misc-1.rgb</path>
    <x1>0.8</x1>
    <y1>0.78125</y1>
    <x2>0.8375</x2>
    <y2>1.0</y2>
   </texture>
   <w>6</w>
   <h>48</h>
   <transformations>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/inst-vertical-speed-indicator/indicated-speed-fps</property>
     <min>-100.0</min>
     <max>100.0</max>
     <scale>1.0</scale>
     <offset>270.0</offset>
     <interpolation>
      <entry><ind>-100.0</ind><dep>-180.0</dep></entry>
      <entry><ind> -33.3</ind><dep> -80.0</dep></entry>
      <entry><ind> -16.7</ind><dep> -46.7</dep></entry>
      <entry><ind >    0</ind><dep>   0.0</dep></entry>
      <entry><ind>  16.7</ind><dep>  46.7</dep></entry>
      <entry><ind>  33.3</ind><dep>  80.0</dep></entry>
      <entry><ind> 100.0</ind><dep> 180.0</dep></entry>
     </interpolation>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>20.0</offset>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>button</name>
   <texture>
   <path>Aircraft/747-200/Panels/Instruments/Textures/misc-1.rgb</path>
    <x1>0.6171875</x1>
    <y1>0.2421875</y1>
    <x2>0.7890625</x2>
    <y2>0.4140625</y2>
   </texture>
   <w>15</w>
   <h>15</h>
  </layer>

  <layer>
   <condition include="747-cond-voltage-inst.xml"/>
   <name>range</name>
   <type>text</type>
   <font>led</font>
   <point-size>4</point-size>
   <color>
    <red>0.96</red>
    <green>1.0</green>
    <blue>0.96</blue>
   </color>
   <chunks>
    <chunk>
     <type>number-value</type>
     <property>instrumentation/radar/range</property>
     <format>%2.0f</format>
    </chunk>
   </chunks>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>40</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>42</offset>
    </transformation>
   </transformations>
  </layer>
  
  <layer>
   <name>VS bug</name>
   <w>20</w>
   <h>15</h>
   <texture>
    <path>Aircraft/Instruments/Textures/hsi2.rgb</path>
    <x1>0.8515625</x1>
    <x2>0.953125</x2>
    <y1>0.359375</y1>
    <y2>0.4375</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>0</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>0</offset>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/autopilot/settings/vertical-speed-fpm</property>
     <min>-6000.0</min>
     <max>6000.0</max>
     <offset>270.0</offset>
     <scale>1.0</scale>
     <interpolation> <!-- index must increase, because of lookup ! -->
      <entry><ind>-6000.0</ind><dep> -165.0</dep></entry>
      <entry><ind>-3000.0</ind><dep> -105.0</dep></entry>
      <entry><ind>-2000.0</ind><dep>  -80.0</dep></entry>
      <entry><ind>-1000.0</ind><dep>  -46.0</dep></entry>
      <entry><ind>   0.0</ind><dep>    0.0</dep></entry>
      <entry><ind> 1000.0</ind><dep>   46.0</dep></entry>
      <entry><ind> 2000.0</ind><dep>   80.0</dep></entry>
      <entry><ind> 3000.0</ind><dep>  105.0</dep></entry>
      <entry><ind> 6000.0</ind><dep>  165.0</dep></entry>
     </interpolation>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>53</offset>
    </transformation>
   </transformations>
  </layer>

<!-- TCAS -->

  <layer>
   <name>target0</name>
   <w>16</w>
   <h>16</h>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[0]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0429687</x1>
    <y1>0.8320312</y1>
    <x2>0.0703125</x2>
    <y2>0.8945312</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[0]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[0]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[0]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[0]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/tcas/traffics/traffic[0]/rotation</property>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>altitude0</name>
   <type>switch</type>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[0]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>

   <layer>
    <name>other traffic0</name>
    <condition>
     <or>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[0]/distance-nm</property>
       <value>6.0</value>
      </greater-than>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[0]/level-ft</property>
       <value>1200.0</value>
      </greater-than>
      <less-than>
       <property>instrumentation/tcas/traffics/traffic[0]/level-ft</property>
       <value>-1200.0</value>
      </less-than>
     </or>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>0.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[0]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[0]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[0]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[0]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[0]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>proximate traffic0</name>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[0]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[0]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[0]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[0]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[0]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>
  </layer>

  <layer>
   <name>target1</name>
   <w>16</w>
   <h>16</h>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[1]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0429687</x1>
    <y1>0.8320312</y1>
    <x2>0.0703125</x2>
    <y2>0.8945312</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[1]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[1]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[1]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[1]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/tcas/traffics/traffic[1]/rotation</property>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>altitude1</name>
   <type>switch</type>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[1]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>

   <layer>
    <name>other traffic1</name>
    <condition>
     <or>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[1]/distance-nm</property>
       <value>6.0</value>
      </greater-than>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[1]/level-ft</property>
       <value>1200.0</value>
      </greater-than>
      <less-than>
       <property>instrumentation/tcas/traffics/traffic[1]/level-ft</property>
       <value>-1200.0</value>
      </less-than>
     </or>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>0.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[1]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[1]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[1]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[1]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[1]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>proximate traffic1</name>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[1]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[1]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[1]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[1]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[1]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>
  </layer>

  <layer>
   <name>target2</name>
   <w>16</w>
   <h>16</h>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[2]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0429687</x1>
    <y1>0.8320312</y1>
    <x2>0.0703125</x2>
    <y2>0.8945312</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[2]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[2]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[2]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[2]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/tcas/traffics/traffic[2]/rotation</property>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>altitude2</name>
   <type>switch</type>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[2]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>

   <layer>
    <name>other traffic2</name>
    <condition>
     <or>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[2]/distance-nm</property>
       <value>6.0</value>
      </greater-than>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[2]/level-ft</property>
       <value>1200.0</value>
      </greater-than>
      <less-than>
       <property>instrumentation/tcas/traffics/traffic[2]/level-ft</property>
       <value>-1200.0</value>
      </less-than>
     </or>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>0.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[2]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[2]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[2]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[2]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[2]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>proximate traffic2</name>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[2]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[2]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[2]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[2]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[2]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>
  </layer>

  <layer>
   <name>target3</name>
   <w>16</w>
   <h>16</h>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[3]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0429687</x1>
    <y1>0.8320312</y1>
    <x2>0.0703125</x2>
    <y2>0.8945312</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[3]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[3]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[3]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[3]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/tcas/traffics/traffic[3]/rotation</property>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>altitude3</name>
   <type>switch</type>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[3]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>

   <layer>
    <name>other traffic3</name>
    <condition>
     <or>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[3]/distance-nm</property>
       <value>6.0</value>
      </greater-than>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[3]/level-ft</property>
       <value>1200.0</value>
      </greater-than>
      <less-than>
       <property>instrumentation/tcas/traffics/traffic[3]/level-ft</property>
       <value>-1200.0</value>
      </less-than>
     </or>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>0.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[3]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[3]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[3]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[3]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[3]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>proximate traffic3</name>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[3]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[3]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[3]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[3]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[3]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>
  </layer>

  <layer>
   <name>target4</name>
   <w>16</w>
   <h>16</h>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[4]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0429687</x1>
    <y1>0.8320312</y1>
    <x2>0.0703125</x2>
    <y2>0.8945312</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[4]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[4]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[4]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[4]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/tcas/traffics/traffic[4]/rotation</property>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>altitude4</name>
   <type>switch</type>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[4]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>

   <layer>
    <name>other traffic4</name>
    <condition>
     <or>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[4]/distance-nm</property>
       <value>6.0</value>
      </greater-than>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[4]/level-ft</property>
       <value>1200.0</value>
      </greater-than>
      <less-than>
       <property>instrumentation/tcas/traffics/traffic[4]/level-ft</property>
       <value>-1200.0</value>
      </less-than>
     </or>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>0.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[4]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[4]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[4]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[4]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[4]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>proximate traffic4</name>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[4]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[4]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[4]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[4]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[4]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>
  </layer>

  <layer>
   <name>target5</name>
   <w>16</w>
   <h>16</h>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[5]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0429687</x1>
    <y1>0.8320312</y1>
    <x2>0.0703125</x2>
    <y2>0.8945312</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[5]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[5]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[5]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[5]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/tcas/traffics/traffic[5]/rotation</property>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>altitude5</name>
   <type>switch</type>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[5]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>

   <layer>
    <name>other traffic5</name>
    <condition>
     <or>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[5]/distance-nm</property>
       <value>6.0</value>
      </greater-than>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[5]/level-ft</property>
       <value>1200.0</value>
      </greater-than>
      <less-than>
       <property>instrumentation/tcas/traffics/traffic[5]/level-ft</property>
       <value>-1200.0</value>
      </less-than>
     </or>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>0.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[5]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[5]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[5]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[5]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[5]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>proximate traffic5</name>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[5]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[5]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[5]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[5]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[5]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>
  </layer>

  <layer>
   <name>target6</name>
   <w>16</w>
   <h>16</h>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[6]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0429687</x1>
    <y1>0.8320312</y1>
    <x2>0.0703125</x2>
    <y2>0.8945312</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[6]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[6]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[6]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[6]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/tcas/traffics/traffic[6]/rotation</property>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>altitude6</name>
   <type>switch</type>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[6]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>

   <layer>
    <name>other traffic6</name>
    <condition>
     <or>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[6]/distance-nm</property>
       <value>6.0</value>
      </greater-than>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[6]/level-ft</property>
       <value>1200.0</value>
      </greater-than>
      <less-than>
       <property>instrumentation/tcas/traffics/traffic[6]/level-ft</property>
       <value>-1200.0</value>
      </less-than>
     </or>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>0.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[6]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[6]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[6]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[6]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[6]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>proximate traffic6</name>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[6]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[6]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[6]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[6]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[6]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>
  </layer>

  <layer>
   <name>target7</name>
   <w>16</w>
   <h>16</h>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[7]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0429687</x1>
    <y1>0.8320312</y1>
    <x2>0.0703125</x2>
    <y2>0.8945312</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[7]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[7]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[7]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[7]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/tcas/traffics/traffic[7]/rotation</property>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>altitude7</name>
   <type>switch</type>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[7]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>

   <layer>
    <name>other traffic7</name>
    <condition>
     <or>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[7]/distance-nm</property>
       <value>6.0</value>
      </greater-than>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[7]/level-ft</property>
       <value>1200.0</value>
      </greater-than>
      <less-than>
       <property>instrumentation/tcas/traffics/traffic[7]/level-ft</property>
       <value>-1200.0</value>
      </less-than>
     </or>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>0.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[7]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[7]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[7]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[7]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[7]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>proximate traffic7</name>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[7]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[7]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[7]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[7]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[7]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>
  </layer>

  <layer>
   <name>target8</name>
   <w>16</w>
   <h>16</h>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[8]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0429687</x1>
    <y1>0.8320312</y1>
    <x2>0.0703125</x2>
    <y2>0.8945312</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[8]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>x-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[8]/x-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[8]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>/instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>y-shift</type>
     <property>/instrumentation/tcas/traffics/traffic[8]/y-shift</property>
     <scale>0.875</scale>
    </transformation>
    <transformation>
     <type>rotation</type>
     <property>/instrumentation/tcas/traffics/traffic[8]/rotation</property>
    </transformation>
   </transformations>
  </layer>

  <layer>
   <name>altitude8</name>
   <type>switch</type>
   <condition>
    <and include="747-cond-voltage-inst.xml">
     <less-than-equals>
      <property>instrumentation/tcas/traffics/traffic[8]/distance-nm</property>
      <property n="1">instrumentation/tcas/range</property>
     </less-than-equals>
    </and>
   </condition>

   <layer>
    <name>other traffic8</name>
    <condition>
     <or>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[8]/distance-nm</property>
       <value>6.0</value>
      </greater-than>
      <greater-than>
       <property>instrumentation/tcas/traffics/traffic[8]/level-ft</property>
       <value>1200.0</value>
      </greater-than>
      <less-than>
       <property>instrumentation/tcas/traffics/traffic[8]/level-ft</property>
       <value>-1200.0</value>
      </less-than>
     </or>
    </condition>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>0.0</red>
     <green>1.0</green>
     <blue>1.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[8]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[8]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[8]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[8]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[8]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>

   <layer>
    <name>proximate traffic8</name>
    <type>text</type>
    <font>led</font>
    <point-size>4</point-size>
    <color>
     <red>1.0</red>
     <green>1.0</green>
     <blue>0.0</blue>
    </color>
    <chunks>
     <chunk>
      <type>number-value</type>
      <property>instrumentation/tcas/traffics/traffic[8]/level-ft</property>
      <scale>0.01</scale>
      <format>%02.0f</format>
     </chunk>
    </chunks>
    <transformations>
     <transformation>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[8]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>x-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[8]/x-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[8]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
     <transformation>
      <condition>
       <equals>
        <property>/instrumentation/radar/range</property>
        <value>20</value>
       </equals>
      </condition>
      <type>y-shift</type>
      <property>/instrumentation/tcas/traffics/traffic[8]/y-shift</property>
      <scale>0.875</scale>
     </transformation>
    </transformations>
   </layer>
  </layer>

<!-- Knob -->

  <layer>
   <name>range knob</name>
   <w>22</w>
   <h>22</h>
   <texture>
    <path>Aircraft/747-200/Panels/Instruments/Textures/radar_misc.rgb</path>
    <x1>0.0273437</x1>
    <y1>0.9101562</y1>
    <x2>0.0898437</x2>
    <y2>0.9765662</y2>
   </texture>
   <transformations>
    <transformation>
     <type>x-shift</type>
     <offset>-48</offset>
    </transformation>
    <transformation>
     <type>y-shift</type>
     <offset>-52</offset>
    </transformation>
    <transformation>
     <condition>
      <equals>
       <property>instrumentation/radar/range</property>
       <value>20</value>
      </equals>
     </condition>
     <type>rotation</type>
     <offset>-90</offset>
    </transformation>
   </transformations>
  </layer>

 </layers>

 <actions>

<!-- AI shows targets until 43 NM -->

  <action>
   <name>set range 40</name>
   <button>0</button>
   <x>-65</x>
   <y>-70</y>
   <w>35</w>
   <h>35</h>
   <condition>
    <equals>
     <property>/instrumentation/radar/range</property>
     <value>20</value>
    </equals>
   </condition>
   <binding>
    <command>property-assign</command>
    <property>/instrumentation/radar/range</property>
    <value>40</value>
   </binding>
   <binding>
    <command>property-assign</command>
    <property>/instrumentation/tcas/range</property>
    <value>45</value>
   </binding>
  </action>

  <action>
   <name>set range 20</name>
   <button>0</button>
   <x>-65</x>
   <y>-70</y>
   <w>35</w>
   <h>35</h>
   <condition>
    <equals>
     <property>/instrumentation/radar/range</property>
     <value>40</value>
    </equals>
   </condition>
   <binding>
    <command>property-assign</command>
    <property>/instrumentation/radar/range</property>
    <value>20</value>
   </binding>
   <binding>
    <command>property-assign</command>
    <property>/instrumentation/tcas/range</property>
    <value>25</value>
   </binding>
  </action>

 </actions>

</PropertyList>
