Go to Post If it is good enough for Paul and JVN it's good enough for me. - Vikesrock [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-01-2012, 18:43
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 Troubles on configuring a tank drive in LabView

We're trying to write code for a tank drive instead of arcade in LabView, and we can't figure out how. We'll be driving it with the Logitech Gamepad F310, and everything I've found so far has been for two separate joysticks with their own respective USB imports. Any help would be much appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2012, 19:00
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: Troubles on configuring a tank drive in LabView

All you're doing is taking two joystick axes and setting a Tank Drive with them.

The Tank Drive expects two numbers, left and right motor power.

A gamepad shows up as a single joystick - Take all of the code to read a single joystick, and read two axes from it - On an F310, you would want Axis 2 (Y) for the Left Y and Axis 5 for the Right Y.

FYI, an F310 is exactly like a 360 controller in the FRC libraries - All of the buttons and axes on the F310 are exactly the same as on the 360, from my experience last year.
__________________
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
  #3   Spotlight this post!  
Unread 04-02-2012, 16:47
Team4014 Team4014 is offline
Registered User
FRC #4014
 
Join Date: Jan 2012
Location: Earth
Posts: 15
Team4014 is an unknown quantity at this point
Re: Troubles on configuring a tank drive in LabView

How would we configure tank drive? We tried to use the WPI Tank Drive subVI, but that still makes it behave in an 'arcade' mode. Do we have to write our own interface? Or is something not working correctly in the code we have loaded? We have tried many reimage/formats of the cRIO, and have spent almost 13-15 hours trying to figure out what's wrong.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2012, 20:03
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,113
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: Troubles on configuring a tank drive in LabView

You should never have to reimage the cRIO unless a new image is made available.

If you replace the Arcade Drive with Tank Drive, and supply it the appropriate joystick values, it should work. Can you show us the code you're trying to use?
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 07:20.

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