View Single Post
  #4   Spotlight this post!  
Unread 16-02-2014, 14:49
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: Vision code hangs cRIO

Quote:
Originally Posted by Randaline View Post
You're not alone our team's been using the example vision code and have gotten it working, but it takes five seconds or longer, no matter what we change. It's a problem considering the hot goals change within 5 seconds...
We were running into the same problem, but think we've got it working. What language and camera are you using? We're using the m1011 and C++ and what we found is that you have to initialize the camera outside of the autonomous loop, else the camera won't begin the startup sequence until you enable autonomous. If you place
Code:
static AxisCamera *camera;
right after the #define's, and delete the other declaration thats right inside the autonomous loop, that should help a bit.

Also, to OP: try decreasing the fps. We found that 4 or 5 fps is more than enough, but it tries to default to something crazy like 30.
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."