Skip to content

Commit

Permalink
[JOYSTICK] Added FrSky Tarranis X9D plus joystick xml (#2044)
Browse files Browse the repository at this point in the history
  • Loading branch information
wv-tud authored and gautierhattenberger committed Mar 20, 2017
1 parent 734a29b commit ec94d7d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions conf/joystick/frsky_tarranis_X9D_plus.xml
@@ -0,0 +1,44 @@
<!--
FrSky Tarranis X9D plus over USB (mode 2)
http://www.frsky-rc.com/product/pro.php?pro_id=137
Channel 0: throttle
Channel 1: roll
Channel 2: pitch
Channel 3: yaw
Channel 4: arm (any two mode switch e.g. SF)
Channel 5: mode (any three mode switch for toggling ATT - AUTO1 - AUTO2 e.g. SE)
If you want to fly your UAS via the joystick add this to your session:
/home/username/paparazzi/sw/ground_segment/joystick/input2ivy -d 0 -ac yourarfamename frsky_tarranis_X9D_plus.xml
Where -d 0 must be -d 1 if you have a laptop with accelometer installed
The basis of steering is the standard signs of aerospace convention
-->

<joystick>
<input>
<axis index="1" name="roll"/>
<axis index="2" name="pitch"/>
<axis index="0" name="throttle"/>
<axis index="3" name="yaw"/>
<axis index="4" name="arm"/>
<axis index="5" name="mode"/>
</input>

<messages period="0.0333333">
<message class="datalink" name="RC_4CH" send_always="true">
<field name="throttle" value="Fit(throttle,-127,127,0,127)" />
<field name="roll" value="roll" />
<field name="pitch" value="-pitch" />
<field name="yaw" value="yaw"/>
<field name="mode" value="Fit(mode,-127,126,0,2)"/>
</message>
<message class="ground" name="DL_SETTING" on_event="arm">
<field name="index" value="IndexOfSetting('autopilot.kill_throttle')"/>
<field name="value" value="Fit(arm,-127,126,0,1)"/>
</message>
</messages>
</joystick>

0 comments on commit ec94d7d

Please sign in to comment.