I'm developing a small program with the LEGO's Ev3 development tool. I'm trying to make the robot rotate, 30° at time, and if the infrared sensor detects something then make something and stop. Here is my current program:
The result is odd: it makes a few loops, than I can see the sensor turns off for a few seconds and then it is completely unresponsive, even if I stop the program and run other programs! I have to turn it off and on again to make it work.
The sensor is on port 4, and it works with programs developed on the ev3 itself.