0

Line Robot - Basic lessons - Exercises - Go straight

This is another exercise that will help You to make a program for RCJ Rescue Maze or Line. For example, when a gap in line detected, You may want the robot to go straight ahead precisely.

Task: go straight ahead.

Program the robot to go straight ahead. A hint: the following program is not a solution:

void RobotLine::loop() {
	go(50, 50);
}
You may ask why, as both motors spin at the same speed. The problem is they don't. They are not the same. One side will rotate faster and the robot will veer off course.