View Single Post
  #1   Spotlight this post!  
Unread 16-02-2012, 17:51
Youarefunny Youarefunny is offline
Registered User
FRC #0854
 
Join Date: Jan 2010
Location: Toronto
Posts: 7
Youarefunny is an unknown quantity at this point
WPILib AxisCamera Problems

We have recently been experiencing problems with our camera. We are using the following code in order to initialize the camera and get an image. Our problem has been that the after we upload this code, the next upload takes an extremely long time to upload. We have determined that this problem is due to the marked line. We don't know why this is happening. We were wondering if any other teams had been experiencing this or know why this is occurring.

Code:
sleep(20);
AxisCamera &c = AxisCamera::GetInstance();
ColorImage ci(IMAQ_IMAGE_RGB);
c.GetImage(&ci); // This line causes the slowness.
Thanks for your help.
Reply With Quote