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