|
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.ParallaxPing
public class ParallaxPing
Class to interface with the Parallax Ping))) ultrasonic range finder.
Constructor Summary | |
---|---|
ParallaxPing(PulseInput signal)
Constructs a ParallaxPing object. |
Method Summary | |
---|---|
int |
getEchoDelay()
Gets the echo delay. |
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 ParallaxPing(PulseInput signal)
signal
- A digital input port that supports both the PulseInput and
PulseOutput interfaces.Method Detail |
---|
public int getEchoDelay()
getEchoDelay
in class SonarRangeFinder
public void ping()
Note: At its longest range, the sensor will take approximately 20 milliseconds to take a range measurement. Therefore, this method should not be called more frequently than every 25 milliseconds or so.
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 |