We've recently been trying to get the camera to work with Java. We're using the standard KoP camera plugged into port #2 on the cRIO with all of the correct settings as stated in the setting up your camera PDF. Based on what we read in this section of the forums, only a single line of code was actually required to make the camera send back an image to the stock dashboard (which is all we are trying to do). We added that line:
Code:
AxisCamera camera = AxisCamera.getInstance();
to the main class's constructor and everything compiled fine, but once we begin running teleop on the robot, we get this odd error:
"AxisCamera: No content-length token found in packet: S_errno_ECONNREFUSED"
It comes up every few seconds in the netbeans output window, and no video is displayed on the dashboard.
Anyone know why this is happening or what we can do to fix it? We've looked around, but haven't seen anyone posting about this problem anywhere else. Your help would be much appreciated! Thanks.