View Single Post
  #7   Spotlight this post!  
Unread 14-12-2010, 16:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: HELP with TANK DRIVE PROGRAMMING

Stay on topic or start a new thread. This cocktail party isn't helping the original poster...

Quote:
Originally Posted by dcarswell View Post
Are than any steps you can give me or a help guide that is in labview that will show me how to divide functions?

Here's an example for a single motor of what Ether is suggesting.
The 0.25 constant is the percentage of max power.
For tank drive you'd multiply both speed inputs to the Tank Drive vi.

You can also replace that fixed constant with an input from the throttle to make your power adjustable, so you can change it on-the-fly until you get the value you feel is right.

P.S.
Not that you've said you have this issue, but if turning at low power is a problem with your robot you can also do something in software that doesn't require adding sensors, physically changing the gearing, or swapping out sticky wheels for slicks.
In your code you can avoid applying the power reduction to any turning component or make just turning a higher percentage. For example, if one of your joysticks is forward and the other is backward, then don't reduce the power to the joysticks. If they are both forward but to varying degrees, so you get a curved driving path, then leave the difference between the sticks alone and only reduce the straight component.
Attached Thumbnails
Click image for larger version

Name:	Joystick_Restriction.jpg
Views:	55
Size:	11.1 KB
ID:	9496  Click image for larger version

Name:	Joystick_Throttle_Restriction.jpg
Views:	48
Size:	12.6 KB
ID:	9498  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 15-12-2010 at 12:44.
Reply With Quote