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
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
There is an example in Windriver, called “2010 Vision Demo”
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.
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?
Try This
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);
}