Racing Robots Session

Dependencies:   m3pi mbed

Fork of racing_robots by Nico De Witte

Revision:
8:597ce8a7d34b
Parent:
7:a72215b1910b
Child:
9:0385d1bfc38b
--- a/robot_logic.h	Wed Feb 25 15:56:14 2015 +0000
+++ b/robot_logic.h	Mon Jun 01 14:47:32 2015 +0000
@@ -109,4 +109,18 @@
  */
 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
+ *
+ * @param code A number between 0 and 1000.
+ */
+void setCode(int code);
+
+/**
+ * Use this method if you need to know if something (eg: Xbee) is preventing the robot from driving
+ * 
+ * @return Boolean true if the robot can drive, false if the robot cannot drive
+ */
+int canDrive();
+
 #endif
\ No newline at end of file