<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="Mh.gif">
  <information>
    <comment>in Anlehnung an Back Kevin</comment>
    <name>Pilot 150</name>
    <author>Detlev Weniger</author>
    <vendor>Pure Reliability</vendor>
  </information>
  <channels>
    <function channel="0" minvalue="0" maxvalue="255" name="Gobo Wheel" fade="no" type="gobo" action="GetGobo" />
    <function channel="1" minvalue="0" maxvalue="255" name="Gobo Rotation" fade="no" action="GetRot" />
    <function channel="2" minvalue="0" maxvalue="255" name="Colour Wheel" fade="no" type="colour" action="GetColor" />
    <function channel="3" minvalue="0" maxvalue="255" name="Strobe" fade="no" type="dimmer" action="GetShutter" />
    <function channel="4" minvalue="0" maxvalue="255" name="Pan" fade="yes" type="pan" />
    <function channel="5" minvalue="0" maxvalue="255" name="Tilt" fade="yes" type="tilt" />
    <function channel="6" minvalue="0" maxvalue="255" name="Pan 16Bit" fade="yes" type="panfine" />
    <function channel="7" minvalue="0" maxvalue="255" name="Tilt 16Bit" fade="yes" type="tiltfine" />
  </channels>
  <form width="350" height="220">
    <deviceimage top="0" left="0" width="33" height="33" />
    <devicename top="0" left="40" />
    <deviceadress top="16" left="40" />
    <dropdown top="56" left="205" width="130" name="gobos_gobo" action="SetGobo">
      <item caption="Open" value="0" />
      <item caption="Dreieck" value="34" icon="Triangle.GIF" />
      <item caption="Punkte" value="67" icon="25 Holes Pink Outer.gif" />
      <item caption="Balken" value="100" icon="Geni_Line.GIF" />
      <item caption="Glas" value="133" icon="PAT252Gobo10.gif" />
      <item caption="Stars" value="166" icon="gobo3.gif" />
      <item caption="Ring" value="200" icon="vrx_circle.gif" />
      <item caption="Windrad" value="233" icon="PAT252Gobo11.gif" />
    </dropdown>
    <label top="80" left="200" caption="Gobomodus :" />
    <dropdown top="96" left="205" width="130" name="gobos_mode" action="SetRot">
      <item caption="Normal" value="0" />
      <item caption="Drehen UZ slow" value="214" />
      <item caption="Drehen UZ slow2" value="224" />
      <item caption="Drehen UZ medium" value="235" />
      <item caption="Drehen UZ medium2" value="245" />
      <item caption="Drehen UZ fast" value="255" />
      <item caption="Drehen GUZ slow" value="164" />
      <item caption="Drehen GUZ slow2" value="175" />
      <item caption="Drehen GUZ medium" value="185" />
      <item caption="Drehen GUZ medium2" value="195" />
      <item caption="Drehen GUZ fast" value="205" />
    </dropdown>
    <label top="40" left="200" caption="Gobo :" />
    <position top="40" left="4" height="180" width="180" />
    <dropdown top="16" left="205" width="130" name="color_color" action="SetColor">
      <item caption="White" value="0" />
      <item caption="Red" value="28" color="#ff0000" />
      <item caption="Yellow" value="56" color="#ffff00" />
      <item caption="Light Green" value="84" color="#80ff80" />
      <item caption="Pink" value="112" color="#ff00ff" />
      <item caption="Ultraviolet " value="140" color="#0080c0" />
      <item caption="Cyan" value="168" color="#9df0ff" />
      <item caption="Green" value="196" color="#00ff00" />
      <item caption="Blue" value="224" color="#0000ff" />
      <item caption="Orange" value="252" color="#fd6602" />
    </dropdown>
    <label top="0" left="200" caption="Farbe :" />
    <label top="120" left="200" caption="Shutter :" />
    <dropdown top="144" left="205" width="130" name="shutter_mode" action="SetShutter">
      <item caption="Shutter geschlossen" value="0" />
      <item caption="Shutter offen" value="255" />
      <item caption="Strobe langsam" value="136" />
      <item caption="Strobe langsam plus" value="163" />
      <item caption="Strobe mittel" value="190" />
      <item caption="Strobe mittel plus" value="218" />
      <item caption="Strobe schnell" value="247" />
    </dropdown>
    <command top="184" left="208" width="80" height="30" caption="Reset" clicksequence="save 0;set 0 6;hold 5500;restore 0" color="#ff0000" />
  </form>
  <code>
    <procedure name="INITCONTROLS">
   !call|GetShutter$
   !call|GetColor$
   !call|GetGobo$
   !call|GetRot$

</procedure>
    <procedure name="GetGobo">
!if|{channel_0} &lt; 208|
 !set_control|gobos_gobo|{channel_0}$
|
 !if|({channel_0} &gt; 207) and ({channel_0} &lt; 227)|
  !set_control|gobos_gobo|-1$
 $
 !if|({channel_0} &gt; 226) and ({channel_0} &lt; 246)|
  !set_control|gobos_gobo|-2$
 $
 !if|({channel_0} &gt; 245) and ({channel_0} &lt; 256)|
  !set_control|gobos_gobo|-3$
 $
$
  
  </procedure>
    <procedure name="SetGobo">
!if|{gobos_gobo}|gt|-1|
 !set_channel|0|{gobos_gobo}$
|
 !if|{gobos_gobo}|eq|-1|
 $
 !if|{gobos_gobo}|eq|-2|
 $
 !if|{gobos_gobo}|eq|-3|
 $
$
  
  </procedure>
    <procedure name="GetShutter">
!if|{channel_3} &lt; 208|
 !set_control|shutter_mode|{channel_3}$
|
 !if|({channel_3} &gt; 207) and ({channel_3} &lt; 227)|
  !set_control|shutter_mode|-1$
 $
 !if|({channel_3} &gt; 226) and ({channel_3} &lt; 246)|
  !set_control|shutter_mode|-2$
 $
 !if|({channel_3} &gt; 245) and ({channel_3} &lt; 256)|
  !set_control|shutter_mode|-3$
 $
$</procedure>
    <procedure name="SetShutter">
!if|{shutter_mode}|gt|-1|
 !set_channel|3|{shutter_mode}$
|
 !if|{shutter_mode}|eq|-1|
 $
 !if|{shutter_mode}|eq|-2|

 $
 !if|{shutter_mode}|eq|-3|
 
$
  
  </procedure>
    <procedure name="GetColor">
!if|{channel_2} &lt; 208|
 !set_control|color_color|{channel_2}$
|
 !if|({channel_2} &gt; 207) and ({channel_2} &lt; 227)|
  !set_control|color_color|-1$
 $
 !if|({channel_2} &gt; 226) and ({channel_2} &lt; 246)|
  !set_control|color_color|-2$
 $
 !if|({channel_2} &gt; 245) and ({channel_2} &lt; 256)|
  !set_control|color_color|-3$
 $
$
  </procedure>
    <procedure name="SetColor">
!if|{color_color}|gt|-1|
 !set_channel|2|{color_color}$
|
 !if|{color_color}|eq|-1|
 $
 !if|{color_color}|eq|-2|
 $
 !if|{color_color}|eq|-3|
 $
$
  </procedure>
    <procedure name="GetRot">!if|{channel_1} &lt; 208|
 !set_control|gobos_mode|{channel_1}$
|
 !if|({channel_1} &gt; 207) and ({channel_1} &lt; 227)|
  !set_control|gobos_mode|-1$
 $
 !if|({channel_1} &gt; 226) and ({channel_1} &lt; 246)|
  !set_control|gobos_mode|-2$
 $
 !if|({channel_1} &gt; 245) and ({channel_1} &lt; 256)|
  !set_control|gobos_mode|-3$
 $
$
  
</procedure>
    <procedure name="SetRot">
!if|{gobos_mode}|gt|-1|
 !set_channel|1|{gobos_mode}$
|
 !if|{gobos_mode}|eq|-1|
 $
 !if|{gobos_mode}|eq|-2|
 $
 !if|{gobos_mode}|eq|-3|
 $
$
  
</procedure>
  </code>
</device>