fixstars / ion-kit

Modernized graph-based data processing framework
MIT License
7 stars 6 forks source link

switch USB only when the popped frame is valid #165

Closed Fixstars-momoko closed 11 months ago

Fixstars-momoko commented 11 months ago

For a single sensor with 2 USB cables, switch the target USB only when the popped frame is valid (grater than the prev frame count)

Prior to the modification(frame-drop rate 50%)

USB0       3   5   7   9 
USB1         2   4   6   8 

chosen USB 0 1 0 1 0 1 0 1 
obtained   3 X 5 X 7 X 9 X 

Following the modification(frame-drop rate 13%)

USB0       3   5   7   9 
USB1         2   4   6   8 

chosen USB 0 1   1 0 1 0 1 0 
obtained   3 X   4 5 6 7 8 9