View Single Post
  #4   Spotlight this post!  
Unread 13-02-2010, 08:59
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Can someone explain 2010 Rotate To Target VI

To the left of the loop there is a wait of zero, a reading of the global that extracts the number of targets. You may want to do something with this info before entering the loop, say wait for a few seconds or until you see a target, perhaps move forward to touch the ball. All of that seems like good stuff.

The code was written as a sample to demonstrate some of the game elements related to vision. It will not win any matches.

If there is a target visible fifteen degrees away from zero when auto begins, this code will rotate the robot to point at it. If you have questions as to how to get it to do something else, please ask.

Greg McKaskle

Last edited by Greg McKaskle : 13-02-2010 at 09:15. Reason: clarity
Reply With Quote