[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paparazzi-devel] input2ivy and joystick problem

From: Chris
Subject: [Paparazzi-devel] input2ivy and joystick problem
Date: Mon, 10 Jun 2013 08:07:05 +0300
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

I am now having problems making input2ivy recognise my joystick on Ubuntu 12.04 something
that works fine in Ubuntu 10.04.
Whatever i try i get this responce (partial paparazzi center output):

RUN '/home/hendrix/paparazzi/sw/ground_segment/cockpit/gcs -speech -layout my_gcs_layout.xml -mplayer 'tv:// -tv driver=v4l2:width=640:height=480:norm=PAL:input=1:device=/dev/video0' ' /home/hendrix/paparazzi/sw/ground_segment/joystick/input2ivy: wrong argument `/dev/input/event9'; option `-d' expects an integer.
  -b <ivy bus> Default is
  -ac <A/C name>
  -d <device index>
  -v Verbose mode (useful to identify the channels of an input device)
-id Joystick ID, from 0-255. Each joystick requires a unique ID in a multiple joystick configuration.
  - <xml file of actions>
  -help  Display this list of options
  --help  Display this list of options

FAILED '/home/hendrix/paparazzi/sw/ground_segment/joystick/input2ivy' with code 2

The "test_stick" utility recognises my joystick easily as input9 and dmesg shows me that it is indeed recognised as (partial dmesg output follows):

[   86.612117] usb 4-1: new full-speed USB device number 2 using uhci_hcd
[ 87.023332] input: Saitek Aviator for Playstation 3/PC as /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/input/input9 [ 87.023661] generic-usb 0003:06A3:0C28.0001: input,hidraw0: USB HID v1.00 Joystick [Saitek Aviator for Playstation 3/PC] on usb-0000:00:1d.2-1/input0
[   87.023682] usbcore: registered new interface driver usbhid
[   87.023684] usbhid: USB HID core driver

Here is the relevant "control_panel.xml" part:

   <session name="Cessna182 cam address@hidden">
      <program name="Joystick">
         <arg flag="-d" constant="/dev/input/event9"/>
         <arg flag="Saitek_Aviator_camera.xml"/>
         <arg flag="-ac" constant="Cessna_182"/>
      <program name="Data Link">
         <arg flag="-d" constant="/dev/ttyUSB0"/>
         <arg flag ="-transport" constant="pprz"/>
         <arg flag="-s" constant="115200"/>
      <program name="Server"/>
      <program name="GCS"/>

Any ideas on how to solve this?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]