View Single Post
  #7   Spotlight this post!  
Unread 15-01-2012, 20:53
Alex Redman's Avatar
Alex Redman Alex Redman is offline
Zombots Lead Programmer
AKA: Alexander Redman
FRC #3013 (Zombots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Vallejo,CA
Posts: 14
Alex Redman is an unknown quantity at this point
Re: Range Finder Help

Quote:
Originally Posted by Alan Anderson View Post
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.
Sorry, stupid question. How do I do that?
Reply With Quote