Log in

View Full Version : yet another axis camera question


bruceba
21-02-2011, 19:23
I don't understand why the current camera instructions describe setting its address to 10.36.81.11 (for instance) but the AxisCamera::GetInstance() method returns an AxisCameraParam (base class) instance initialized to 192.168.0.90. AFAICT there is no way to override that IP address. What am I missing?

Alan Anderson
21-02-2011, 23:59
You're missing the second half of the first sentence that describes setting the camera's IP address that way:

"The camera can also be connected directly to the radio and bypass the cRIO if you choose not to use image processing."

bruceba
22-02-2011, 12:08
OK, for the sake of argument, let's say I want to do image processing. The question still stands -- how do I use the AxisCamera class to access the camera whose IP address is 10.x.x.11?

Straberrie
22-02-2011, 12:12
You have two options with the camera.

1) If you want to use it for vision only, you can connect it directly to your radio, in which case you have to play around with the camera's IP address.

2) If you want to use image processing, you have to connect the Axis Camera to the cRIO, keeping Axis Camera's IP setting in factory settings. You should connect the camera to port 2 of the cRIO and not touch the camera's IP settings. Do the following:

a) Turn the Camera off, press the reset button (control button) and keeping holding it. Turn the camera on, wait until the ring around the camera turns to reddish/orange color. Let go of the control button and ta daaaa... you are back to factory settings. ( Do this if you changed camera's IP configuration)

b) Now, follow the instruction in this PDF

http://usfirst.org/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2011_Assets/Kit_of_Parts/How_to_Configure_Your_Camera.pdf

Use "FRC" as username
Use "FRC" as a password

That is the configuration that worked for me.

Note, This is still the IP address: 192.168.0.90

then, use this to check if you have vision.

AxisCamera &camera = AxisCamera::GetInstance();

bruceba
22-02-2011, 13:03
Thanks very much for the comprehensive explanation. The 2nd ethernet port on the cRIO is configured by default as a 192.168.x.x network so this makes perfect sense.