View Single Post
  #1   Spotlight this post!  
Unread 03-02-2014, 13:29
idoshamir idoshamir is offline
Registered User
FRC #5038
 
Join Date: Jan 2014
Location: Israel
Posts: 18
idoshamir is an unknown quantity at this point
Vision Target Detections makes cRIO code slow

Hello,

We are a rookie team trying to implement the target detection of the goals.
We want to use it both on the auto part and the teleop part.

We took the code from the example and implemented it (pretty much copy-paste) to the vision VI.

We are happy with the results - but the cRIO is immediately getting to 100% cpu and the robot responds very bad on the teleop part.
We couldn't fix the problem ourselves so we made the image processing part on only when triggered - but we would like to know are we doing something wrong and can we do better?

We are using a 320x240 resolution and got to 20% compression (tested 10% and it didn't matter). FPS doesn't seem to matter much too. We also added a 100ms delay to the image processing loop - not much change.

Thanks for any advise!
Reply With Quote