|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object icommand.nxt.SensorPort
public class SensorPort
Port class. Contains 4 Port instances.
Usage: Port.S4.readValue();
Field Summary | |
---|---|
static SensorPort |
S1
|
static SensorPort |
S2
|
static SensorPort |
S3
|
static SensorPort |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static SensorPort S1
public static SensorPort S2
public static SensorPort S3
public static SensorPort 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 |