![]() |
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? |
Re: logitech dual-action gamepad
What do you have the controller plugged into, a target like the DS or the computer?
|
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 |
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.
|
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. |
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". |
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