Quote:
Originally Posted by Ether
Tank drive is pretty straightforward. To go straight forward, drive the left and right wheels at the same (forward) speed. To turn right, add a little speed to the left wheel(s), and subtract the same amount from the right wheel(s).
|
Now the trick is to try to figure out how to make it scale correctly. When you add together 2 values the max # you can see is 2 but the max value you can set is 1. I will let you know though that dividing by 2 is not the answer because then full speed ahead is only a .5

.
sorry this is in reference to an arcade drive.
are you driving this via joystick or via autonomous?
also you may want to create a drive class that contains 2 functions arcade drive and tank drive.
encapsulating the drive within its own class is good practice.