View Single Post
  #5   Spotlight this post!  
Unread 02-09-2016, 10:59 AM
JacobD's Avatar
JacobD JacobD is offline
Registered User
AKA: Jacob
FRC #1672 (Mahwah Robo T-Birds)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2013
Location: New Jersey
Posts: 90
JacobD is an unknown quantity at this point
Re: USB Camera not working

The code that I wrote for it but I still haven't tested it because we are getting ready to reassemble the electronics on our robot. Otherwise try this:

Make sure you name the usb cam in the roboRio web panel to the appropriate name ("cam1")
Code:
public void robotInit()
{
        usbCam = CameraServer.getInstance();
	usbCam.setQuality(50); 
	usbCam.startAutomaticCapture("cam1");
 }
It seems like they added the camera server class back into the library so hopefully it is functional. I'll try to let you know before the end of this week.
__________________
2013-2014: Electrical, Mechanical
2014-2017: Team Captain

Last edited by JacobD : 02-09-2016 at 11:03 AM.
Reply With Quote