View Single Post
  #4   Spotlight this post!  
Unread 08-02-2010, 21:01
boya3706 boya3706 is offline
Registered User
FRC #0020
 
Join Date: Feb 2010
Location: Cohoes NY
Posts: 5
boya3706 is an unknown quantity at this point
Re: freshImage() routine anomaly

JHersh, thanks for the reply. We finally figured it out. freshImage() is indeed working correctly.

At first, the problem was that our processing loop was running very long compared to the camera refresh rate. In that circumstance, of course, freshImage() would always return true.

Then, we commented out all the processing code -- including getImage(). We didn't realize that it was the call to getImage() had a side-effect that impacts freshImage(). Once we put the call to getImage() back into the code, a subsequent call to freshImage() indeed returned false.

Our apologies if we confused anyone. freshImage() has NO anomoalous behavior.