|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ridgesoft.robotics.SonarRangeFinder
com.ridgesoft.robotics.sensors.DevantechSRF04
public class DevantechSRF04
Class to interface with the Devantech SRF04 ultrasonic range finder.
Constructor Summary | |
---|---|
DevantechSRF04(PulseOutput trigger,
PulseInput echoInput)
Constructs a range finder object. |
Method Summary | |
---|---|
int |
getEchoDelay()
Gets the echo delay, including 100 usec blanking time. |
void |
ping()
Generates a ping. |
Methods inherited from class com.ridgesoft.robotics.SonarRangeFinder |
---|
getDistanceCm, getDistanceInches |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
---|
public DevantechSRF04(PulseOutput trigger, PulseInput echoInput)
trigger
- digital output used to trigger a sonic burstechoInput
- pulse input used to measure echo delayMethod Detail |
---|
public int getEchoDelay()
getEchoDelay
in class SonarRangeFinder
public void ping()
Note: The sensor has a 10 millisecond recovery time. Therefore, this method should not be called within 10 milliseconds of completion of the previous sample.
ping
in interface RangeFinder
ping
in class SonarRangeFinder
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |