|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectlejos.pc.comm.InputValues
public class InputValues
Structure that gives information about a NXT sensor.
NXTCommand| Field Summary | |
|---|---|
short |
calibratedValue
Currently unused. |
int |
inputPort
The number ofd the port (0 - 3) |
boolean |
isCalibrated
Indicates whether the sensor has been calibrated - not currently used. |
int |
normalizedADValue
The normalized value from the Analog to Digital (AD) converter. |
int |
rawADValue
The raw value from the Analog to Digital (AD) converter. |
short |
scaledValue
The scaled value starts working after the first call to the sensor. |
int |
sensorMode
The mode of the sensor - see NXTProtocol. |
int |
sensorType
The type of the sensor - see NXTProtocol. |
boolean |
valid
NXT indicates if it thinks the data is valid (as it has had time to stabilize) |
| Constructor Summary | |
|---|---|
InputValues()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int inputPort
public boolean valid
public boolean isCalibrated
public int sensorType
public int sensorMode
public int rawADValue
public int normalizedADValue
public short scaledValue
public short calibratedValue
| Constructor Detail |
|---|
public InputValues()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||