Working on a device about traffic safety.This device will check whenther what vehicles are in your range, measuring its speed and warn if its gonna collide with you or not.
So , what are the alogarithms to check if its gonna collide.I thought up one is that you predict where the car will go to if it keeps moving that way with the constant speed, check yours and then see if 2 lines intersect ( within like, 1km, 1 mile, or sth like that), calculate the time it needs to get to that point=> If you get there in x (measure in miliseconds) and it also gets there in near x miliseconds->Collide
Also , there will be a camera taking picture at 1/1000 secs to warn you collision=> helps you to dodge
So, I wanna ask what sensors you need and any alogarithms ?