0

Soccer Robot C - Basic lessons - Exercises - Go straight

This is an exercise that will help You to make a program for RCJ Soccer competition.

Task: go straight ahead.

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

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