This is an example of how to use the SetSensorNXTSumoEyes, SensorNXTSumoEyes, SensorNXTSumoEyesRaw, NumOut, and Wait functions.
inline void TurnLeft() { }
inline void TurnRight() { }
inline void GoStraight() { }
inline void SearchForObstacle() { }
task main()
{
while(true)
{
switch (zone) {
TurnLeft();
break;
TurnRight();
break;
GoStraight();
break;
default:
SearchForObstacle();
break;
}
}
}