Camera not tracking with default code

We seem to be having an issue with the default TwoColorTrackDemo code. We know for a fact that the camera can see the target … but it does not search for/follow the target.

There are a few things I want to make sure of; is the default code supposed to be able to search for/follow a target? (I thought so, but this would not be the first time I was wrong)

I have a checklist of things to look for on the robot tomorrow electronics wise, but is there anything in Windriver I should check as well? Our electronics guys are bent on saying it is a code issue, because they would not have messed up on something like this :rolleyes:

I don’t think the example code needs any changes in order to work, but I’ve not been using the WindRiver environment, so I can’t say it with certainty.

Make sure your electronics checklist includes making sure the 6v LED is lit on the Digital Sidecar, and that the servo power jumpers are installed on the PWM outputs going to the pan/tilt servos.

Make sure you’re running the latest updates–the most recent one(cRio 11/WR 3) fixed an issue in camera tracking and FindColor calls. If you’re running an earlier version, FindColor will return the first particle it finds, even if that particle is just one pixel.

Thanks for the help; we updated to version 11 last week troubleshooting the code.