lejos.nxt
Class SensorPort.StandardReader
java.lang.Object
lejos.nxt.SensorPort.SensorReader
lejos.nxt.SensorPort.StandardReader
- Enclosing class:
- SensorPort
protected class SensorPort.StandardReader
- extends SensorPort.SensorReader
Method Summary |
int |
readRawValue()
Reads the raw value of the sensor. |
int |
readValue()
Returns value compatible with Lego firmware. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SensorPort.StandardReader
protected SensorPort.StandardReader()
readValue
public int readValue()
- Returns value compatible with Lego firmware.
- Overrides:
readValue
in class SensorPort.SensorReader
- Returns:
- the computed value
readRawValue
public final int readRawValue()
- Reads the raw value of the sensor.
- Overrides:
readRawValue
in class SensorPort.SensorReader
- Returns:
- the raw sensor value