Hey. Last year we programmed the robot entirely in C++, but the guy who was assigned to write the camera code could never get it to work. Looking at it, it makes sense. I don't see why it wouldn't work. However, all that ever happened was the camera would seem to track a pair of colors but then swivel to look at random objects, or the ceiling. I'd post our code but it's really a huge mess, and I think it's kind of embarrassing. (Note: this past year I was delegated to electronics and the programming was left to other people

)
We also had immense problems getting the WPI-provided camera example (TwoColorDemo, I think it was called?) working. For a while it simply wouldn't compile. Then they released a version that did compile but as I remember it exhibited the same behavior as our code. Actually, I'm willing to bet that the camera guy based his code off of TwoColorDemo.
Anyway, perhaps it would help us for next year if someone could post their (working) C++ camera functions. Even if we don't end up using the camera next year, we'd like to test if we've got something wonky with our camera or even the cRIO.
Thanks!