View Single Post
  #2   Spotlight this post!  
Unread 04-03-2010, 21:23
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: Target tracking/centering converted to tank drive: help?

You didn't actually have to convert the self-centering code to Tank Drive.

You can mix the two driving modes as long as you are using Tank Mode in every place you expect the drivers to have direct control of the drive motors.

If the robot is driving on it's own, e.g., self-centering or Autonomous, then you don't really care which method (Tank vs Arcade) is currently active.

In any case, to convert Arcade-style inputs to Tank-style...
Arcade is speed and rotation, so you want to convert the rotation to a differential between the two tank sides then apply speed, keeping everything in proportion.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 04-03-2010 at 21:30.
Reply With Quote