View Single Post
  #8   Spotlight this post!  
Unread 29-01-2011, 18:27
Ethan Spitz Ethan Spitz is offline
President
FRC #3637 (The Daleks)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2011
Location: New Jersey
Posts: 133
Ethan Spitz is an unknown quantity at this point
Re: Line Tracking Photoswitch Info and Demo Video

I would start out by making a handwritten flow chart saying what you want it to do when each sensor is triggered. For example, when the left sensor is triggered, make it go right, and when the right sensor is triggered, go left. When neither are triggered, go straight.

Just use nested case statements and use the DIO ins to be the input for the case statements

Ethan
__________________
www.team3637.com FIRST team 3637's Website: The Daleks
Reply With Quote