View Single Post
  #5   Spotlight this post!  
Unread 30-01-2016, 13:18
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 229
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: Maxbotix not working well with RoboRIO?

Quote:
Originally Posted by jajabinx124 View Post
Possibly. Try using ultrasonic.getVoltage() instead of getValue() and see what you find- this method returns the analog value in calibrated units. (maybe this is what the data sheet is referring to when it says analog voltage bits values should be in between 0-1023)
Yeah I think the sensor is just not working. The voltage only changes for about 18 inches in range which is not even close to what it should be doing(5 meters). I think I'll give some other types of ultrasonic sensors a try. Thanks for the help!