OSDN Git Service

lejos_NXJ_win32_0_5_0beta.zip
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / src / java / pccomms / lejos / pc / comm / InputValues.java
1 package lejos.pc.comm;\r
2 \r
3 /**\r
4  * \r
5  * @author <a href="mailto:bbagnall@mts.net">Brian Bagnall</a>\r
6  * @version 0.1 August 3, 2006\r
7  * @see NXTCommand\r
8  */\r
9 public class InputValues {\r
10         public int inputPort;\r
11         /**\r
12          * NXT indicates if it thinks the data is valid (based on previous data?)\r
13          */\r
14         public boolean valid = true;\r
15         public boolean isCalibrated;\r
16         public int sensorType;\r
17         public int sensorMode;\r
18         /**\r
19          * The raw value from the Analog to Digital (AD) converter.\r
20          */\r
21         public int rawADValue;\r
22         /**\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
25          * 0 to 1023\r
26          */\r
27         public int normalizedADValue;\r
28         /**\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
32          */\r
33         public short scaledValue;\r
34         /**\r
35          * Currently unused.\r
36          */\r
37         public short calibratedValue;\r
38 }\r