brukutu

  • *
  • 22
Joystick
« 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.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Joystick
« Reply #1 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.

hwh

  • *
  • 1018
Re: Joystick
« Reply #2 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?

brukutu

  • *
  • 22
Re: Joystick
« Reply #3 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)

brukutu

  • *
  • 22
Re: Joystick
« Reply #4 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.

brukutu

  • *
  • 22
Re: Joystick
« Reply #5 on: March 28, 2016, 09:07:55 pm »
Forgot to mention that OS is MACOX.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Joystick
« Reply #6 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

brukutu

  • *
  • 22
Re: Joystick
« Reply #7 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.


brukutu

  • *
  • 22
Re: Joystick
« Reply #8 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.


f5soh

  • *****
  • 4572
    • LibrePilot
Re: Joystick
« Reply #9 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
« Last Edit: March 28, 2016, 10:15:33 pm by f5soh »

brukutu

  • *
  • 22
Re: Joystick
« Reply #10 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?

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Joystick
« Reply #11 on: March 28, 2016, 10:52:10 pm »
My joystick works perfectly under Linux and also my WinXP virtual box.

brukutu

  • *
  • 22
Re: Joystick
« Reply #12 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?


Re: Joystick
« Reply #13 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 ?

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Joystick
« Reply #14 on: May 13, 2016, 09:20:16 pm »
You should connect the Joystick before starting the GCS.