I've made a RC car and recently I just got a kit that has all the stuff I need to add collision warnings, the problem is, is that it blocks codes and it will go forward with a lot of lag from the controller. I tried adding a thread to it but it still blocks the code.
I couldn't format my code correctly for the site so heres a github link https://github.com/OoDone/RcCarPython/tree/master