View Single Post
  #4   Spotlight this post!  
Unread 29-01-2011, 23:24
Carter12s's Avatar
Carter12s Carter12s is offline
Mentor
FRC #2036 (Black Knights)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Boulder CO
Posts: 93
Carter12s is just really niceCarter12s is just really niceCarter12s is just really niceCarter12s is just really nice
Smile Re: 3374 Robot Custom Line Tracking and early teaser...

I don't have a copy of the code with me right now, but i will post one tomorrow. The general idea is that I took the three boolean inputs from the line sensors and built them into an array. I then convert the array into an integer which feeds into a case structure. The case structure picks what the appropriate horizontal movement should be for the each combination of the sensors. When i can take some screen shots of it I will put them up. Thanks for the interest!

Carter Schultz
__________________
Programing is the real way to build a robot.