View Single Post
  #10   Spotlight this post!  
Unread 16-01-2012, 11:46
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,995
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Range Finder Help

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.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote