Camera IP Help

We need to get our camera working. In the part with the %d.%d.%d.%d. we put in our robot’s ip, but this broke the code. We also tried to copy last years code (both of last year’s programmers left), but this didn’t work either.
Any help would be appreciated,
Tigerbots :confused:

The default Dashboard should work with the camera as is.
Either the one that came in the Driver Station update or creating a default Dashboard project.
If the camera was not setup last year, then you may need to use the camera setup utility on it.

Perhaps if you post the code segment that ‘broke’ when you added the IP address we can help further …

STeven.

When we put in the IP, the I32’s on the left block disappear and the wires going between the I32’s break. The error code is -44003 with the source of

“WPI_CameraIssue HTTP Request with Authentication.vi>> WPI_CameraIssue Get.vi>> WPI_Camera Set Image Appearance Property.vi>> WPI_CameraSet Enum Appearance Property.vi>>WPI_Camera Set Image Size.vi>>Begin.vi>>Robot Main.vi <time> 22:02:16 01/29/2013<unique#>1020660”

Why are you putting an IP in the format statement?

The string of %d’s is there to provide a format for the code to use. It should get the correct IP by default, but only as long as you do not replace the format string with your robot’s IP.

Your camera’s IP should be 10.25.09.11. If you’re not sure if your camera is configured correctly, plug it directly into your driver station PC and try visiting that IP address. (Start up the driver station beforehand to make sure your IP settings are correct.) If you can see a live feed there, then your camera should be set up correctly for use on the robot.

This works fo’realz ^