View Single Post
  #6   Spotlight this post!  
Unread 15-01-2012, 17:35
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Range Finder Help

The Motor Set vi uses a range of -1 (full reverse) to +1 (full forward). Transform the Analog Voltage Get vi result to turn distance (0.01 volts per inch) into whatever power you want to run the motor at. You'll probably want something a little fancier than a simple multiplication -- a basic lookup table where input is distance and output is power should be about right.
Reply With Quote