|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecticommand.platform.nxt.Sensor
public class Sensor
Sensor class. Contains 4 Sensor instances.
Usage: Sensor.S4.readValue();
| Field Summary | |
|---|---|
static Sensor |
S1
|
static Sensor |
S2
|
static Sensor |
S3
|
static Sensor |
S4
|
| Method Summary | |
|---|---|
int |
getId()
|
boolean |
readBooleanValue()
Reads the boolean value of the sensor. |
int |
readNormalizedValue()
Reads the normalized value of the sensor. |
int |
readRawValue()
Reads the raw value of the sensor. |
int |
readScaledValue()
Returns scaled value, depending on mode of sensor. |
void |
setTypeAndMode(int type,
int mode)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Sensor S1
public static Sensor S2
public static Sensor S3
public static Sensor S4
| Method Detail |
|---|
public int getId()
public void setTypeAndMode(int type,
int mode)
public boolean readBooleanValue()
public int readRawValue()
public int readNormalizedValue()
public int readScaledValue()
setTypeAndMode(int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||