--- /dev/null
+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