View Single Post
  #1   Spotlight this post!  
Unread 09-02-2014, 11:54
Maxchrist Maxchrist is offline
Registered User
FRC #4458 (Infernobotix)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Center Moriches, NY
Posts: 10
Maxchrist is an unknown quantity at this point
Using an Analog Ultrasonic Sensor

Hi, I have been trying to use a maxbotix ultrasonic sensor to get a distance using java. The sensor is on an analog channel so it seems that I cannot use the frc api for the ultrasonic sensor. I have the math worked out, and it prints a distance in inches, however the voltage on the sensor is not changing when I move the sensor, which means it is not sending out signals. How can you start the sensor and make it send out sonar signals? Or if I am not going about this the right way, is there a better way to do this? this is what I have so far:
ultra.txt

Last edited by Maxchrist : 09-02-2014 at 12:13.
Reply With Quote