public class IRSeekSensor extends GenericIRSensor
GenericIRSensor.IRValue
Constructor and Description |
---|
IRSeekSensor()
Creates a sensor instance connected to port S1.
|
IRSeekSensor(SensorPort port)
Creates a sensor instance connected to the given port.
|
Modifier and Type | Method and Description |
---|---|
int |
getIntValue(int channel)
Polls the sensor.
|
GenericIRSensor.IRValue |
getValue(int channel)
Polls the sensor.
|
public IRSeekSensor(SensorPort port)
port
- the port where the sensor is plugged-inpublic IRSeekSensor()
public GenericIRSensor.IRValue getValue(int channel)
channel
- the infrared channel number (1..4)public int getIntValue(int channel)
channel
- the infrared channel number (1..4)