Page 2 of 3

Re: No controller found (linux)

Posted: 30 May 2008 11:03
by Joerg
lerneaen_hydra wrote:EDIT: after reading this thread viewtopic.php?f=22&t=11 it would appear that everything should work (I have the e-sky 0905A controller). The reason for it not working is beyond me...
Note that I have that controller running under Mac OS X - which handles devices and such quite different (since it's a BSD-based OS, rather than a Linux one...)

In your first posting, you mentioned a java.lang.UnsatisfiedLinkError - do you still get that one when launching the sim?

Re: No controller found (linux)

Posted: 30 May 2008 11:15
by lerneaen_hydra
Oh, it was on osx, I see. Yes, java still outputs the same error (exactly the same).

Re: No controller found (linux)

Posted: 31 May 2008 08:23
by Michael
Hi,

there are two playces where errors could appear: The log file files/log.txt (which you showed and where nothing strange is in, besides "no controller found") and the console. Are there any errors in the console coming up?

Thank you.

Michael

Re: No controller found (linux)

Posted: 31 May 2008 16:47
by lerneaen_hydra
Yes, the console reports;

Code: Select all

hydra@hydra-zeus:~/Desktop/HELI-X$ ./runHELI-X.sh
java.lang.UnsatisfiedLinkError: net.java.games.input.LinuxJoystickDevice.nGetAxisMap(J)[B
        at net.java.games.input.LinuxJoystickDevice.nGetAxisMap(Native Method)
        at net.java.games.input.LinuxJoystickDevice.getDeviceAxisMap(LinuxJoystickDevice.java:200)
        at net.java.games.input.LinuxJoystickDevice.<init>(LinuxJoystickDevice.java:70)
        at net.java.games.input.LinuxEnvironmentPlugin.enumerateJoystickControllers(LinuxEnvironmentPlugin.java:406)
        at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:233)
        at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:113)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157)
        at ch.ntb.HeliX.controller.FlightController.<init>(FlightController.java:86)
        at ch.ntb.HeliX.simulation.Simulation.initController(Simulation.java:164)
        at ch.ntb.HeliX.application.Application.<init>(Application.java:153)
        at ch.ntb.HeliX.application.Application$1.run(Application.java:757)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Re: No controller found (linux)

Posted: 31 May 2008 17:58
by Michael
Ok, there is still a problem with the native code. This code should be in libs/jinput/linux-i586/jinput-linux.so

Please look if the file is there and you have enough rights to read it. There is an update available:

http://jinput.dev.java.net/servlets/ProjectDocumentList;

Perhaps you want to try this one?

Michael

Re: No controller found (linux)

Posted: 31 May 2008 22:56
by lerneaen_hydra
The current file I have was -rw-r--r--, so I could read it. After adding the new file (https://jinput.dev.java.net/servlets/Pr ... entList%3b. latest jinput binaries) into the heli-x directory and performing a 'chmod u+rw /dev/input/j*' and e* it starts correctly and correctly finds the controller. The simulation works perfectly now. Thank you all very much for your help! :)

Now I just need to practice flying :)

Re: No controller found (linux)

Posted: 31 May 2008 23:11
by Michael
lerneaen_hydra wrote:Now I just need to practice flying :)
This is the difficult part ... ;-)

Michael

Re: No controller found (linux)

Posted: 16 Jun 2008 23:07
by Taurim
Hello all,

I have just found this nice sim and I'm trying to run it on Linux (my only operating system).

I really need it because I'm transitionning from an easy to fly Lama v3 to a CP heli (Walkera 60B) ;)

First I encountered the problem described in the previous messages and the updated lib found here http://www.newdawnsoftware.com/resource ... latest.zip solved this problem.

Now I can launch Heli-x, load an airport and a model. It looks very nice :-)

But my controller is not detected.

It is an E Sky 0404 Radio + USB SoftDog EK2-0900A

log.txt says :

Code: Select all

Trying to open xml File /home/rossi/Helico/HELI-X/files/controller/PPM.xml
Could not find stick 
Could not find stick 
Could not find stick 
Could not find stick 
My radio + cable are correctly recognised when I launch the windows sim HeliSimRC.exe with wine.
Everything works as expected.


Here is what dmesg says when I connect the usb adapter :

Code: Select all

usb 7-1: new low speed USB device using uhci_hcd and address 94
usb 7-1: configuration #1 chosen from 1 choice
input: ? PPM as /class/input/input15
input: USB HID v1.00 Joystick [? PPM] on usb-0000:00:1d.1-1
The USB adapter is visible in /proc/bus/usb/devices :

Code: Select all

T:  Bus=07 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 93 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0401 ProdID=0401 Rev= 0.00
S:  Manufacturer=?
S:  Product=PPM
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 90mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=20ms
I also lauched Heli-X as root to be sure there is no access restrictions on /dev


Is there a solution to this problem ?

Re: No controller found (linux)

Posted: 17 Jun 2008 18:42
by Michael
Hello,

I am a little bit confused: You tell us a part of the log file: /home/rossi/Helico/HELI-X/files/controller/PPM.xml

But this file is only opened when a controller is detected by HELI-X. On the other side it is mentioned that the controller is not recognized. This is contradicting. Please try the following: Delete all xml-files in /home/rossi/Helico/HELI-X/files/controller.
Give (as root) all userrs all rights on /dev... as decribed above. Start HELI-X as normal user.

Hope that helps.

Michael

Re: No controller found (linux)

Posted: 17 Jun 2008 21:17
by Taurim
Thanks for your answer ;)

I deleted this file and launched again Heli-X as root (or user, it makes no difference)

radio sticks moves are not detected in the configuration dialog. Here is the log file :

Code: Select all

# cat files/log.txt 
Application started
3D Environment created
Using openGLLayer JOGL_AWT
Found 11 display modes
Trying to open xml File files/Application/ViewSettings.xml
Using display mode 1024x768x?x?
Scenegraph created
Listener Volume: 1.0
Trying to open xml File files/Application/SoundSettings.xml
Listener Volume: 0.8
Sound configuration read
Trying to open xml File files/Application/CameraSettings.xml
View initialized
Trying to open xml File files/Application/EnvironmentSettings.xml
Environment initialized
Loading: net.java.games.input.LinuxEnvironmentPlugin
Linux plugin claims to have found 5 controllers
Stick found: Name: ? PPM
Using Stick ? PPM
Digital component found:Trigger
Digital component found:Thumb
Digital component found:Thumb 2
Analog component found:x
Analog component found:y
Analog component found:z
Analog component found:rx
Analog component found:ry
Controller configuration file not found: files/controller/PPM.xml
Trying to open xml File files/Application/ApplicationSettings.xml
Trying to open xml File ressources/environments/SkyBox/Alvier/Alvier.xml
Environment loaded
Loading ressources/models/helicopter/TRex/TRex.obj
Creating Sound ressources/models/helicopter/TRex/TRex.wav
Sound ressources/models/helicopter/TRex/TRex.wav created
Creating Sound ressources/miscellaneous/crash.wav
Sound ressources/miscellaneous/crash.wav created
Key listener added
Status line added
Visible set true
Keyboard and mouse registered
Application successfully initialized
Trying to open xml File /home/rossi/Helico/HELI-X/files/controller/PPM.xml
Pause
Resume
Stopping HELI-X
Heli-X recreated PPM.xml file :

Code: Select all

# cat files/controller/PPM.xml 
<?xml version="1.0" encoding="UTF-8"?>
<project />


My radio is detected and works correctly with jstest ((both sticks put in the lower left corner here) :

Code: Select all

$ jstest  --normal /dev/js0 
Driver version is 2.1.0.
Joystick (? PPM) has 5 axes (X, Y, Z, Rx, Ry)
and 3 buttons (Trigger, ThumbBtn, ThumbBtn2).
Testing ... (interrupt to exit)
Axes:  0:-12837  1: 13512  2: 10472  3:     0  4:-14527 Buttons:  0:off  1:off  2:off 
Really strange !