<?xml version="1.0"?>

<!-- Nosewheel steering mode - taxi/ OFF/ t/o+landing -->

<PropertyList>
 <path>../../../shared/switches/2ppng-15k.ac</path>

 <animation>
  <type>pick</type>
  <object-name>clickspot_up</object-name>
  <visible>false</visible>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
        <condition>
         <equals>
         <property>an24/AZS/sw0317</property>
         <value>1.0</value>
         </equals>
        </condition>
      <command>nasal</command>
      <script>
        setprop("controls/gear/nose-wheel-steering", 1.0 );
        setprop("fdm/jsbsim/gear/nose-wheel-steering", 1.0 );
      </script>
    </binding>
    <binding>
      <command>nasal</command>
      <script>
        interpolate("an24/gear/steer_mode", 0.0, 0.1 );
        setprop("controls/gear/steering", 45.0 );
        setprop("fdm/jsbsim/gear/steering", 45.0 );
      </script>
    </binding>
  </action>
   <hovered>
    <binding>
      <command>set-tooltip</command>
      <tooltip-id>steering-mode</tooltip-id>
      <label>%s</label>
      <property>an24/gear/steer_mode</property>
      <mapping>nasal</mapping>
      <script>
        var steermode0 = ['TAXI', 'OFF', 'T/O LAND'];
        return steermode0[arg[0]];
      </script>
    </binding>
   </hovered>
 </animation>

 <animation>
  <type>pick</type>
  <object-name>clickspot_middle</object-name>
  <visible>false</visible>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
      <command>nasal</command>
      <script>
        interpolate("an24/gear/steer_mode", 1.0, 0.1 );
        setprop("controls/gear/nose-wheel-steering", 0.0 );
        setprop("fdm/jsbsim/gear/nose-wheel-steering", 0.0 );
      </script>
    </binding>
  </action>
   <hovered>
    <binding>
      <command>set-tooltip</command>
      <tooltip-id>steering-mode</tooltip-id>
      <label>%s</label>
      <property>an24/gear/steer_mode</property>
      <mapping>nasal</mapping>
      <script>
        var steermode1 = ['TAXI', 'OFF', 'T/O LAND'];
        return steermode1[arg[0]];
      </script>
    </binding>
   </hovered>
 </animation>

 <animation>
  <type>pick</type>
  <object-name>clickspot_down</object-name>
  <visible>false</visible>
  <action>
    <button>0</button>
    <repeatable>false</repeatable>
    <binding>
        <condition>
         <equals>
         <property>an24/AZS/sw0317</property>
         <value>1.0</value>
         </equals>
        </condition>
      <command>nasal</command>
      <script>
        setprop("controls/gear/nose-wheel-steering", 1.0 );
        setprop("fdm/jsbsim/gear/nose-wheel-steering", 1.0 );
      </script>
    </binding>
    <binding>
      <command>nasal</command>
      <script>
        interpolate("an24/gear/steer_mode", 2.0, 0.1 );
        setprop("controls/gear/steering", 10.0 );
        setprop("fdm/jsbsim/gear/steering", 10.0 );
      </script>
    </binding>
  </action>
   <hovered>
    <binding>
      <command>set-tooltip</command>
      <tooltip-id>steering-mode</tooltip-id>
      <label>%s</label>
      <property>an24/gear/steer_mode</property>
      <mapping>nasal</mapping>
      <script>
        var steermode2 = ['TAXI', 'OFF', 'T/O LAND'];
        return steermode2[arg[0]];
      </script>
    </binding>
   </hovered>
 </animation>

 <animation>
   <type>rotate</type>
   <object-name>lever</object-name>
   <property>an24/gear/steer_mode</property>
  <interpolation>
    <entry><ind>0.0</ind>	<dep>20.0</dep></entry>
    <entry><ind>2.0</ind>	<dep>-20.0</dep></entry>
  </interpolation>
  <axis>
    <x>0.0</x>
    <y>-1.0</y>
    <z>0.0</z>
  </axis>
 </animation>

</PropertyList>
