Revision e67543f1a967e56e3ebd39a154e3125678cb7a78 authored by Stephen Dwyer on 31 May 2012, 21:56:00 UTC, committed by Felix Ruess on 01 June 2012, 17:25:25 UTC
1 parent 4ca6344
Raw File
cockpit_sx.xml
<joystick>
  <input>
    <axis index="0" name="roll"/>
    <axis index="1" name="pitch"/>
    <axis index="2" name="yaw"/>
    <axis index="3" name="spoiler"/>
    <axis index="4" name="throttle"/>
    <button index="3" name="mode"/>
  </input>

  <messages period="0.05">

    <message class="datalink" name="RC_4CH" send_always="true">
      <field name="mode" value="mode + 1"/> <!-- only AUTO1 and AUTO2 available -->
      <field name="throttle" value="Fit(throttle,-100,100,0,127)"/>
      <field name="roll" value="Fit(-roll,-100,100,-127,127)"/>
      <field name="pitch" value="Fit(pitch,-100,100,-127,127)"/>
      <field name="yaw" value="Fit(yaw,-100,100,-127,127)"/>
    </message>

  </messages>
</joystick>
back to top