Go to Post So, please, can't we all just live and let live? - Alexa Stott [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 29-01-2012, 16:06
Team4014 Team4014 is offline
Registered User
FRC #4014
 
Join Date: Jan 2012
Location: Earth
Posts: 15
Team4014 is an unknown quantity at this point
Exclamation How would we program in a Logitech gamepad controller into LabVIEW?

We want to be able to use the Logitech F310 controller to drive our robot with tank drive (using the Y axis of each joystick on the controller to run their respective drive motors on each side of the robot), and we can't figure out how. All of the things we've found online are for the Attack controllers, and use two USB ports rather than 1. Any help would be much appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2012, 16:30
mgurgol mgurgol is offline
Registered User
FRC #1094
 
Join Date: Jan 2006
Location: St Louis MO
Posts: 76
mgurgol is just really nicemgurgol is just really nicemgurgol is just really nicemgurgol is just really nicemgurgol is just really nice
Re: How would we program in a Logitech gamepad controller into LabVIEW?

In Labview, the programmers should use Unbundle By Name for the axes wire of the Get Joystick vi, or use the Get Axis vi and use axis 2 and axis 4, these are the Y axis of the two main joysticks.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2012, 17:20
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: How would we program in a Logitech gamepad controller into LabVIEW?

The Logitech F310 has the following axis mapping on a single USB port: (this is exactly the same as the Xbox 360 gamepad, for reference)

Axis 1 - Left X
Axis 2 - Left Y
Axis 3 - Sum of L2 and R2 triggers - One is positive, the other is negative, both or none is 0
Axis 4 - Right X
Axis 5 - Right Y
Axis 6 - D-Pad Horizontal - One direction is +1, the other -1. You can't read the vertical axis

Please note that mgurgol is not correct entirely, axis 4 is NOT right Y on the F310 (it is on the DualAction).
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2012, 17:28
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: How would we program in a Logitech gamepad controller into LabVIEW?

Our team used this last year during two events without any issues:

http://www.chiefdelphi.com/forums/sh...ad.php?t=90022

Major thanks to Alexander Meyer on team 2358.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2012, 11:57
mgurgol mgurgol is offline
Registered User
FRC #1094
 
Join Date: Jan 2006
Location: St Louis MO
Posts: 76
mgurgol is just really nicemgurgol is just really nicemgurgol is just really nicemgurgol is just really nicemgurgol is just really nice
Re: How would we program in a Logitech gamepad controller into LabVIEW?

My apologies, I was thinking of the Dual Action.
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2012, 15:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How would we program in a Logitech gamepad controller into LabVIEW?

In LabVIEW, it's very easy to see which controls on the gamepad are associated with the various buttons and axes. Just attach indicators to the existing Joystick Get in Teleop. Run the Robot Main vi and look at the Teleop front panel as you play with the joystick.
Attached Thumbnails
Click image for larger version

Name:	Joystick.png
Views:	765
Size:	25.7 KB
ID:	11632  
Reply With Quote
  #7   Spotlight this post!  
Unread 06-05-2012, 11:44
2185Bilal's Avatar
2185Bilal 2185Bilal is offline
Driver, Ld. Programmer, Electrical
AKA: Bilal Majeed
FRC #2185 (Ramazoidz)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Toronto, Canada
Posts: 110
2185Bilal will become famous soon enough
Cool Re: How would we program in a Logitech gamepad controller into LabVIEW?

I still dont understand how to use the two mini-joysticks on the F310 gamepad as a tank drive.
__________________
RAMAZOIDZ

2009 Toronto West Regional - Regional Winners
2009 Waterloo Regional - Regional Winners
Reply With Quote
  #8   Spotlight this post!  
Unread 06-05-2012, 12:05
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How would we program in a Logitech gamepad controller into LabVIEW?

Quote:
Originally Posted by 2185Bilal View Post
I still dont understand how to use the two mini-joysticks on the F310 gamepad as a tank drive.
Axis 2 is the left Y axis. Axis 5 is the right Y axis. Use those as the inputs to a standard tank drive function.
Reply With Quote
  #9   Spotlight this post!  
Unread 06-05-2012, 12:32
2185Bilal's Avatar
2185Bilal 2185Bilal is offline
Driver, Ld. Programmer, Electrical
AKA: Bilal Majeed
FRC #2185 (Ramazoidz)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Toronto, Canada
Posts: 110
2185Bilal will become famous soon enough
Post Re: How would we program in a Logitech gamepad controller into LabVIEW?

Quote:
Originally Posted by Alan Anderson View Post
Axis 2 is the left Y axis. Axis 5 is the right Y axis. Use those as the inputs to a standard tank drive function.
Ohh Thanks, but what was the other post u posted Jw
__________________
RAMAZOIDZ

2009 Toronto West Regional - Regional Winners
2009 Waterloo Regional - Regional Winners
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


All times are GMT -5. The time now is 04:33.

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