Ultrasonic Coding

Our team is trying to set up the MaxSonar Ultrasonic Range Finder but we are having a problem with the Java code for it. We are trying AnalogChannel but we are not sure what values will help us calculate the distance for the ultrasonic.

Could someone give us an idea if AnalogChannel is the right function to be using or if we need to use another function?

If it is possible at all too does anyone have an example of what we can use to calculate distance with the MaxSonar?

Try searching the forums… I found:



and this thread, post #5 especially…