Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   logitech dual-action gamepad (http://www.chiefdelphi.com/forums/showthread.php?t=79083)

kamocat 25-11-2009 16:42

logitech dual-action gamepad
 
I went out and a Logitech dual-action gamepad to play with, because it's USB plug-and-play (PnP), so it follows a common standard.

So...
How do I use it with LabVIEW?
It doesn't show up on the Measurement and Automation Explorer.

I can't seem to find the USB PnP standard, either, so I'm in the dark as to what the correct baud settings and such are.

Any ideas?

bladetech932 25-11-2009 16:46

Re: logitech dual-action gamepad
 
What do you have the controller plugged into, a target like the DS or the computer?

Greg McKaskle 25-11-2009 20:25

Re: logitech dual-action gamepad
 
In the connectivity palette is a submenu of VIs for querying HID devices (Human Interface Devices). It should list the mouse, keyboard, and your joystick(s). There are also VIs for opening a connection and reading the button and axis and POV state.

Greg McKaskle

RoboMaster 26-11-2009 00:37

Re: logitech dual-action gamepad
 
If you want to use it with the Control system for a FIRST robot, this is quite easy to do. We have a Logitech gamepad for our team to and it works great. Just acquire data from it the same way you would a normal FRC joystick. The buttons and axis will be switched around though, so I suggest you make a test program to see which buttons react to which default button number.

daltore 28-11-2009 16:58

Re: logitech dual-action gamepad
 
Quote:

Originally Posted by RoboMaster (Post 884321)
If you want to use it with the Control system for a FIRST robot, this is quite easy to do. We have a Logitech gamepad for our team to and it works great. Just acquire data from it the same way you would a normal FRC joystick. The buttons and axis will be switched around though, so I suggest you make a test program to see which buttons react to which default button number.

On another note, the Logitech gamepads I've used in FTC (I know, different realm, but might still be relevant) have always reported negative values from what you'd expect. This might just be signing issues with the NXT/FTC Toolkit, I don't know, but do watch out for that.

Also, as RoboMaster said, the buttons and axes may not necessarily line up how you expect them to. I would suggest making a "wrapper" VI to simplify usage, basically a custom-made VI that contains the regular VI, but outputs the pins to the correct configuration for your gamepad. Then name it something like Gamepad.vi so you can use it more intuitively.

kamocat 28-11-2009 19:50

Re: logitech dual-action gamepad
 
Thank you, it works great.

Daltore:
It appears to work mostly as expected; the axis are polarized intuitively, the buttons correspond correctly. However, the right joystick is the "z axis" and "z rotate", while the left joystick is "y axis" and "x axis".

j.cole 19-01-2010 20:47

Re: logitech dual-action gamepad
 
Here is a chart for the Logitech Dual Action controller. Tested in lab view code which i will be more than willing to give out the .vi if anyone wants it(id post it if i knew how).
http://tinyurl.com/y9sx84c


All times are GMT -5. The time now is 11:51.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi