Latency is now on 1 ms. I'm not using a smart sensor up till now. I'm planning to do so in the future, once I get the program fully working.
I'm using a USB hub in my home system, but my laptop is connected directly to the APB, so I don't understand where a USB hub could be interfering... or am I wrong?
I will try to put latency to 5 ms.