1 package lejos.pc.comm;
\r
5 * @author <a href="mailto:bbagnall@mts.net">Brian Bagnall</a>
\r
6 * @version 0.1 August 3, 2006
\r
9 public class InputValues {
\r
10 public int inputPort;
\r
12 * NXT indicates if it thinks the data is valid (based on previous data?)
\r
14 public boolean valid = true;
\r
15 public boolean isCalibrated;
\r
16 public int sensorType;
\r
17 public int sensorMode;
\r
19 * The raw value from the Analog to Digital (AD) converter.
\r
21 public int rawADValue;
\r
23 * The normalized value from the Analog to Digital (AD) converter. I really don't
\r
24 * know for sure which values are normalized yet.
\r
27 public int normalizedADValue;
\r
29 * The scaled value starts working after the first call to the sensor.
\r
30 * The first value will be the raw value, but after that it produces scaled values.
\r
31 * With the touch sensor, off scales to 0 and on scales to 1.
\r
33 public short scaledValue;
\r
37 public short calibratedValue;
\r