Joystick/WaillyPpm

From FlightGear wiki
Jump to navigation Jump to search

Hardware:

  1. PPM to USB Adapter ID 06f7:0003 Wailly Technology Ltd USB->Din 4 Adaptor
  2. Art-Tech "E-FLY" FM 4-cannel RC Transmitter (I removed all 3 centering springs)


/usr/share/games/flightgear/Input/Joysticks/Default/joystick.xml

<?xml version="1.0"?>

<PropertyList>

 <name>default</name>

 <axis n="0">
  <desc>Aileron</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/aileron</property>
   <factor type="double">-1.0</factor>
   <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="5">
  <desc>Rudder</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
   <squared type="bool">true</squared>
  </binding>
 </axis>
</code>
 <axis n="2">
  <desc>Throttle</desc>
  <binding>
   <command>nasal</command>
   <script>controls.throttleAxis()</script>
  </binding>
 </axis>


</PropertyList>