Go to Post The propagation of the idea of making FIRST into a perfectly fair competition is just silly. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 25-11-2009, 16:42
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
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?
__________________
-- Marshal Horn
Reply With Quote
  #2   Spotlight this post!  
Unread 25-11-2009, 16:46
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Question Re: logitech dual-action gamepad

What do you have the controller plugged into, a target like the DS or the computer?
Reply With Quote
  #3   Spotlight this post!  
Unread 25-11-2009, 20:25
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #4   Spotlight this post!  
Unread 26-11-2009, 00:37
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
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.
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
Reply With Quote
  #5   Spotlight this post!  
Unread 28-11-2009, 16:58
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: logitech dual-action gamepad

Quote:
Originally Posted by RoboMaster View Post
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 28-11-2009, 19:50
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
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".
__________________
-- Marshal Horn
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2010, 20:47
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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