Quote:
Originally Posted by frmsaul
Yet, we are having trouble saving images from 2 separate AxisCameras because WPILib will only allow us to have a reference to one of the 2 cameras, and when we try to get a reference to the 2nd camera, it simply returns the reference to the first.
|
We had a similar issue in 2012. I'm going to assume WPI C++ has the same/similar bug WPI LabView does. In lab view, a memmory location is allocated for images and assigned a unique name. If any other function call is given the same image reference, it uses the same location.
It turns out, some of the LabView function calls had this name hardcoded internally (I went down the rabbit hole). When we changed the name, it started working again. Recomendation, dig through the libraries and find the referenced memmory pointer/location and change as necessary. Save the changed files as a new library.