Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JOYSTICK] Added FrSky Tarranis X9D plus joystick xml #2044

Merged
merged 1 commit into from
Mar 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions conf/joystick/frsky_tarranis_X9D_plus.xml
Original file line number Diff line number Diff line change
@@ -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>