Post Go back to editing

getframe buffer, retrieve last most recent frame from the buffer

Category: Software
Product Number: EVAL-ADTF3175D-NXZ
Software Version: 6.0

Hello,

having the EVAL-ADTF3175D-NXZ module up and running, with a host computer running a similar first_frame py script, in a loop saving frames together with IMU data,

I realized that the frame collected does not match with the IMU since the frames seems to be bufferized in the eval module ( I have an FPS a bit higher then the saving loop due to integer constraint)

As a workaround I made a nested loop to get frame until the time to get the new frame is approx the FPS time, if much shorter it's just getting the next one with a while loop.

So, my question wolud be : is there a way to flush the buffer, or even better to get the last frame of the supposed buffer and release the older ones ?

My FPS is 2 fps, and my loop get 2-3 "old" frames in 0.1-0.2 sec. before getting the real last one which take 0.5sec, and then I can match the IMU data with that one.

Many thanks !

Giorgio

  • I'm now trying using :

    ...

    camera1.adsd3500SetToggleMode(0)

    ...

         loop :

               status = camera1.adsd3500ToggleFsync()
               status = camera1.requestFrame(frame)

    instead of using FPS parameter, seems promizing