I'm using the Track3r robot that my son built right out of the box. All I'm trying to do is get it to go forward, right 30º, and left 60º, over and over in a wide circle until the infrared sensor detects an obstacle, at which point it should back up and turn left.
It works, but the problem I have is that it runs through the whole forward cycle (forward, right, left) before backing up. I want it to react as soon as it detects an obstacle, i.e., if it turns right only 5º and detects a chair leg, I want it to back up immediately.
