I'm trying to make a bot which travels from point A to B, and avoid obstacles on his way.
I did some research and came to the conclusion that behavior programming is the way to go.
So, the bot always moves forward unless it detects an object which his bumper (touch sensor) or ultrasonic sensor.
But the head has always to turn left - right - left - ... so it can see an object during the program. And when it detects something,
the tachoCount can see at what angle the object is so it can calculate the evasion.
And here's my question: How can I let the head turn left - right - ... continuously during the program execution, and let my program
execute the rest without writing in any block of code something like "rotate(720), rotate(-720)".
Here are two picture's of my bot so you can better imagine how it would work.
Thanks for reading! I hope anyone will answer my question.