public class HTEopdShortSensor extends Sensor
| Constructor and Description |
|---|
HTEopdShortSensor()
Creates a sensor instance connected to port S1.
|
HTEopdShortSensor(SensorPort port)
Creates a sensor instance connected to the given port.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDistance()
Returns the distance.
|
public HTEopdShortSensor(SensorPort port)
port - the port where the sensor is plugged-inpublic HTEopdShortSensor()