USB Camera Problems Please Help!!

We are having major issues taking the feed from the microsoft 3000 camera to the dashboard. Here is the code we are trying to use. Please help if possible!

public class QuickVisionRobot extends SampleRobot
{
	@Override
	public void robotInit() {
	{
		CameraServer.getInstance().setQuality(50);
		CameraServer.getInstance().startAutomaticCapture("cam0");
	}
		}

}

public void startAutomaticCapture(USBCamera cam02) {
	// TODO Auto-generated method stub

My team got ours to work using the USBCamera to set the camera name and starting automatic capture with the USBCamera object. This code placed in robot init worked for us with camera already declared as a USBCamera.

camera = new USBCamera(“cam0”);
CameraServer.getInstance().setQuality(50);
CameraServer.getInstance().startAutomaticCapture(camera);