Go to Post Yes, I have already determined that the device is capable of launching 2,160 Krispy Kreme donuts into the back seat of my Mustang with a vertical displacement of 65 feet, without cracking the sugary glaze on a single donut. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-03-2011, 11:00
Nicandy's Avatar
Nicandy Nicandy is offline
Registered User
AKA: Nicole/Andy
FRC #3580 (Marinerds)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cape Coral
Posts: 23
Nicandy is an unknown quantity at this point
Re: Tank Drive Troubles

Quote:
Originally Posted by Vikesrock View Post
Easy way to test for proper operation of a Tank drive.

1.Put the robot up on blocks so the wheels are off the ground and not touching anything.
2. Push whichever joystick corresponds to the left side forward. Check if the left side drive wheels move forward.
2a. If they don't go to Begin.VI and wire a true constatnt into the Invert Left terminal of the Open X Motor drive.
3. Push the right joystick forward. Check if the right side drive wheels move forward.
3a. If they don't go to Begin.VI and wire a true into the Invert Right terminal of the Open X Motor drive.
4. Save and rerun, or rebuild and set as startup
5. Verify both sides now move in the proper direction.
We want one joystick to control forward and backward, as well as turning left and turning right, while the other joystick will control the arms elevation.
and our problem is that we can't figure out how to program the first joystick to do all four things. we can only get it to do either forward and backward, or left and right.
  #2   Spotlight this post!  
Unread 06-03-2011, 11:05
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Tank Drive Troubles

Quote:
Originally Posted by Nicandy View Post
We want one joystick to control forward and backward, as well as turning left and turning right...

and our problem is that we can't figure out how to program the first joystick to do all four things. we can only get it to do either forward and backward, or left and right.
Here's your problem: What you are describing is called Arcade Drive, not Tank Drive.

Your FRC LabVIEW installation supports Arcade Drive.

See attached screenshots of the Functions Palette and the Help.


Attached Thumbnails
Click image for larger version

Name:	Arcade Drive.png
Views:	18
Size:	16.5 KB
ID:	10342  Click image for larger version

Name:	Arcade Drive Help.png
Views:	17
Size:	10.3 KB
ID:	10344  

Last edited by Ether : 06-03-2011 at 11:17. Reason: added screenshot
  #3   Spotlight this post!  
Unread 06-03-2011, 13:48
Nicandy's Avatar
Nicandy Nicandy is offline
Registered User
AKA: Nicole/Andy
FRC #3580 (Marinerds)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cape Coral
Posts: 23
Nicandy is an unknown quantity at this point
Re: Tank Drive Troubles

well then can i use two arcade drives? or one tank and one arcade drive?
because i need the one joystick to be able to control the arm, and one to control the driving.
  #4   Spotlight this post!  
Unread 06-03-2011, 14:07
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Tank Drive Troubles

Quote:
Originally Posted by Nicandy View Post
well then can i use two arcade drives? or one tank and one arcade drive?
You could, but that's not the way it was intended to be used.

Quote:
because i need the one joystick to be able to control the arm, and one to control the driving.
Use the Arcade Drive VI to control the driving.

Don't use Arcade or Tank Vis to control non-drivetrain motors. See this post.


  #5   Spotlight this post!  
Unread 06-03-2011, 14:33
EthanMiller EthanMiller is offline
Lead Programmer
AKA: Socks
FTC #4356 (The Zip Ties)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Clayton, NY
Posts: 121
EthanMiller has a spectacular aura aboutEthanMiller has a spectacular aura aboutEthanMiller has a spectacular aura about
Re: Tank Drive Troubles

The arcade drive VI takes one joystick input, IIRC. Maybe an X and a Y input. Either way, they come from the same joystick.
__________________
When all else fails, read the manual.

FRC 1713 K Island Gears 2009, 2010 (Not 2011 due to budget, hopefully 2012!) - Fingerlakes Regional

FTC 4356 The Zip Ties 2010-2011 Season - NNYRC (2010 9th seed).
  #6   Spotlight this post!  
Unread 06-03-2011, 15:20
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Tank Drive Troubles

Quote:
Originally Posted by EthanMiller View Post
The arcade drive VI takes one joystick input, IIRC.
Arcade Drive takes 2 joystick inputs.

Quote:
Maybe an X and a Y input. Either way, they come from the same joystick.
That's the way it's usually done, but it's not required. The 2 inputs could come from 2 different joysticks.



  #7   Spotlight this post!  
Unread 07-03-2011, 13:28
Nicandy's Avatar
Nicandy Nicandy is offline
Registered User
AKA: Nicole/Andy
FRC #3580 (Marinerds)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cape Coral
Posts: 23
Nicandy is an unknown quantity at this point
Re: Tank Drive Troubles

Ether, thank you so much, you really helped answer a lot of questions.
  #8   Spotlight this post!  
Unread 07-03-2011, 16:23
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Tank Drive Troubles

Quote:
Originally Posted by Nicandy View Post
Ether, thank you so much, you really helped answer a lot of questions.
You are welcome.


Closed Thread


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 03:44.

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