Log in

View Full Version : Microsoft LifeCam(HD-3000) on RoboRIO


axton900
22-03-2016, 17:00
Hey guys!
Has anyone been able to change the exposure on the LifeCam after connecting it to the RoboRIO? I deployed the simple Vision C++ code that was given and when I go to the Dashboard I find the Stream to have too high of an exposure and I am afraid that this might be a problem at the competitions as I want to use this as an Intake Camera to help the drivers and the high exposure may be an issue.
Thanks in advance!

Kyle Heaton
23-03-2016, 10:42
In the C++ library for FRC there is a class called "USBCamera". It has a few methods that might be of use to you, such as SetExposureAuto() and SetExposureHoldCurrent().

http://first.wpi.edu/FRC/roborio/release/docs/cpp/classUSBCamera.html

axton900
23-03-2016, 16:40
I tried using the USBCamera class and then tried using the CameraStream class to stream the Camera but I am not receiving any stream on the Dashboard anymore and am getting the error message, "Assertion "data[0] == 0xff && data[1] == 0xd8".. :(
Any idea on what I am doing wrong?
Thanks in advance!