Commit e07735a9 authored by Mika Ove Höhrmann's avatar Mika Ove Höhrmann
Browse files

The correlation between angle and dist is pi * diameter.

parent c188af47
......@@ -31,7 +31,7 @@ public class RobotWithGears implements IMotorToRobotTranslator{
private void translate(double motorDelta) {
double turnAngleAtWheel = motorDelta / params.getGearTransmissionRatio();
double distanceTravelled = turnAngleAtWheel / 2 * params.getWheelDiameter();
double distanceTravelled = turnAngleAtWheel / params.getWheelDiameter();
pos.driveStraight(distanceTravelled);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment