Thread: KoP Rangefinder
View Single Post
  #8   Spotlight this post!  
Unread 28-02-2012, 23:12
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: KoP Rangefinder

its not that simple, but most if not all sensors have a datasheet saying the mV/Inch and on the code side
Code:
analogin.getVoltage() / mV); //mV is the mV per inch you have to look up..
Reply With Quote