View Single Post
  #4   Spotlight this post!  
Unread 21-01-2016, 12:55
kmodos kmodos is offline
Registered User
AKA: Alex
FRC #1126 (SparX)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: New York
Posts: 57
kmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to beholdkmodos is a splendid one to behold
Re: [Snippet] Using 2+ Cameras with minimal bandwidth usage

Quote:
Originally Posted by bbjdt2224 View Post
When I put this in my code and deployed it to the robot several errors showed up and the dashboard indicated there was no code.
Where did you put all of these pieces of code in your project?
Did you remember to import all of the required packages? The code under init code needs to be run one time when the robot is powered on. The switching code and sending the frame back to the driver station should be placed in some sort of loop, it can be in periodic, or a custom loop you write.

Quote:
Originally Posted by fovea1959 View Post
kmodos: thank you very much. works perfectly for us.

has anyone figured out how to open both cameras at once? we would like to open both camera, grab a frame from each, lay them down side by side in a double size frame, and send *that* to the DS. The problem is that IMAQdxConfigureGrab throws an exception if you already have called it with*out* an intervening MAQdxStopAcquisition.

I might look into doing something like this. I have to talk with our drivers to see if this would be something that they want. If I get it working I will post it publicly.
Reply With Quote