0

Line Robot - Basic lessons - Exercises - Turn by 90°

Another exercise useful for Robocup Rescue competitions.

Task: turn by exactly 90° left.

An example of invalid solution:

void RobotSoccer::loop() {
	go(-50, 50);
	delayMs(1000);
	end();
}
The solution is invalid because the robot will not always rotate by 90°. It could be 70°, 105°, or some other value, depending of battery's voltage, obstacles on the floor, etc.