<?xml version="1.0" ?>
<!--
 This file is part of FlightGear, the free flight simulator
 http://www.flightgear.org/

 Copyright (C) 2009 Torsten Dreyer, Torsten (at) t3r _dot_ de

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as
 published by the Free Software Foundation; either version 2 of the
 License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 General Public License for more details.
-->
<PropertyList>
    <path>Vacuum.ac</path>
    
    <animation>
        <type>noshadow</type>
    </animation>
    <animation>
        <type>range</type>
        <min-m>0</min-m>
        <max-m>10</max-m>
    </animation>

    <animation>
        <type>material</type>
        <object-name>Face</object-name>
        <emission>
            <red-prop>/sim/model/instrument-lighting/emission/red</red-prop>
            <green-prop>/sim/model/instrument-lighting/emission/green</green-prop>
            <blue-prop>/sim/model/instrument-lighting/emission/blue</blue-prop>
            <factor-prop>/controls/lighting/instruments-norm</factor-prop>
        </emission>
    </animation>
    
    <animation>
        <type>rotate</type>
        <object-name>Needle</object-name>
        <!-- 
        todo: the needle shows vac generated by both engines
        Should be something like max(vac[0],vac[1])
        -->
        <property>instrumentation/vacuum/suction-inhg</property>
        <interpolation>
            <entry>
                <ind>0</ind>
                <dep>0</dep>
            </entry>
            <entry>
                <ind>3.5</ind>
                <dep>-45</dep>
            </entry>
            <entry>
                <ind>6.5</ind>
                <dep>-135</dep>
            </entry>
            <entry>
                <ind>15</ind>
                <dep>-180</dep>
            </entry>
        </interpolation>
        <axis>
            <x>1.0</x>
            <y>0.0</y>
            <z>0.0</z>
        </axis>
        <center>
            <x-m>0</x-m>
            <y-m>0</y-m>
            <z-m>0</z-m>
        </center>
    </animation>
    <animation>
        <type>select</type>
        <object-name>InopL</object-name>
        <condition>
            <property>instrumentation/vacuum/inoperative[0]</property>
        </condition>
    </animation>
    <animation>
        <type>select</type>
        <object-name>InopR</object-name>
        <condition>
            <property>instrumentation/vacuum/inoperative[1]</property>
        </condition>
    </animation>
</PropertyList>
