Revision 765
More sophisticated hack; bot 4 is default
ColonetServerInterface.java | ||
---|---|---|
66 | 66 |
public static final String REQUEST_BOM_MATRIX = "144"; |
67 | 67 |
public static final String REQUEST_XBEE_IDS = "145"; |
68 | 68 |
public static final String RECHARGE = "96"; //0x60 |
69 |
public static final String RECHARGE_STOP = "97"; //0x61 |
|
69 | 70 |
|
70 | 71 |
//Queue instructions |
71 | 72 |
public static final String COLONET_QUEUE = "100"; |
... | ... | |
383 | 384 |
System.out.println("Sent recharge command to ID " + id); |
384 | 385 |
} |
385 | 386 |
|
387 |
/** |
|
388 |
* Tell a robot to stop recharing now |
|
389 |
*/ |
|
390 |
public void sendRechargeStop (int id) { |
|
391 |
sendData(RECHARGE_STOP + "", id + ""); |
|
392 |
System.out.println("Sent recharge stop command to ID " + id); |
|
393 |
} |
|
394 |
|
|
386 | 395 |
/** |
387 | 396 |
* Establish a boundary for robot motion. |
388 | 397 |
*/ |
Also available in: Unified diff