Package lejos.remote.nxt
Class InputValues
- java.lang.Object
-
- lejos.remote.nxt.InputValues
-
public class InputValues extends java.lang.ObjectSensor input values for a remote NXT accessed via LCP.- Author:
- Brian Bagnall
-
-
Field Summary
Fields Modifier and Type Field Description shortcalibratedValueCurrently unused.intinputPortbooleanisCalibratedintnormalizedADValueThe normalized value from the Analog to Digital (AD) converter.intrawADValueThe raw value from the Analog to Digital (AD) converter.shortscaledValueThe scaled value starts working after the first call to the sensor.intsensorModeintsensorTypebooleanvalidNXT indicates if it thinks the data is valid
-
Constructor Summary
Constructors Constructor Description InputValues()
-
-
-
Field Detail
-
inputPort
public int inputPort
-
valid
public boolean valid
NXT indicates if it thinks the data is valid
-
isCalibrated
public boolean isCalibrated
-
sensorType
public int sensorType
-
sensorMode
public int sensorMode
-
rawADValue
public int rawADValue
The raw value from the Analog to Digital (AD) converter.
-
normalizedADValue
public int normalizedADValue
The normalized value from the Analog to Digital (AD) converter. I really don't know for sure which values are normalized yet. 0 to 1023
-
scaledValue
public short scaledValue
The scaled value starts working after the first call to the sensor. The first value will be the raw value, but after that it produces scaled values. With the touch sensor, off scales to 0 and on scales to 1.
-
calibratedValue
public short calibratedValue
Currently unused.
-
-