Log in

View Full Version : Camera just not showing up..


koo_04
31-01-2010, 11:11
I am a programming mentor and it is sad to say that I just can not get the camera to view any images on the Dash Board.

As far as I can see in the code, there is nothing to be telling it NOT to work. I can go to its http (192.168.0.90) with my computer (changed to 192.168.0.15) but the cRIO does not want to see it or anything. It just keeps timing out.

Please help!

Doc Wu
31-01-2010, 12:01
Make sure you are running the updated Dashboard. We installed the update, but the old program was still running on the Classmate.

The updated Dashboard program has a compass-dial at the right side for the Gyro. If you don't see that, you need to replace the program with the new one.

I think I read something about uninstalling the Driver Station/Dashboard before running the update, but it didn't say to do that with the update.

The camera and Gyro started working once I had put the new program in place. You can find the old one (and replace it) at C:\Program Files\FRC Dashboard

You will need to open the Dashboard project in LabView and build an .exe file to make the new program.

Greg McKaskle
31-01-2010, 12:39
If you are trying to log into the camera, you need to connect the PC and camera together on the same subnet. Specifically, the cRIO ports are not switched together, they are independent NICs. So, when the camera is connected to the cRIO, only the cRIO can see and talk to it.

Once you've connected and configured the camera using the PC, put it back on the cRIO and try the default code or an example program. As mentioned, be sure to update the dashboard so that it has the gyro and chart indicators.

Greg McKaskle

koo_04
31-01-2010, 13:28
As far as I know the update is on and good to go.

I am able to use a cross over to the computer and connect to it without an issue and the user name and pass word are as they need to be.

I have not tried the example code just yet, but I would of thought the base code that comes with the install of LabVIEW would work without a hitch. Maybe I should reconfigure the camera? I tried to reset it as if it never was configured but I can't figure out how.

marccenter
31-01-2010, 19:05
Fellow FIRSTer,
I've had issues with our camera as well so cannot solve you problem completely. I did want to mention though that there are instructions on how to use the camera directly to your PC in the Chapter2/3 FRC manual. I followed those instructions and was able to see the Camera on my laptop with Ethernet cable (crossover)?. I write this so that you can verify that your camera connections are good independent of the cRIO configuration setup. Good Luck!

TPNigl
31-01-2010, 19:47
Make sure that you have these four lines of code, the first in the main code, the others in the robotInit section.


AxisCamera camera;

camera = AxisCamera.getInstance();
camera.writeResolution(AxisCamera.ResolutionT.k160 x120);
camera.writeBrightness(100);

Also make sure, like said above, that your IP address is changed to 10.XX.YY.something, where XXYY is your team number, and something is anything but 90 or 2.