View Single Post
  #3   Spotlight this post!  
Unread 26-01-2017, 17:02
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 154
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
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
Reply With Quote