PlusToolkit / PlusLib

Software library for data acquisition, pre-processing, and calibration for navigated image-guided interventions.
http://www.plustoolkit.org
Other
130 stars 102 forks source link

BUG: Fix handling of timestamp for WinProbe rendered frames #1164

Closed jamesobutler closed 4 months ago

jamesobutler commented 4 months ago

This includes a fix for better handling of the timestamp for rendered WinProbe frames because currently the timestamp offset sometimes gets randomly pushed to the future resulting in new frames getting ignored as they are considered "old" resulting in the stream appearing frozen. With these changes I have no longer observed a spurious frame increasing the timestamp so that when the ultrasound sequencer restarts, new frames always come through rather than the occasional longer than expected freeze of the live stream as we wait for new frames to have a timestamp beyond the spurious far one.

cc: @nhjohnston as another person who has used hardware to confirm these changes.