View Single Post
  #1   Spotlight this post!  
Unread 08-02-2014, 15:51
bspymaster's Avatar
bspymaster bspymaster is offline
Registered User
FRC #1732
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: here
Posts: 15
bspymaster is an unknown quantity at this point
Vision CPU Overloading

Hello all.
I've spent about 24 hours trying to figure out how to properly do vision processing on our robot.
I've basically copy-pasted the vision example code for this year so that we can detect the hot targets, and it works great, other than the fact that the robot CPU runs at 100% cpu power and runs with an average lag of 1.5 seconds because of it (I've tried putting a slow in the while loops but that doesn't help) I tried moving the processing to the driver station but that just overloads the computer CPU. Does anyone know how to properly do vision processing? All I need is to know whether one side is hot or not hot (booleans!). Is there a tutorial anywhere that I can follow?

I'm having the same issue as these people, except that when I put the vision code on the driver station, I ran the driver station CPU at 100% as well.

Last edited by bspymaster : 08-02-2014 at 16:16. Reason: added more information
Reply With Quote