OSDN Git Service

lejos_NXJ_win32_0_5_0beta.zip
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / src / java / pccomms / lejos / pc / comm / OutputState.java
diff --git a/nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/OutputState.java b/nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/OutputState.java
new file mode 100644 (file)
index 0000000..f30a44b
--- /dev/null
@@ -0,0 +1,25 @@
+package lejos.pc.comm;\r
+\r
+/**\r
+ * Container for holding the output state values.\r
+ * @author <a href="mailto:bbagnall@mts.net">Brian Bagnall</a>\r
+ * @version 0.2 September 9, 2006\r
+ * @see NXTCommand\r
+ */\r
+public class OutputState {\r
+       public byte status; // Status of the NXTCommand.getOutputState command.\r
+       public int outputPort; // (Range: 0 to 2)\r
+       public byte powerSetpoint; // -100 to 100\r
+       public int mode; //(bit-field) // see NXTProtocol for enumeration\r
+       public int regulationMode; // see NXTProtocol for enumeration\r
+       public byte turnRatio; // -100 to 100\r
+       public int runState; // see NXTProtocol for enumeration\r
+       public long tachoLimit; // Current limit on a movement in progress, if any\r
+       public int tachoCount; // Internal count. Number of counts since last reset of the motor counter)\r
+       public int blockTachoCount; // Current position relative to last programmed movement\r
+       public int rotationCount; // Current position relative to last reset of the rotation sensor for this motor)\r
+\r
+       public OutputState(int port) {\r
+               outputPort = port;\r
+       }\r
+}\r