Or, more simply:
You experiment, and find that at a distance of (0.73 volts = 73 inches), setting your motor control to +0.48 makes the shot 9 out of 10 times. You also find that at 1.45 V (145") a motor control of +0.83 is 'perfect'.
You create a table:
Code:
Measured Motor
Distance Voltage
73 +0.48
145 +0.83
This is a "look up table".
With such a table, you might be able to assume that a distance halfway between 73 and 145 (=110) should use a motor control of halfway between 0.48 and 0.83 (=0.65). Doing this kind of math to 'guess' at what might be a good value in between known-good values is called "interpolation".
Or, you can just experiment every 12 " and see what you get, and use the value in the table that's closes to the measured distance.
Be sure to take into consideration what to do if there's a robot between you and the spot you want to measure from.