PING)) Sensors.. Communication Help

please use code tags.

So I figured it out, I did it like this:....... But now I'm trying to figure out how I can run a motor when the transmitter is in a certain direction, does anyone know a certain calculation that will allow me to dictate what the direction the transmitter is, so it can drive to it?

For that, you can try which ever signal is the closest.