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