|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrcx.rcxdirect.DirectSend
rcx.rcxdirect.Sensor
public class Sensor
Abstraction for a sensor. There are three Sensor instances available: Sensor.S1, Sensor.S2 and Sensor.S3. They correspond to sensor inputs labeled 1, 2 and 3 in the RCX.
Field Summary | |
---|---|
static Sensor |
S1
Sensor labeled 1 on RCX. |
static Sensor |
S2
Sensor labeled 1 on RCX. |
static Sensor |
S3
Sensor labeled 1 on RCX. |
Method Summary | |
---|---|
boolean |
readBooleanValue()
Reads the boolean value of the sensor. |
int |
readRawValue()
Reads the raw value of the sensor. |
int |
readValue()
Reads the canonical value of the sensor. |
Methods inherited from class rcx.rcxdirect.DirectSend |
---|
getStream, getTimeout, getTimeoutStatic, init, lastResult, lastResultStatic, sendToRCX |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Sensor S1
public static final Sensor S2
public static final Sensor S3
Method Detail |
---|
public final int readValue()
public final int readRawValue()
public final boolean readBooleanValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |