<?xml version="1.0"?>

<!--
props:
controls/hydraulic/
  demand-pump[0]
  engine-pump[0]
systems/hydraulic/
  system-fault[0]
  demand-pump-pressure-low[0]
  engine-pump-pressure-low[0]
-->

<PropertyList>

  <name>Hydraulic panel</name>
  <background>Aircraft/747-400/Panels/744_hyd_panel.png</background>
  <w>320</w>
  <h>178</h>
  <x-offset>300</x-offset>
  <y-offset>300</y-offset>
  <view-height>768</view-height>
  <autohide>false</autohide>

  <instruments>

    <!-- WARNING LIGHTS -->
    <instrument include="shutter_light.xml">
      <name>sys 1 light</name>
      <x>56</x><y>162</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/system-fault[0]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2><y1>0.5</y1><y2>1</y2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script></script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>sys 2 light</name>
      <x>122</x><y>162</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/system-fault[1]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2><y1>0.5</y1><y2>1</y2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script></script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>sys 3 light</name>
      <x>201</x><y>162</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/system-fault[2]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2><y1>0.5</y1><y2>1</y2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script></script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>sys 4 light</name>
      <x>267</x><y>162</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/system-fault[3]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2><y1>0.5</y1><y2>1</y2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script></script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>press 1 light</name>
      <x>56</x><y>133</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/demand-pump-pressure-low[0]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script></script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>press 2 light</name>
      <x>122</x><y>133</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/demand-pump-pressure-low[1]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script></script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>press 3 light</name>
      <x>201</x><y>133</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/demand-pump-pressure-low[2]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script></script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>press 4 light</name>
      <x>267</x><y>133</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/demand-pump-pressure-low[3]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script></script>
      </binding></action></actions>
    </instrument>

    <!-- R O T A R I E S -->
    <instrument include="rotary.xml">
      <name>demand pump 1</name>
      <x>56</x><y>85</y>
      <w>42</w> <h>42</h>
      <layers><layer><transformations><transformation>
	<property>controls/hydraulic/demand-pump[0]</property>
      </transformation></transformations></layer></layers>
      <actions> <action>
	<button>0</button>
	<binding>
	  <command>nasal</command>
	  <script>hydraulic.hyd_sys[0].dem_sw(1)</script>
	</binding>
      </action>
      <action>
	<button>1</button>
	<binding>
	  <command>nasal</command>
	  <script>hydraulic.hyd_sys[0].dem_sw(-1)</script>
	</binding>
      </action> </actions>
    </instrument>

    <instrument include="rotary.xml">
      <name>demand pump 2</name>
      <x>121</x><y>85</y>
      <w>42</w> <h>42</h>
      <layers><layer><transformations><transformation>
	<property>controls/hydraulic/demand-pump[1]</property>
      </transformation></transformations></layer></layers>
      <actions> <action>
	<button>0</button>
	<binding>
	  <command>nasal</command>
	  <script>hydraulic.hyd_sys[1].dem_sw(1)</script>
	</binding>
      </action>
      <action>
	<button>1</button>
	<binding>
	  <command>nasal</command>
	  <script>hydraulic.hyd_sys[1].dem_sw(-1)</script>
	</binding>
      </action> </actions>
    </instrument>

    <instrument include="rotary.xml">
      <name>demand pump 3</name>
      <x>201</x><y>85</y>
      <w>42</w> <h>42</h>
      <layers><layer><transformations><transformation>
	<property>controls/hydraulic/demand-pump[2]</property>
      </transformation></transformations></layer></layers>
      <actions> <action>
	<button>0</button>
	<binding>
	  <command>nasal</command>
	  <script>hydraulic.hyd_sys[2].dem_sw(1)</script>
	</binding>
      </action>
      <action>
	<button>1</button>
	<binding>
	  <command>nasal</command>
	  <script>hydraulic.hyd_sys[2].dem_sw(-1)</script>
	</binding>
      </action> </actions>
    </instrument>

    <instrument include="rotary.xml">
      <name>demand pump 4 switch</name>
      <x>266</x><y>85</y>
      <w>42</w> <h>42</h>
      <layers><layer><transformations><transformation>
	<property>controls/hydraulic/demand-pump[3]</property>
	<interpolation>
	  <entry> <ind>-0.1</ind> <dep>-42</dep> </entry>
	  <entry> <ind>-1</ind> <dep>-140</dep> </entry>
	</interpolation>
      </transformation></transformations></layer></layers>
      <actions> <action>
	<button>0</button>
	<binding>
	  <command>nasal</command>
	  <script>hydraulic.hyd_sys[3].dem_sw(1)</script>
	</binding>
      </action>
      <action>
	<button>1</button>
	<binding>
	  <command>nasal</command>
	  <script>hydraulic.hyd_sys[3].dem_sw(-1)</script>
	</binding>
      </action> </actions>
    </instrument>

    <!-- E N G I N E   P U M P S -->
    <instrument include="shutter_sw.xml">
      <name>engine driven pump 1</name>
      <x>57</x><y>39</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/hydraulic/engine-pump[0]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>hydraulic.hyd_sys[0].edp_sw()</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>demand pump 1 light</name>
      <x>57</x><y>21</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/engine-pump-pressure-low[0]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>hydraulic.hyd_sys[0].edp_sw()</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>engine driven pump 2</name>
      <x>122</x><y>39</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/hydraulic/engine-pump[1]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>hydraulic.hyd_sys[1].edp_sw()</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>demand pump 2 light</name>
      <x>122</x><y>21</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/engine-pump-pressure-low[1]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>hydraulic.hyd_sys[1].edp_sw()</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>engine driven pump 3</name>
      <x>201</x><y>39</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/hydraulic/engine-pump[2]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>hydraulic.hyd_sys[2].edp_sw()</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>demand pump 3 light</name>
      <x>201</x><y>21</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/engine-pump-pressure-low[2]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>hydraulic.hyd_sys[2].edp_sw()</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>engine driven pump 4</name>
      <x>266</x><y>39</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/hydraulic/engine-pump[3]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>hydraulic.hyd_sys[3].edp_sw()</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>demand pump 4 light</name>
      <x>266</x><y>21</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/hydraulic/engine-pump-pressure-low[3]</property>
	</condition>
	<texture><x1>0.75</x1><x2>0.875</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>hydraulic.hyd_sys[3].edp_sw()</script>
      </binding></action></actions>
    </instrument>

  </instruments>

</PropertyList>

