Revision 416
added temporary directional commands in the applet controller
Colonet.java | ||
---|---|---|
1241 | 1241 |
dest = "" + (cmbRobotNum.getSelectedIndex()-1); |
1242 | 1242 |
|
1243 | 1243 |
if (csi != null) { |
1244 |
if (cx == 0 && cy == 0) { |
|
1245 |
csi.sendData(ColonetServerInterface.MOTORS_OFF, dest); |
|
1246 |
} else { |
|
1244 |
/* |
|
1247 | 1245 |
csi.sendData(ColonetServerInterface.MOVE + " " + getSpeed() + " " + getAngle(), dest); |
1248 |
/* |
|
1246 |
*/ |
|
1247 |
|
|
1249 | 1248 |
//Directional commands |
1250 | 1249 |
if (x > cx && y == cy) { //move right |
1251 | 1250 |
csi.sendData(ColonetServerInterface.MOTOR2_SET + " 0 200", dest); |
... | ... | |
1263 | 1262 |
csi.sendData(ColonetServerInterface.MOTOR2_SET + " 1 0", dest); |
1264 | 1263 |
csi.sendData(ColonetServerInterface.MOTOR1_SET + " 1 0", dest); |
1265 | 1264 |
} |
1266 |
*/ |
|
1265 |
|
|
1267 | 1266 |
} |
1268 | 1267 |
} |
1269 | 1268 |
} |
Also available in: Unified diff