For Those Interested I have completed the xml file for the
Saitek Pro Flight Yoke System with std Throttle Quadrant

Mapping Gear Up and Down, Speed brakes
Viewport , AP and more

Thanks to AnMaster and others for help
TheBear
<?xml version="1.0"?>
<!--

$Id: Pro-Flight-Yoke-System.xml,v 1.6 2007-12-24 05:45:34 TheBear Exp $
-->

<PropertyList>
 <name>Saitek Pro Flight Yoke</name>
 <name>Saitek Saitek Pro Flight Yoke</name>

 <axis n="0">
  <desc>Aileron</desc>
  <binding>
    <command>property-scale</command>
    <property>/controls/flight/aileron</property>
    <squared type="bool">true</squared>
  </binding>
 </axis>


 <axis n="1">
  <desc>Elevator</desc>
  <binding>
    <command>property-scale</command>
    <property>/controls/flight/elevator</property>
    <factor type="double">-1.0</factor>
    <squared type="bool">true</squared>
  </binding>
 </axis>


 <axis n="2">
  <desc>Throttle</desc>
  <binding>
    <command>nasal</command>
    <script>controls.throttleAxis()</script>
  </binding>
 </axis>


 <axis n="3">
  <desc>Brakes</desc>
  <binding>
    <command>property-scale</command>
    <property>/controls/gear/brake-left</property>
    <property>/controls/gear/brake-right</property>
  </binding>
</axis>

 <axis n="4">
  <desc>Flaps</desc>
  <binding>
    <command>property-scale</command>
    <property>/controls/flight/flaps</property>
  </binding>
 </axis>


 <axis n="5">
  <desc>Rudder</desc>
  <binding>
     <command>property-scale</command>
     <property>/controls/flight/rudder</property>
<!--     <factor type="double">0.2</factor>    -->
<!--     <squared type="bool">true</squared>   -->
  </binding>
 </axis>


 <axis n="6">
 </axis>





 <!--                  -->
 <!--     buttons      -->
 <!--                  -->

 <!-- Button E - Behind Left Arm -->
 <button n="0">
  <desc>Push To Talk</desc>
  <binding>
     <command>nasal</command>
     <script>controls.ptt(1)</script>
  </binding>
  <mod-up>
     <binding>
        <command>nasal</command>
        <script>controls.ptt(0)</script>
     </binding>
  </mod-up>
 </button>


 <!-- Button D - Front  Right Arm Red Button -->
 <button n="1">
  <desc>Fire</desc>
  <binding>
     <command>nasal</command>
     <script>controls.trigger(1)</script>
  </binding>
  <mod-up>
     <binding>
        <command>nasal</command>
        <script>controls.trigger(0)</script>
     </binding>
  </mod-up>
 </button>


 <!-- Button A1 - Front  Left Arm Up -->
 <button n="2">
  <desc>Aileron Trim Up</desc>
  <repeatable type="bool">true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>/controls/flight/aileron-trim</property>
      <step type="double">0.001</step>
    </binding>
 </button>


 <!-- Button A2 - Front  Left Arm Down -->
 <button n="3">
  <desc>Aileron Trim Down</desc>
  <repeatable type="bool">true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>/controls/flight/aileron-trim</property>
      <step type="double">-0.001</step>
    </binding>
 </button>


 <!-- Button B1 - Front  Right Arm Up -->
 <button n="4">
  <desc>Elevator Trim Up</desc>
  <repeatable type="bool">true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>/controls/flight/elevator-trim</property>
      <step type="double">0.001</step>
    </binding>
 </button>


 <!-- Button B2 - Front  Right Arm Down -->
 <button n="5">
  <desc>Elevator Trim Down</desc>
  <repeatable type="bool">true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>/controls/flight/elevator-trim</property>
      <step type="double">-0.001</step>
    </binding>
 </button>


 <!-- Button C1 - Front  Right Arm Left -->
 <button n="6">
  <desc>Rudder Trim Left</desc>
  <repeatable type="bool">true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>/controls/flight/rudder-trim</property>
      <step type="double">0.001</step>
    </binding>
 </button>


 <!-- Button C2 - Front  Right Arm Right -->
 <button n="7">
  <desc>Rudder Trim Right</desc>
  <repeatable type="bool">true</repeatable>
    <binding>
      <command>property-adjust</command>
      <property>/controls/flight/rudder-trim</property>
      <step type="double">-0.001</step>
    </binding>
 </button>


 <!-- Button Scroll Pos 1  - Behind  Right Arm  -->
 <button n="8">
  <desc>View point Cockpit</desc>
  <binding>
     <command>property-assign</command>
     <property>/sim/current-view/view-number</property>
     <value>0</value>
  </binding>
 </button>


 <!-- Button Scroll Pos 2  - Behind  Right Arm  -->
 <button n="9">
  <desc>View point Helicopter</desc>
  <binding>
     <command>property-assign</command>
     <property>/sim/current-view/view-number</property>
     <value>1</value>
  </binding>
 </button>


 <!-- Button Scroll Pos 3  - Behind  Right Arm  -->
 <button n="10">
  <desc>View point Chase</desc>
  <binding>
     <command>property-assign</command>
     <property>/sim/current-view/view-number</property>
     <value>2</value>
  </binding>
 </button>


 <!-- Function Button  - Front  Center -->
 <button n="11">
  <desc></desc>
 </button>


 <!-- Start/Stop Button  - Front  Center -->
 <button n="12">
  <desc></desc>
 </button>


 <!-- Reset Button  - Front  Center -->
 <button n="13">
  <desc></desc>
 </button>


 <!-- T1  1st Lever  Up -->
 <button n="14">
   <desc>Activate AutoPilot (AP)</desc>
   <binding>
      <command>property-assign</command>
      <property>/autopilot/locks/passive-mode</property>
      <value type="double">0</value>
   </binding>
   <mod-up>
   </mod-up>
 </button>


 <!-- T2  1st Lever  Down -->
 <button n="15">
   <desc>De-activate AutoPilot (AP)</desc>
   <binding>
      <command>property-assign</command>
      <property>/autopilot/locks/passive-mode</property>
      <value type="double">1</value>
   </binding>
   <mod-up>
   </mod-up>
 </button>


 <!-- T3  2nd Lever  Up -->
 <button n="16">
  <desc>Gear Up</desc>
  <binding>
     <command>nasal</command>
     <script>controls.gearDown(-1)</script>
  </binding>
  <mod-up>
     <binding>
        <command>nasal</command>
        <script>controls.gearDown(0)</script>
     </binding>
  </mod-up>
 </button>


 <!-- T4  2nd Lever  Down -->
 <button n="17">
  <desc>Gear Down</desc>
  <binding>
     <command>nasal</command>
     <script>controls.gearDown(1)</script>
  </binding>
  <mod-up>
     <binding>
        <command>nasal</command>
        <script>controls.gearDown(0)</script>
     </binding>
  </mod-up>

 </button>


 <!-- T5  3rd Lever  Up -->
 <button n="18">
  <desc>Speed Brakes On</desc>
  <binding>
     <command>property-assign</command>
     <property>/controls/flight/speedbrake</property>
     <value type="double">1.0</value>
  </binding>
 </button>


 <!-- T6  3rd Lever  Down -->
 <button n="19">
  <desc>Speed Brakes Off</desc>
  <binding>
     <command>property-assign</command>
     <property>/controls/flight/speedbrake</property>
     <value type="double">0.0</value>
  </binding>
 </button>


 <!-- Lever 1 Lock Down -->
 <button n="20">
  <desc>Parking Brakes Off</desc>
  <binding>
     <command>nasal</command>
     <script>controls.applyParkingBrake(1)</script>
  </binding>
  <mod-up>
    <binding>
       <command>nasal</command>
       <script>controls.applyParkingBrake(0)</script>
    </binding>
  </mod-up>
 </button>



</PropertyList>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to