Joystick/WaillyDX7s

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. Spektrum DX7s 7-channel RC Transmitter


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

<?xml version="1.0"?>

<PropertyList>
  <axis n="1">
    <desc>Aileron</desc>
    <direction>right</direction>
    <binding>
      <command>property-scale</command>
      <property>/controls/flight/aileron</property>
      <offset type="double">0</offset>
      <factor type="double">1</factor>
      <power type="int">1</power>
    </binding>
    <dead-band type="double">0</dead-band>
  </axis>
  <axis n="2">
    <desc>Elevator</desc>
    <direction>down/forward</direction>
    <binding>
      <command>property-scale</command>
      <property>/controls/flight/elevator</property>
      <factor type="double">1</factor>
      <power type="int">1</power>
    </binding>
    <dead-band type="double">0</dead-band>
  </axis>
  <axis n="5">
    <desc>Rudder</desc>
    <direction>right</direction>
    <binding>
      <command>property-scale</command>
      <property>/controls/flight/rudder</property>
      <factor type="double">1</factor>
      <power type="int">1</power>
    </binding>
  <dead-band type="double">0</dead-band>
  </axis>
  <axis n="4">
    <desc>Throttle</desc>
    <direction>forward</direction>
    <binding>
      <command>nasal</command>
      <script>controls.throttleAxis()</script>
      <factor type="double">1</factor>
    </binding>
    <dead-band type="double">0</dead-band>
  </axis>
  <name type="string">WAILLY PPM</name>
</PropertyList>