FRC-Team-Like-A-5509 / Delta

Delta
Other
1 stars 0 forks source link

Figure out USB camera issue #3

Open Shalmezad opened 6 years ago

Shalmezad commented 6 years ago

Assign to me once I'm added to the team.

Need to figure out why USB camera is only working part of the time.

Shalmezad commented 6 years ago

Ok, I think I see what's going on. Relevant working code for reference can be found here

Gist is:

  1. Remove the lines you have now in Robot.java#robotInit()

  2. In Robot.java, declare a variable CameraServer server;

  3. 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"

  4. Set up dashboard to look for "cam2"