Thread
:
KoP Rangefinder
View Single Post
#
8
28-02-2012, 23:12
ProgrammerMatt
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
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..
ProgrammerMatt
View Public Profile
Find all posts by ProgrammerMatt
Find CD-Media Photos by ProgrammerMatt
Find CD-Media Papers by ProgrammerMatt