|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ridgesoft.robotics.SonarRangeFinder
Abstract class that implements the distance methods of the RangeFinder interface for sonar range finders.
Distances are calculated using using the speed of sound at sea level.
| Constructor Summary | |
protected |
SonarRangeFinder()
Constructs a SonarRangeFinder. |
| Method Summary | |
float |
getDistanceCm()
Gets the distance to the nearest object in centimeters based on the speed of sound at sea level (340.29 m/s). |
float |
getDistanceInches()
Gets the distance to the nearest object in inches based on the speed of sound at sea level (1116.4 ft/s). |
abstract int |
getEchoDelay()
Gets the echo delay. |
abstract void |
ping()
Generates a ping. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
protected SonarRangeFinder()
| Method Detail |
public float getDistanceCm()
getDistanceCm in interface RangeFinderpublic float getDistanceInches()
getDistanceInches in interface RangeFinderpublic abstract int getEchoDelay()
public abstract void ping()
ping in interface RangeFinder
|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||