Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JOYSTICK] Added FrSky Tarranis X9D plus joystick xml (#2044)
- Loading branch information
1 parent
734a29b
commit ec94d7d
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |