Need help with the Axis 206 Camera
Hey guys.
Our team has never really used image processing to its fullest extent, but this year we hope to achieve that. However, we cant seem to get the camera to work with the crio.
We tried running the default code and some of our own code but we always seem to get this error.
Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457
[cRIO] Too much error data!
The code that we are trying to run is the CircleTrackerDemo. We tried some of ;
camera = AxisCamera.getInstance();
camera.writeResolution(AxisCamera.ResolutionT.k320 x240);
camera.writeBrightness(0);
---
DriverStationLCD.getInstance().updateLCD();
but we still get the same error.
These are all the cases I have tried
Connect the camera to the crio (using a crossover cable, in port 2) with an ip of 192.168.90. Outcome = same error
Connect the camera to the crio with an ip of 10.18.15.11. Outcome = same error
Connect the camera to our computer with an ip of 10.18.15.11. Outcome = The video is displayed on the dashboard.
I have no idea of what to do from now.
Thanks for the help guys!
EDIT : We are using Java
Last edited by nonamedude : 19-01-2012 at 00:31.
Reason: Extra info
|