<?xml version="1.0"?>

<!-- undercarriage indicator -->

<PropertyList>

 <path>gear.ac</path>

<!-- **************** lamps **************** -->

<animation>
  <type>select</type>
  <object-name>disk-P-R</object-name>
  <condition>
    <and>
      <property>fdm/jsbsim/gear/unit[1]/pos-norm</property>
      <equals>
        <property>fdm/jsbsim/gear/unit[1]/locked</property>
        <value>0</value>
      </equals>
    </and>
</condition>
 </animation>
 
 <animation>
  <type>select</type>
  <object-name>disk-S-R</object-name>
  <condition>
    <and>
      <property>fdm/jsbsim/gear/unit[2]/pos-norm</property>
      <equals>
        <property>fdm/jsbsim/gear/unit[2]/locked</property>
        <value>0</value>
      </equals>
    </and>
</condition>
  </animation>

 <animation>
  <type>select</type>
  <object-name>disk-F-R</object-name>
  <condition>
    <and>
      <property>fdm/jsbsim/gear/unit[0]/pos-norm</property>
      <equals>
        <property>fdm/jsbsim/gear/unit[0]/locked</property>
        <value>0</value>
      </equals>
    </and>
    </condition>
  </animation>

 <animation>
  <type>select</type>
  <object-name>disk-P-G</object-name>
  <condition>
    <equals>
     <property>fdm/jsbsim/gear/unit[1]/locked</property>
     <value>-1</value>
    </equals>
   </condition>
 </animation>
 
<!-- Stbd locked up -->
 <animation>
  <type>select</type>
  <object-name>disk-S-G</object-name>
  <condition>
    <equals>
     <property>fdm/jsbsim/gear/unit[2]/locked</property>
     <value>-1</value>
    </equals>
   </condition>
 </animation>

<!-- Nose locked up -->
 <animation>
  <type>select</type>
  <object-name>disk-F-G</object-name>
  <condition>
    <equals>
     <property>fdm/jsbsim/gear/unit[0]/locked</property>
     <value>-1</value>
    </equals>
   </condition>
 </animation>
 
<!-- Port unlocked -->
 <animation>
  <type>select</type>
  <object-name>disk-P-UL</object-name>
  <condition>
    <equals>
     <property>fdm/jsbsim/gear/unit[1]/locked</property>
     <value>0</value>
    </equals>
   </condition>

 </animation>
 
<!-- Stbd unlocked -->
 <animation>
  <type>select</type>
  <object-name>disk-S-UL</object-name>
  <condition>
    <equals>
     <property>fdm/jsbsim/gear/unit[2]/locked</property>
     <value>0</value>
    </equals>
   </condition>
 </animation>

<!-- Nose unlocked -->
 <animation>
  <type>select</type>
  <object-name>disk-F-UL</object-name>
  <condition>
    <equals>
     <property>fdm/jsbsim/gear/unit[0]/locked</property>
     <value>0</value>
    </equals>
   </condition>
 </animation>
 
 <!-- Brakes On -->
 <animation>
  <type>select</type>
  <object-name>disk-B-O</object-name>
  <condition>
    <or>
      <equals>
        <property>controls/gear/brake-parking</property>
	    <value>1</value>
      </equals>
	  <equals>
        <property>controls/gear/brake-left</property>
	    <value>1</value>
      </equals>
	  <equals>
        <property>controls/gear/brake-right</property>
	    <value>1</value>
      </equals>
    </or>
  </condition>
 </animation>
 
  <animation> 
   <type>material</type>
   <object-name>face</object-name>
   <object-name>mount</object-name>
   <object-name>bezelinside</object-name>
   <object-name>bezeloutside</object-name>
    <emission> 
      <factor-prop>/controls/lighting/panel-norm</factor-prop>
        <red>0.75</red>
        <green>0.25</green>
        <blue>0.25</blue>
      </emission>
  </animation>

 </PropertyList>
