Chief Delphi

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

krudeboy51 01-02-2011 19:11

Camera Problem
 
This year my team members wan to be able to use the camera on our robot. So I followed the steps to set up the users accounts and I made a code I'm not sure if that is he problem but when I downloaded the code I got no feedback on the dashboard. I do not know what I did wrong I updated the cRio, FRC tools, the Driverstation, and windriver but still the same problem. The code I have for it is:

Code:

#include "Vision/AxisCamera.h"
#include "Vision/HSLImage.h"

class:
AxisCamera *camera;

public:
ds = DriverStation::GetInstance();


operator control:
        HSLImage image;    //Creates an image
        AxisCamera &camera = AxisCamera::GetInstance();
      camera.WriteResolution(AxisCamera::kResolution_320x240);
      camera.WriteCompression(20);
      camera.WriteBrightness(0);


basicxman 01-02-2011 22:19

Re: Camera Problem
 
Quote:

Originally Posted by krudeboy51 (Post 1013661)
Code:

#include "Vision/AxisCamera.h"
#include "Vision/HSLImage.h"


You shouldn't need to include these two headers if your Workbench and libraries are fully up to date, just WPILib.h.

Have you configured your AxisCamera as per the manual?
http://www.usfirst.org/uploadedFiles...our_Camera.pdf

SuperBK 02-02-2011 08:33

Re: Camera Problem
 
We finally got our working thanks to kind people on here. We had ours mounted on a piece of lexan that was over the reset button and it was getting interrmittenly pressed. Make sure the button is clears the mounting.

Also use a crossover cable between the camera and the CRIO port 2.

krudeboy51 02-02-2011 10:01

Re: Camera Problem
 
Quote:

Originally Posted by basicxman (Post 1013860)
You shouldn't need to include these two headers if your Workbench and libraries are fully up to date, just WPILib.h.

Have you configured your AxisCamera as per the manual?
http://www.usfirst.org/uploadedFiles...our_Camera.pdf

I thought the problem was that I did not have those headers in, I inserted them in to the code to see if it would work, and I have followed he steps in the manual step by step and still nothing.

krudeboy51 03-02-2011 15:04

Re: Camera Problem
 
Its working now thanks for your help, the problem was the password for the FRC account................. I think!


All times are GMT -5. The time now is 17:48.

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