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