Setting Camera Resolution

We’re having some issues setting the camera resolution. While we’re not doing any image analysis, we want to reduce the resolution so that there’s less data streaming from the PCVideoServer to our dashboard (we assume some lag may be contributing to a slowdown issue).

Upon examining the source code, we found that the camera task sleeps for one-second intervals in a loop until the cRIO and camera are connected, so making calls to change settings like the resolution is ignored completely during this time. Thinking we’d wait that out and knowing that a fresh image is posted when the camera finally comes online, we slept in our own loop until a fresh image was available, then tried to set the resolution. This still didn’t work.

Do any other teams have issues setting the resolution or fixes?

we did not have trouble with this:




both worked
EDIT: Is it in the constructor?