View Single Post
  #4   Spotlight this post!  
Unread 27-02-2005, 21:03
SpeakerSilenced SpeakerSilenced is offline
Programming/Electrical Team Member
#0219 (Team Impact)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Hackettstown, NJ
Posts: 28
SpeakerSilenced is an unknown quantity at this point
Send a message via AIM to SpeakerSilenced
Re: Panning algorithm

I found a really good way by accident...

just have it search for green and set the result in a variable called "cantfindgreen" 0 being it found it, 1 being it didnt, then put something like this in your code

if (cantfindgreen)
{
pan++
}

and on the top have it set the servos to the variable pan and tilt... No this does NOT break the servo... quite amazingly when it hits the end of it, it spins to the other side and continues...
__________________
"I want to put a ding in the universe" - Steve Jobs