View Single Post
  #2   Spotlight this post!  
Unread 29-01-2014, 20:23
TFleig78's Avatar
TFleig78 TFleig78 is offline
Registered User
AKA: Tyler
FRC #0078 (Air Strike)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Rhode Island
Posts: 58
TFleig78 will become famous soon enoughTFleig78 will become famous soon enough
Re: Ultrasonic analog input?

We have had more luck with an AnalogChannel object instead of Ultrasonic. Then the getAverageVoltage method returns a value between 0-5v which you can use a scale factor to translate into a distance. We found the scale factor on the stats sheet that came with the rangefinder.
Reply With Quote