public class IRDistanceSensor extends GenericIRSensor
GenericIRSensor.IRValue
Constructor and Description |
---|
IRDistanceSensor()
Creates a sensor instance connected to port S1.
|
IRDistanceSensor(SensorPort port)
Creates a sensor instance connected to the given port.
|
Modifier and Type | Method and Description |
---|---|
int |
getDistance()
Polls the sensor.
|
getLejosSensor
getLejosPort
public IRDistanceSensor(SensorPort port)
port
- the port where the sensor is plugged-inpublic IRDistanceSensor()