Quote:
Originally Posted by charlie1218
I like this. I like it alot, one question though, how would we do the turn into wall if there is a hole in the wall (an "entrance" into a room), keep truning until side is pressed? and we would want to keep the robot with the same side on the wall at all times.
|
that is excatly what the code tells it to do it would follow the wall around teh egde and into the room - I have used similar code for line following with a single sensor
If you don't want to keep the robot on the same side the entire way around I don't recommend using this approach. If all the walls touch the outside this will get your robot all the way around the maze