View Single Post
  #2   Spotlight this post!  
Unread 07-02-2010, 03:53
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: freshImage() routine anomaly

Quote:
Originally Posted by boya3706 View Post
We need an asynchronous method of checking (from Java) to see that a new a new image is available from the camera. The documentation implies that the method freshImage() serves that purpose. However, it does NOT.

The documentation for the freshImage() method in the AxisCamera class says that its return value should be "true if the latest image from the camera has not been retrieved yet". The implication is that the return value will sometimes be false. However, our observation is that freshImage() always returns a value of true -- evidently because it actually waits for AxisCamera to have a new image.

Is there an asynchronous method (from Java) of checking that a new image is available from the camera?
I'm not sure if it used to block, but it doesn't in the current version. At least the C++ part of it doesn't. Is there something in the Java code that is waiting?

Have you updated to the latest (Feb 3rd or so) Java update?