<!-- This guage is for Tds787 for making the Spoiler action   -->
<Gauge Name="PkySpoilers" Version="1.0">
<copyright>(c)2008 Hiroshi Igami</copyright>

<Size X="20" Y="20"/>
<Element>
<Select>
<Value> 


<!-- +++++++++++++++++++++++++++ -->
<!--        LEFT SIDE             -->
<!-- +++++++++++++++++++++++++++ -->
<!-- +++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 1 (Left tip) -->
<!-- +++++++++++++++++++++++++++ -->
(A:SPOILERS LEFT POSITION,percent) 25 &gt; if{
  (A:SPOILERS LEFT POSITION,percent) 25 -  1.333 *  
   0 max 100 min    -1  *
}
els{
   0 
}

(L:Tds_TEVCFLAP_OUTB, number) +
(A:TRAILING EDGE FLAPS Left PERCENT,percent) +  300 + 

(A:SIM ON GROUND, bool) 1 == if{
    (A:SPOILERS LEFT POSITION,percent) 75 &gt;  if{
        200
     }
}
els{
   285 max
}
200 max 400 min
(>L:Tds_B8_S01SPOILER, percent)


<!-- ++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 2 (From Left tip) -->
<!-- ++++++++++++++++++++++++++++++++ -->
(A:SPOILERS LEFT POSITION,percent) 5 &gt; if{
   (A:SPOILERS LEFT POSITION,percent) 5 -  1.333 *  
    0 max 100 min    -1  *
}
els{
    0 
}
(L:Tds_TEVCFLAP_OUTB, number) +
(A:TRAILING EDGE FLAPS Left PERCENT,percent) +  300 + 

(A:SIM ON GROUND, bool) 1 == if{
   (A:SPOILERS LEFT POSITION,percent) 75  &gt;  if{
       200
    }
}
els{
   280 max
}
(>L:Tds_B8_S02SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 3 (From Left tip ) -->
<!-- ++++++++++++++++++++++++++++++++ -->
(A:SPOILERS LEFT POSITION,percent) 20 &gt; if{
   (A:SPOILERS LEFT POSITION,percent) 20 -  1.333 *  
    0 max 100 min    -1  *
}
els{
    0 
}
(L:Tds_TEVCFLAP_OUTB, number) +
(A:TRAILING EDGE FLAPS Left PERCENT,percent) +  300 + 

(A:SIM ON GROUND, bool) 1 == if{
   (A:SPOILERS LEFT POSITION,percent) 75  &gt;  if{
       200
    }
}
els{
   275 max
}
(>L:Tds_B8_S03SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 4 (From Left tip ) -->
<!-- ++++++++++++++++++++++++++++++++ -->
(A:SPOILERS LEFT POSITION,percent) 0 &gt; if{
   (A:SPOILERS LEFT POSITION,percent)   1.333 *  
    0 max 100 min    -1  *
}
els{
    0 
}
(L:Tds_TEVCFLAP_OUTB, number) +
(A:TRAILING EDGE FLAPS Left PERCENT,percent) +  300 + 

(A:SIM ON GROUND, bool) 1 == if{
   (A:SPOILERS LEFT POSITION,percent) 75  &gt;  if{
       200
    }
}
els{
   270 max
}
(>L:Tds_B8_S04SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 5 (Inboard Left out ) -->
<!-- ++++++++++++++++++++++++++++++++++++ -->
(A:SPOILERS LEFT POSITION,percent) 1 &gt; if{
    (A:SIM ON GROUND, bool) 1 == if{
        300 
        (A:SPOILERS LEFT POSITION,percent) -
    }
    els{
         (A:TRAILING EDGE FLAPS Left PERCENT,percent)  300 +
         (A:SPOILERS LEFT POSITION,percent) -
          285 max
    }
}
els{
          (A:TRAILING EDGE FLAPS Left PERCENT,percent)  300 +
}
(L:Tds_TEVCFLAP_INB, number) +
(>L:Tds_B8_S05SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 6 (Inboard Left mid ) -->
<!-- ++++++++++++++++++++++++++++++++++++ -->
(A:SPOILERS LEFT POSITION,percent) 1 &gt; if{
    (A:SIM ON GROUND, bool) 1 == if{
        300 
        (A:SPOILERS LEFT POSITION,percent) -
    }
    els{
         (A:TRAILING EDGE FLAPS Left PERCENT,percent)  300 +
         (A:SPOILERS LEFT POSITION,percent) -
          285 max
    }
}
els{
          (A:TRAILING EDGE FLAPS Left PERCENT,percent)  300 +
}
(L:Tds_TEVCFLAP_INB, number) +
(>L:Tds_B8_S06SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 7 (Inboard Left in  ) -->
<!-- ++++++++++++++++++++++++++++++++++++ -->
(A:SPOILERS LEFT POSITION,percent) 1 &gt; if{
    (A:SIM ON GROUND, bool) 1 == if{
        300 
        (A:SPOILERS LEFT POSITION,percent) -
    }
    els{
         (A:TRAILING EDGE FLAPS Left PERCENT,percent)  300 +
         (A:SPOILERS LEFT POSITION,percent) -
          285 max
    }
}
els{
          (A:TRAILING EDGE FLAPS Left PERCENT,percent)  300 +
}
(L:Tds_TEVCFLAP_INB, number) +
(>L:Tds_B8_S07SPOILER, percent)



<!-- +++++++++++++++++++++++++++ -->
<!--        RIGHT SIDE             -->
<!-- +++++++++++++++++++++++++++ -->
<!-- ++++++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 8 (Inboard Right in  ) -->
<!-- ++++++++++++++++++++++++++++++++++++ -->
(A:SPOILERS RIGHT POSITION,percent) 1 &gt; if{
    (A:SIM ON GROUND, bool) 1 == if{
        300 
        (A:SPOILERS RIGHT POSITION,percent) -
    }
    els{
         (A:TRAILING EDGE FLAPS Right PERCENT,percent)  300 +
         (A:SPOILERS RIGHT POSITION,percent) -
          285 max
    }
}
els{
          (A:TRAILING EDGE FLAPS RIGHT PERCENT,percent)  300 +
}
(L:Tds_TEVCFLAP_INB, number) +
(>L:Tds_B8_S08SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 9 (Inboard Right mid  ) -->
<!-- ++++++++++++++++++++++++++++++++++++ -->
(A:SPOILERS RIGHT POSITION,percent) 1 &gt; if{
    (A:SIM ON GROUND, bool) 1 == if{
        300 
        (A:SPOILERS RIGHT POSITION,percent) -
    }
    els{
         (A:TRAILING EDGE FLAPS Right PERCENT,percent)  300 +
         (A:SPOILERS RIGHT POSITION,percent) -
          285 max
    }
}
els{
          (A:TRAILING EDGE FLAPS RIGHT PERCENT,percent)  300 +
}
(L:Tds_TEVCFLAP_INB, number) +
(>L:Tds_B8_S09SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 10 (Inboard Right out  ) -->
<!-- ++++++++++++++++++++++++++++++++++++ -->
(A:SPOILERS RIGHT POSITION,percent) 1 &gt; if{
    (A:SIM ON GROUND, bool) 1 == if{
        300 
        (A:SPOILERS RIGHT POSITION,percent) -
    }
    els{
         (A:TRAILING EDGE FLAPS Right PERCENT,percent)  300 +
         (A:SPOILERS RIGHT POSITION,percent) -
          285 max
    }
}
els{
          (A:TRAILING EDGE FLAPS RIGHT PERCENT,percent)  300 +
}
(L:Tds_TEVCFLAP_INB, number) +
(>L:Tds_B8_S10SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 11                -->
<!-- ++++++++++++++++++++++++++++++++ -->
(A:SPOILERS RIGHT POSITION,percent) 0 &gt; if{
   (A:SPOILERS RIGHT POSITION,percent)   1.333 *  
    0 max 100 min    -1  *
}
els{
    0 
}
(L:Tds_TEVCFLAP_OUTB, number) +
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) +  300 + 

(A:SIM ON GROUND, bool) 1 == if{
   (A:SPOILERS RIGHT POSITION,percent) 75  &gt;  if{
       200
    }
}
els{
   270 max
}
(>L:Tds_B8_S11SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 12 -->
<!-- ++++++++++++++++++++++++++++++++ -->
(A:SPOILERS RIGHT POSITION,percent) 20 &gt; if{
   (A:SPOILERS RIGHT POSITION,percent) 20 -  1.333 *  
    0 max 100 min    -1  *
}
els{
    0 
}
(L:Tds_TEVCFLAP_OUTB, number) +
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) +  300 + 

(A:SIM ON GROUND, bool) 1 == if{
   (A:SPOILERS RIGHT POSITION,percent) 75  &gt;  if{
       200
    }
}
els{
   275 max
}
(>L:Tds_B8_S12SPOILER, percent)

<!-- ++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 13 -->
<!-- ++++++++++++++++++++++++++++++++ -->
(A:SPOILERS RIGHT POSITION,percent) 5 &gt; if{
   (A:SPOILERS RIGHT POSITION,percent) 5 -  1.333 *  
    0 max 100 min    -1  *
}
els{
    0 
}
(L:Tds_TEVCFLAP_OUTB, number) +
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) +  300 + 

(A:SIM ON GROUND, bool) 1 == if{
   (A:SPOILERS RIGHT POSITION,percent) 75  &gt;  if{
       200
    }
}
els{
   280 max
}
(>L:Tds_B8_S13SPOILER, percent)


<!-- ++++++++++++++++++++++++++++++++ -->
<!--TDS 787 Spoiler 14 -->
<!-- ++++++++++++++++++++++++++++++++ -->
(A:SPOILERS RIGHT POSITION,percent) 25 &gt; if{
   (A:SPOILERS RIGHT POSITION,percent) 25 -  1.333 *  
    0 max 100 min    -1  *
}
els{
    0 
}
(L:Tds_TEVCFLAP_OUTB, number) +
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) +  300 + 

(A:SIM ON GROUND, bool) 1 == if{
   (A:SPOILERS RIGHT POSITION,percent) 75  &gt;  if{
       200
    }
}
els{
   285 max
}
(>L:Tds_B8_S14SPOILER, percent)

</Value>
</Select>
</Element>  
</Gauge>
