View Single Post
  #4   Spotlight this post!  
Unread 04-02-2012, 03:03
matthewfl matthewfl is offline
Registered User
FRC #0687 (Nerd Herd)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2003
Location: CA
Posts: 7
matthewfl is an unknown quantity at this point
Re: Issues connecting cRIO 2 with Camera

I have been going through some of the WPILib source code as well, and I believe that the GetInstance returns the same camera object the whole time.

As far as code goes, the relevant camera lines are:
AxisCamera &camera = AxisCamera::GetInstance("10.06.87.11");
HSLImage *image = new HSLImage();
// this inside the loop
cout << camera.GetImage(image) << endl; // This prints out 0 meaning that no image was returned.

I think what I am basically asking are other teams having similar problems, have you fixed it and how. (We have been working on this for over a week now with no image coming through on the dashboard or the cRIO getting any note of the camera being there, the best that we got is we can ping the camera from the cRIO)
__________________
BE A NERD!
Reply With Quote