public class HTEopdShortSensor extends Sensor
Constructor and Description |
---|
HTEopdShortSensor()
Creates a sensor instance connected to port S1 in short distance mode.
|
HTEopdShortSensor(SensorPort port)
Creates a sensor instance connected to the given port in short distance mode.
|
Modifier and Type | Method and Description |
---|---|
int |
getDistance()
Polls the sensor.
|
lejos.hardware.sensor.HiTechnicEOPD |
getLejosSensor()
Returns the reference of the the underlying
lejos.hardware.sensor.HiTechnicEOPD.
|
getLejosPort
public HTEopdShortSensor(SensorPort port)
port
- the port where the sensor is plugged-inpublic HTEopdShortSensor()
public lejos.hardware.sensor.HiTechnicEOPD getLejosSensor()
public int getDistance()