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.