[Help Needed] Camera to Dashboard

So we have configured the camera per the control systems manual part 2 (change the IP of the camera, and run the Setup Axis application). This worked and we had a feed of the camera from the web browser.

We then popped up WindRiver and fixed the camera sample code (see thread: http://www.chiefdelphi.com/forums/showthread.php?t=79892), it builts and downloads to the cRio. We’ve been trying things around for the past 3 hours to no prevail. Could somebody please provide proper instructions (as I’ve heard hardly any teams have this working in C++, and the documentation is deplorable)? Thanks a bunch, hopefully this thread can be a reference for all.

As per the documentation on page 53 of the WPI library documentation (http://first.wpi.edu/Images/CMS/First/WPI_Robotics_Library_Users_Guide.pdf).


// java naming conventions instead of C++
AxisCamera& camera = AxisCamera::getInstance();
camera.writeResolution(k160x120);
camera.writeBrightness(0);

That’s the code I use to get images from the camera. Make sure the green button below the video box is illuminated.