View Single Post
  #9   Spotlight this post!  
Unread 02-01-2008, 20:07
charlie1218 charlie1218 is offline
Registered User
FRC #1218
Team Role: Coach
 
Join Date: Jan 2006
Rookie Year: 2005
Location: PHILADELPHIA
Posts: 55
charlie1218 will become famous soon enoughcharlie1218 will become famous soon enough
Re: Help Maze solving

Quote:
Originally Posted by rhoads2234 View Post
you can do a simple wall following routine to start - This approach would use maybe 2 touch switches

have one touch (limit is better but bump would work) on the side of your robot and another facing the front
the code would basically say
while not front sensor not pressed
{ if side sensor is pressed turn away from wall
if side sensor is not pressed then turn into wall}
GetOutOfCorner();
With this you could follow one side or the other around..
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.
Reply With Quote