0

Soccer Robot C - Basic lessons - Exercises - Function barrier

One more lesson for RCJ Soccer.

Task: modify function to be reliable.

barrier() is a predefined function which should signal if barrier is interrupted. It may look like this:

void RobotSoccer::barrier() {
	return analogRead(35) < 300; // Adjust this value
}
Change the constant so that the function returns the most reliable result.