View Single Post
  #11   Spotlight this post!  
Unread 28-01-2011, 12:06
321liftoff 321liftoff is offline
Registered User
FRC #0801
 
Join Date: Jan 2011
Location: Merritt Island, FL
Posts: 2
321liftoff is an unknown quantity at this point
Re: Multiple Axis Cams?

Has anyone had any success with viewing two cameras on the Driver Station?

We are using LabVIEW. Our setup has two Axis cameras (10.xx.yy.90 and 10.xx.yy.91 addresses) on the D-Link with the cRIO (10.xx.yy.2 address). We can put either of the camera addresses as an input to the "Camera Open" VI in the "Begin". Each camera functions correctly when setup this way.

Our idea is to have the robot send one camera feed, then have the user press a button to switch cameras and start sending the other camera feed. We are only using the cameras for the drivers to get a better view, not to do image processing.

Implementation #1
We put .90 in the Begin code to start sending camera images to the Driver Station. In the Vision processing, we setup some code to run "Camera Close" on the current camera reference and run "Camera Open" on the .91 address when a joystick button is pressed.

When running the code, the camera sends images as normal. When the button is not pressed, the .90 camera continues to send images. When the button press occurs, the "Camera Close" code seems to lock up our program and no images are sent.

We haven't delved too deep into the camera code, but we think that the "Camera Close" code kills the camera's connection to the Driver Station. Can someone confirm?

Implementation#2
Another idea is to modify the driver station and have a webbrowser view the camera feed and we could switch between camera feeds on the dashboard. We think this implementation would be technically feasible and would actually provide a better image for the team. It would also take the cRIO out of the imaging loop. Is viewing the Axis camera by webbrowser instead of through the cRIO/Dashboard interface allowed by the rules? Will sending the camera data by this method consume too much bandwidth for the Field Management System?

Last edited by 321liftoff : 28-01-2011 at 12:15.