Quote:
Originally Posted by mikets
Yes, according to the source code of the WPILib, IsFreshImage() returns the member variable m_freshImage. This variable is set by the UpdatePublicImageFromCamera() function in the camera task and cleared when you call GetImage(). So yes, once an image is available, as long as you haven't retrieved it by calling GetImage, it will remain "fresh".
|
BTW, it is possible that you haven't retrieved the image yet but another image is available so it will update the image with the new one. In other words, you don't have to worry about the image being stale.