|
Re: Error while processing images through OpenCV pipeline
There are a lot of problems with this code.
- Why are you sleeping for 15 seconds in the constructor? Why do you have that at all?
- You set all the camera parameters in this command's constructor. These should be set by the subsystem
- You set the Robot's visionThread variable to the exact same thing (this is what's causing the "too many clients" error). Again, it should be set in the Robot class, and be private so stuff like this doesn't happen
__________________
WPILib
GRIP, RobotBuilder
|