As the title says, I am working on a project for which I have to determine how parallel a car is in a parking spot. Essentially, how many degrees off is it from the line? This would be a scenario that looks something like this:
Anyways, my thought process was this - Have two ultrasonic sensors, a known distance apart, aiming at the car. If the car was assumed to be a flat plane, a little bit of math would easily get you angle. Problem is that cars have curves...
Any ideas on how this could possible be done otherwise? You can assume that I can set up sensors wherever they are needed.