X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=nxtOSEK%2Flejos_nxj%2Fsrc%2Fjava%2Fpccomms%2Flejos%2Fpc%2Fcomm%2FOutputState.java;fp=nxtOSEK%2Flejos_nxj%2Fsrc%2Fjava%2Fpccomms%2Flejos%2Fpc%2Fcomm%2FOutputState.java;h=f30a44b2d59a3aa369ff78244f7281d3cffad6c8;hb=815664f1648545c25bb41fd4c99117bf488c7735;hp=0000000000000000000000000000000000000000;hpb=393799f55f039bfc438ca78f3fb4da4926e7105b;p=nxt-jsp%2Flejos_nxj.git 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 index 0000000..f30a44b --- /dev/null +++ b/nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/OutputState.java @@ -0,0 +1,25 @@ +package lejos.pc.comm; + +/** + * Container for holding the output state values. + * @author Brian Bagnall + * @version 0.2 September 9, 2006 + * @see NXTCommand + */ +public class OutputState { + public byte status; // Status of the NXTCommand.getOutputState command. + public int outputPort; // (Range: 0 to 2) + public byte powerSetpoint; // -100 to 100 + public int mode; //(bit-field) // see NXTProtocol for enumeration + public int regulationMode; // see NXTProtocol for enumeration + public byte turnRatio; // -100 to 100 + public int runState; // see NXTProtocol for enumeration + public long tachoLimit; // Current limit on a movement in progress, if any + public int tachoCount; // Internal count. Number of counts since last reset of the motor counter) + public int blockTachoCount; // Current position relative to last programmed movement + public int rotationCount; // Current position relative to last reset of the rotation sensor for this motor) + + public OutputState(int port) { + outputPort = port; + } +}