C++ Camera Problems

I was wondering how many teams were having trouble getting the camera to work while using C++. There are a lot of videos on YouTube that show teams tracking the target with no problem. Just wondering if there is a problem with C++ or we are doing something wrong.

The C++ stuff works. If you aren’t using the latest update, there were a few bugs, but it would still work in most cases even then.

You haven’t described what “not working” means.

Greg McKaskle

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