|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
||||
|
||||
|
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? |
|
#2
|
||||
|
||||
|
What do you have the controller plugged into, a target like the DS or the computer?
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
||||
|
||||
|
Re: logitech dual-action gamepad
Quote:
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. |
|
#6
|
||||
|
||||
|
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". |
|
#7
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New class for Logitech Dual Action Gamepad | Mike Soukup | C/C++ | 8 | 11-02-2009 20:08 |
| pic: 716 Dual Motor/Dual Speed | CD47-Bot | Robot Showcase | 18 | 23-04-2004 01:51 |
| White Paper Discuss: Dual-motor, dual-speed gearbox | CD47-Bot | Extra Discussion | 8 | 05-04-2004 19:24 |
| White Paper Discuss: Dual-motor, dual-speed drive transmission design | CD47-Bot | Extra Discussion | 9 | 03-09-2003 10:40 |
| Gamepad Controller | Mike375 | Technical Discussion | 13 | 05-03-2002 21:20 |