View Single Post
  #6   Spotlight this post!  
Unread 20-02-2012, 19:54
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: Unsuccessful Autonomous Programming

Here's how I would do it.

Place your Drive code within the first frame encased in a While loop. Have your motors run at a constant 0.7. Within this loop, get your camera distance, and wire the Stop condition to the comparison between the distance you are at and the distance you want. Once the ideal distance is achieved, the loop will terminate, moving onto the next frame containing the code which stops your drive motors.

Good luck!
Reply With Quote