Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   [Help Needed] Camera to Dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=80604)

basicxman 19-01-2010 17:27

[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/sh...d.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.

TheDominis 19-01-2010 18:20

Re: [Help Needed] Camera to Dashboard
 
As per the documentation on page 53 of the WPI library documentation (http://first.wpi.edu/Images/CMS/Firs...ers_Guide.pdf).

Code:

// 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.


All times are GMT -5. The time now is 12:52.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi