|
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
|