I am trying to create a robot that follows a line. I want the robot to turn on its vertical axis ("move-tank") until it finds the line again and then keep going straight. My problem is that the "repeat turning until color sensor value is less than 20" loop does not stop although the sensor value meets the criteria (i.e. less than 20).
This is my code:
Any ideas what am I doing wrong?
The logic inside the loop 02 is that it turns tank-left (-10,10) for 0.5, then it turns tank-right (-1 x -10, -1 x 10) for 0.5 + 0.3 seconds, etc until it finds the line (sensor value < 20).