LibrePilot Forum

Development => Hardware => Topic started by: brukutu on March 28, 2016, 07:49:01 pm

Title: Joystick
Post by: brukutu on March 28, 2016, 07:49:01 pm
I have a standard thurstmaster joystick.

Followed the guide https://librepilot.atlassian.net/wiki/display/LPDOC/Control+vehicle+using+joystick

Does not work.

Librepilot does not seem to receive any inputs from the Joystick.

If i use another app to configure the joystick and map it to keys, it can clearly see and identify the joystick, so I dont think there is anything wrong at driver lever with the joystick.

Librepilot however does not allow me to select a joystick anywhere (An actual device).

Please assist.
Title: Re: Joystick
Post by: f5soh on March 28, 2016, 08:02:30 pm
I use the Thurstmaster described in wiki page without issues.
Only need to connect before starting Gcs and no need to select the device.

Maybe you need to remove access from the other app.
Title: Re: Joystick
Post by: hwh on March 28, 2016, 08:36:02 pm
I have the Thrustmaster with the added throttle and it works fine too.

When you go into tools->options->controller and move the joystick none of the bars move?  Or does that work but you can't get it to control gcs?
Title: Re: Joystick
Post by: brukutu on March 28, 2016, 09:03:20 pm
I have the Thrustmaster with the added throttle and it works fine too.

When you go into tools->options->controller and move the joystick none of the bars move?

It does not move. Stuck there.

How do I remove from other application? I simply closed it. (ControlMate)
Title: Re: Joystick
Post by: brukutu on March 28, 2016, 09:03:59 pm
I must add that I install ControlMate in order to test if joystick was working as I tried with GCS before that and it did not work.
Title: Re: Joystick
Post by: brukutu on March 28, 2016, 09:07:55 pm
Forgot to mention that OS is MACOX.
Title: Re: Joystick
Post by: f5soh on March 28, 2016, 09:34:29 pm
Current joystick implementation uses SDL 1.2

Try installing using brew or download from here: https://www.libsdl.org/download-1.2.php
Title: Re: Joystick
Post by: brukutu on March 28, 2016, 09:47:08 pm
I do have SDL installed as I set up the build enviroment.

http://www.thrustmaster.com/products/usb-joystick is the joystick.


Just tried on windows with Fusion. Same thing, no luck.

Title: Re: Joystick
Post by: brukutu on March 28, 2016, 09:51:35 pm
Screenshot of the system pref window.

Please not Joystick show in it wether its connected or not.

I did install some driver for it which I trust is why those options are there but not loaded. Pehaps wrong driver however I see that Other programs can pickup and use it with no trouble.

Title: Re: Joystick
Post by: f5soh on March 28, 2016, 10:07:09 pm
Maybe your Joystick is not supported by SDL 1.2

There is a JIRA ticket for SDL update:
https://librepilot.atlassian.net/browse/LP-202
Title: Re: Joystick
Post by: brukutu on March 28, 2016, 10:40:05 pm
Is it possible to get it to work in windows?

Or not map a sdl1.2 emulated joystick which responds to key combination? That way I could map real Joystick to key com into the compatible virtual joystick which GCS would then talk to?
Title: Re: Joystick
Post by: f5soh on March 28, 2016, 10:52:10 pm
My joystick works perfectly under Linux and also my WinXP virtual box.
Title: Re: Joystick
Post by: brukutu on March 29, 2016, 07:49:27 am
My joystick works perfectly under Linux and also my WinXP virtual box.

I was trying it on a VM with Windows 7 under VMWare FUsion.

Is that maybe the cause?

Title: Re: Joystick
Post by: jlrommel on May 13, 2016, 06:45:15 pm
I have the same problem with the same joystick (Thrustmaster usb joystick).
Did you find a solution ?
Title: Re: Joystick
Post by: f5soh on May 13, 2016, 09:20:16 pm
You should connect the Joystick before starting the GCS.
Title: Re: Joystick
Post by: jlrommel on May 13, 2016, 10:55:43 pm
Thank you but I did it like that and always nothing.