Open Shalmezad opened 6 years ago
Ok, I think I see what's going on. Relevant working code for reference can be found here
Gist is:
Remove the lines you have now in Robot.java#robotInit()
In Robot.java, declare a variable CameraServer server;
In Robot.java#robotInit() add the following 2 lines (outside autogenerated code):
server = CameraServer.getInstance();
server.startAutomaticCapture("cam2", 0);
This will start capture for "cam2"
Set up dashboard to look for "cam2"
Assign to me once I'm added to the team.
Need to figure out why USB camera is only working part of the time.