|
Re: Multiple Axis Cams?
If you dig deep enough into the camera VI's, you will see that it gets the image over HTTP from the camera. If you find the right VI's (WPI_CameraIsssue HTTP Request With Authentication.vi and WPI_CameraRead JPG.vi especially), you can make copies of them (with different names) in your code folder, modify them all to call the correct copy, and use them on the Dashboard to get the image directly from the camera.
If you had WPI_CameraIssue HTTP Request With Authentication.vi, WPI_CameraRead JPG.vi, and WPI_CameraDecodeJPEGString.vi, you could get the image as a LabVIEW image and use it just like any other part of the Dashboard.
This would require that both cameras were directly connected to the D-Link router, and not the cRio. It would probably be faster than running through the cRio anyway. Since all communications to the camera happens on port 80, it is allowed by the field.
Super important note: The cRio would have no control of the cameras at all. The Dashboard information packet would have to include which camera to use.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|