View Single Post
  #2   Spotlight this post!  
Unread 14-02-2009, 18:09
elfinn elfinn is offline
Team 166 Mentor
AKA: Beth Finn
FRC #0166 (Chopshop Team 166)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Merrimack, NH
Posts: 14
elfinn is an unknown quantity at this point
Re: C++ Camera Problems

Quote:
Originally Posted by rl1806 View Post
Our camera will be tracking the target then sometimes it just looses it and other times the camera turns to the left and acts like it has locked onto something. When it turns to the left we have to put something in front of the camera to get it to start searching again. We are using the latest update to the software.
There are two things that may help you. One is fixing a bug in Target.cpp's FindTwoColors() if you are using the sample program. Search for memcpy and change the second line of each memcpy pair to copy secondTrackReport instead of firstTrackReport to par2.

The other thing which I think is really your problem, is that the camera configuration / HSL settings are not working in your test environment. The camera acts like this if there is a bright contrast, glare or other lighting conditions that are less than ideal. There is a white paper on NI's web site that can help explain this:
http://joule.ni.com/nidu/cds/view/p/id/1235/lang/en