Go to Post No disclaimer on earth lets you disassociate yourself with your team or what you represent because you want to say something not particularly nice, but lets you be associated again when you want to say something to encourage others, etc. - Amanda Morrison [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-01-2015, 15:45
The_Waffleing's Avatar
The_Waffleing The_Waffleing is offline
The Horse Shaman
AKA: Mitchel
FRC #0753 (The High Desert Droids)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Bend
Posts: 32
The_Waffleing is an unknown quantity at this point
Help Needed With Tank Drive Controls

I was familiar with how to set up tank drive in earlier years but since there was a bit of change with the joystick get functions in 2015 Labview. I've been trying to figure out how to work around that but I am currently stumped. I'm sure it's something stupid simple that I'm completely overlooking but can anyone help me understand how to work around the code to create the code needed to get tank drive to work. Thanks a bunch in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2015, 15:55
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Help Needed With Tank Drive Controls

LabVIEW changed the joystick get a bit. Now it is an array instead of a cluster. Check out this guide to see some of the changes. One thing to remember is that the array starts at 0, so instead of axis 1 and 2 like last year, it will be axis 0 and 1.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2015, 15:57
The_Waffleing's Avatar
The_Waffleing The_Waffleing is offline
The Horse Shaman
AKA: Mitchel
FRC #0753 (The High Desert Droids)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Bend
Posts: 32
The_Waffleing is an unknown quantity at this point
Re: Help Needed With Tank Drive Controls

Thanks for that.
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2015, 16:42
The_Waffleing's Avatar
The_Waffleing The_Waffleing is offline
The Horse Shaman
AKA: Mitchel
FRC #0753 (The High Desert Droids)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Bend
Posts: 32
The_Waffleing is an unknown quantity at this point
Re: Help Needed With Tank Drive Controls

What you said did work and it corrected the original problem that I had with the joysticks reading on the X-Axis and my over all confusion about the changes made to the dealing of joystick controls. Only now I have a problem with the joysticks being inverted (forward is backward and backwards is forward) I will post what I've done so far with the Tele-op code but I don't know whether this would be a mistake on my behalf of the misplacement of the motors in the PWM ports or if it would be a mistake in how I dealt with the array. I know for a fact that how the array is set up is correct I just don't know if I made a mistake somewhere that caused it to become inverted.
Attached Thumbnails
Click image for larger version

Name:	Code.PNG
Views:	57
Size:	9.2 KB
ID:	17853  Click image for larger version

Name:	Code2.PNG
Views:	55
Size:	25.5 KB
ID:	17854  
Reply With Quote
  #5   Spotlight this post!  
Unread 15-01-2015, 16:47
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Help Needed With Tank Drive Controls

On the bottom of the Open 4 motor .vi, there should be two more terminals for inverting motors. Make sure that the two sides are set to the correct inversion (you have one left motor inverted, create a constant on the other left motor on the bottom and invert it too). This will prevent your motors from working against each other in the gearbox. If the robot is still backwards after inverting that left terminal, set both left boxes to false and set both right terminals to true. This should get you working in the right direction.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #6   Spotlight this post!  
Unread 15-01-2015, 17:05
The_Waffleing's Avatar
The_Waffleing The_Waffleing is offline
The Horse Shaman
AKA: Mitchel
FRC #0753 (The High Desert Droids)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Bend
Posts: 32
The_Waffleing is an unknown quantity at this point
Re: Help Needed With Tank Drive Controls

Thank you.
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 20:19.

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