Difference between revisions of "Joystick"
m |
|||
Line 1: | Line 1: | ||
=Introduction= | =Introduction= | ||
A Joystick can be used to control your aircraft in the simulator or via the modem in real flight using [[Input2Ivy]]. | A Joystick can be used to control your aircraft in the simulator or via the modem [[Subsystem/radio_control#Datalink|using radio_control type datalink]] in real flight using [[Input2Ivy]]. | ||
==Examples== | ==Examples== |
Revision as of 11:58, 23 July 2016
Introduction
A Joystick can be used to control your aircraft in the simulator or via the modem using radio_control type datalink in real flight using Input2Ivy.
Examples
Here a regular gaming pad, perfectly capable to control your aircraft when in manual or assisted flight
Here and example of an Joystic that looks like an RC transmitter, but is just an USB connected Joystick. Handy for quick tests, and for ER 13, why not add one to you Paparazzi toolset?
Here a real RC transmitter connected via trainer port to your PC to be used as a Joystick
Quick test
If plugged in, under Linux a quick test to see if the device is recognized via:
$ dmesg
Although the message is a little different for evey joysticktype, it should display something like this in last lines:
... [ 8988.708567] usb 2-4.3: new low-speed USB device number 7 using ehci-pci [ 8988.804672] usb 2-4.3: New USB device found, idVendor=0603, idProduct=1a13 [ 8988.804679] usb 2-4.3: New USB device strings: Mfr=0, Product=34, SerialNumber=0 [ 8988.804683] usb 2-4.3: Product: ART TECH GAME. [ 8988.808821] input: ART TECH GAME. as /devices/pci0000:00/0000:00:06.1/usb2/2-4/2-4.3/2-4.3:1.0/input/input14 [ 8988.809007] hid-generic 0003:0603:1A13.0006: input,hidraw4: USB HID v1.00 Joystick [ART TECH GAME. ] on usb-0000:00:06.1-4.3/input0 ...
Joystick Calibration
You should always calibrate your joystick. By calibrating you make sure that your Joystick is not sending steering comanding values; while it should not when the steering sticks are in neutral position.
Linux
Install the joystick and the jstest-gtk packages via:
$ sudo apt-get install joystick jstest-gtk
Use the graphical jstest-gtk tool (or the commandline jstest) to view/edit your joystick calibration and axis/button mappings. Start it via:
$ jstest-gtk
Store the calbration
Your calibration and mapping will only be lost once you unplug the joystick, so store your configuration via:
$ sudo jscal-store /dev/input/js0
If you replug your joystick the next time, udev should take care of automatically loading the appropriate configuration.
OSX
Feel free to add your instructions here.