Go to Post FIRST robots are not six week projects. They are never ending projects where the requirements are changed on an annual basis. - ChrisH [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 05-03-2011, 15:38
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
Unhappy Tank Drive Troubles

Okay, so We have the arm motors programmed pretty as you please, we are using a tank drive to control the two drive motors, as well as the two arm motors that we have. The arm motors do exactly what they are supposed to do. as well as our drive motors, but we are having issues with programming the drive motors to turn or re-invert themselves to turn. is there anyone out there who can give us some insight? we are completely stuck and out of ideas on this. There is also a photo that might help you guys. thanks very much from the Marinerds.
Attached Thumbnails
Click image for larger version

Name:	labview help.jpg
Views:	111
Size:	29.4 KB
ID:	10341  
  #2   Spotlight this post!  
Unread 05-03-2011, 19:10
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Tank Drive Troubles

I don't know labview at all, but do you need to invert one of the joystick axis?

Remember that full forward is -1.
  #3   Spotlight this post!  
Unread 05-03-2011, 19:20
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Tank Drive Troubles

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.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #4   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.
  #5   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,101
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:	19
Size:	16.5 KB
ID:	10342  Click image for larger version

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

Last edited by Ether : 06-03-2011 at 11:17. Reason: added screenshot
  #6   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.
  #7   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,101
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.


  #8   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).
  #9   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,101
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.



  #10   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.
  #11   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,101
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 23: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