Quote:
Originally Posted by Joe Derrick
double robotArcLength = (leftDistance-rightDistance)/2;
double robotDegrees = 360*(robotArcLength/(Math.PI*wheelbase);
|
You want to use the trackwidth (distance between left and right wheels), not wheelbase (distance between front and back wheels).