Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Code for Camera (http://www.chiefdelphi.com/forums/showthread.php?t=89967)

Team 3705 24-01-2011 16:46

Code for Camera
 
Hi, I would like to know if I could get some code on how to get the camera working and receiving an image, I seem to not find any code anywhere.

Also, the search function takes too long, but still havent found code from the search function regarding the camera.

Any help will be appreciated!:)

-Team 3705

kwojcik 24-01-2011 17:29

Re: Code for Camera
 
Basic functionality for the camera can be found in the AxisCamera class. You'll need to get a reference to the camera (don't try to construct your own object) and use the getImage function of your choice. I think getting an AxisCamera reference will also start the task that serves images to the dashboard so you can easily see what the camera sees

nighterfighter 24-01-2011 18:30

Re: Code for Camera
 
There is an example in Windriver, called "2010 Vision Demo"

normpearii 25-01-2011 16:39

Re: Code for Camera
 
Make sure the camera is plugged into the cRio with a CROSS-OVER cabel and run the vision example code. If your camera works, the example will display.

Aaron691 25-01-2011 20:07

Re: Code for Camera
 
can some one pleae post or email me code for Java to get the camera to display on the FRC Dashbroad. My email is mydrum9@gmail.com. also can you please tell me what i need to do to get the camera just working. Do i need to change the password or username of the camera?

ElliotCourant 31-01-2011 19:23

Re: Code for Camera
 
Try This

Code:

class RobotDemo : public SimpleRobot
{
HSLImage image;
void Autonomous(void)
        {
                myRobot.SetSafetyEnabled(false);

                AxisCamera &robocam = AxisCamera::GetInstance();
                robocam.WriteResolution((AxisCamera::Resolution_t)3);
                robocam.WriteBrightness(0);
}

void OperatorControl(void)
        {
       
                myRobot.SetSafetyEnabled(true);
                AxisCamera &robocam = AxisCamera::GetInstance();
                robocam.WriteResolution((AxisCamera::Resolution_t)3);
                robocam.WriteBrightness(0);
}



All times are GMT -5. The time now is 11:07.

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