View Single Post
  #2   Spotlight this post!  
Unread 28-11-2016, 20:01
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 37
BenBernard is an unknown quantity at this point
Re: Camera not relaying to Smartdashboard

A couple of things:
1) You need to reference the camera differently:
Code:
    		server.startAutomaticCapture("cam1");
2) You need to call setSize to specify resolution:
Code:
    		server.setSize(1); // force 320x240
You should also use the roboRIO WebDashboard to double-check that the rio sees the camera and that it's really on the cam1 port. Note that the link assumes you're using the Lifecam-3000, but holds true for any USB camera.

Also, be sure to select USB Camera SW on the default dashboard.
Reply With Quote