Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of racing_robots by
Revision 9:0385d1bfc38b, committed 2015-06-01
- Comitter:
- sillevl
- Date:
- Mon Jun 01 14:53:39 2015 +0000
- Parent:
- 8:597ce8a7d34b
- Child:
- 10:c67825bf5f6b
- Commit message:
- added Xbee support for start/stop
Changed in this revision
| robot_logic.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/robot_logic.h Mon Jun 01 14:47:32 2015 +0000
+++ b/robot_logic.h Mon Jun 01 14:53:39 2015 +0000
@@ -110,7 +110,9 @@
void await(int milliseconds);
/**
- * If using Xbee to start/stop the robot, you can set a unique code to prevent starting or stopping other robots
+ * If using Xbee to start/stop the robot, you can set a unique code to prevent starting or stopping other robots.
+ * To start or stop the robot, send the a json string only containing a "start" or "stop" key with the code as a value.
+ * eg: {"start": 1234} will start the robot with code set to 1234, {"stop": 9876} will stop the robot with code 9876.
*
* @param code A number between 0 and 1000.
*/
