View Single Post
  #4   Spotlight this post!  
Unread 20-02-2012, 16:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Unsuccessful Autonomous Programming

You need to put the functions that read the distance into a while loop. As it is, the distance is only read once. Set it up so that the loop runs until you reach the target distance. Use that loop exactly as if it were a timed delay, keeping the flat sequence from advancing to the next frame before the distance reaches the desired value.
Reply With Quote