View Single Post
  #1   Spotlight this post!  
Unread 02-04-2010, 02:11
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
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?
__________________
Reply With Quote