I'm using an 8 slot cRIO and an M1013 AxisCamera. I ran the AxisCamera configuration utility from the Driver Station and it said the username and password were both successfully changed to FRC.
My code was compiling fine before, but since I added the camera code I haven't been able to compile. The compilation just stalls at
Code:
[cRIO] FPGA Hardware GUID: 0xa14c11bde4bb64aef6a86fc52a294cd9
[cRIO] FPGA Software GUID: 0xa14c11bde4bb64aef6a86fc52a294cd9
The code I added was just constructing it and the compilation just stalls. If I remove the code it works just fine.
Code:
import edu.wpi.first.wpilibj.camera.AxisCamera;
Code:
camera = AxisCamera.getInstance();
When I connect the cRIO to the DriverStation and go to the Diagnostic tabs I get repeated error messages saying:
Code:
ERROR: S_errno_EHOSTDOWN(0x00000043): Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457
and at sparse intervals it gives this error message as well...
Code:
ERROR: S_errno_EINPROGRESS(0x00000044): Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457
Any ideas? Also, what code actually sends the DriverStation the image from the camera? I looked through last year's code and there's nothing that looks like it does. Will it automatically display the image if configured correctly regardless of what's in the code?