Added missing documentation.
This commit is contained in:
@@ -15,10 +15,18 @@
|
|||||||
*/
|
*/
|
||||||
package ve.ucv.ciens.ccg.nxtarbot.protocol;
|
package ve.ucv.ciens.ccg.nxtarbot.protocol;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>Bit masks used to code/decode the control instructions sent by NxtAR-cam to
|
||||||
|
* NxtAR-bot.</p>
|
||||||
|
* <p>Expansions 1-3 are currently unused.</p>
|
||||||
|
*/
|
||||||
public abstract class MotorMasks {
|
public abstract class MotorMasks {
|
||||||
public static final byte MOTOR_A = (byte)0x01;
|
public static final byte MOTOR_A = (byte)0x01;
|
||||||
public static final byte MOTOR_B = (byte)0x02;
|
public static final byte MOTOR_B = (byte)0x02;
|
||||||
public static final byte MOTOR_C = (byte)0x04;
|
public static final byte MOTOR_C = (byte)0x04;
|
||||||
public static final byte DIRECTION = (byte)0x08;
|
public static final byte DIRECTION = (byte)0x08;
|
||||||
public static final byte RECENTER = (byte)0xF0;
|
public static final byte RECENTER = (byte)0x10;
|
||||||
|
public static final byte EXPANSION_1 = (byte)0x20;
|
||||||
|
public static final byte EXPANSION_2 = (byte)0x20;
|
||||||
|
public static final byte EXPANSION_3 = (byte)0x20;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ public class MotorControlThread extends Thread{
|
|||||||
}
|
}
|
||||||
|
|
||||||
}catch(IOException io){
|
}catch(IOException io){
|
||||||
// If disconnection terminate.
|
// On disconnection terminate.
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public class SensorReportThread extends Thread{
|
|||||||
outputStream.writeByte(message);
|
outputStream.writeByte(message);
|
||||||
outputStream.flush();
|
outputStream.flush();
|
||||||
}catch(IOException io){
|
}catch(IOException io){
|
||||||
// If disconnection terminate.
|
// On disconnection terminate.
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user