Thread: camera tracking
View Single Post
  #12   Spotlight this post!  
Unread 12-02-2007, 23:36
b_mallerd b_mallerd is offline
Programmer
FRC #1346 (Trobotics)
Team Role: Programmer
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Vancouver
Posts: 35
b_mallerd is on a distinguished road
Send a message via MSN to b_mallerd
Re: camera tracking

I worked with the camera last year and had the exact same problem.

The solution is to change the code so that the camera does not go back to it's center positions when a new search is initiated (just do this once when you initialize the camera).

This solves the problem of when the camera goes past the light, detects it (blinks red) but then keeps going and seems to later change it's mind and sort of try to correct itself.

If your problem is instead finding the light and then keeping it in focus for a few seconds before moving away...try to change the +1/-1 values mentioned above or simply move the green light/move the camera to a different position. Sometimes there is interference at a particular angle from some other things (like a window or a light bulb).

Happy Coding.
__________________