Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Revision:
21:15da49f18c63
Parent:
19:06610e1c0895
Child:
22:7ba09c0af0d0
--- a/globals.h	Mon Apr 30 20:22:06 2012 +0000
+++ b/globals.h	Tue May 01 16:54:44 2012 +0000
@@ -4,11 +4,14 @@
 #include "mbed.h"
 #define PI 3.14159265
 
+
+//#define ROBOT_SECONDARY
+#define STARTLOC_RED
+//#define STARTLOC_BLUE
+
 //enables ui
 #define UION
 
-//#define ROBOT_SECONDARY
-
 #ifdef ROBOT_SECONDARY
 //Secondary Robot constants in mm
 const int robot_width = 260;
@@ -47,7 +50,11 @@
     int x;
     int y;
 };
+#ifdef STARTLOC_RED
 const pos beaconpos[] = {{3000, 1000},{0,0}, {0,2000}};
+#elif STARTLOC_BLUE
+const pos beaconpos[] = {{0, 1000},{3000,2000}, {3000,0}};
+#endif
 
 //System constants
 const int PREDICTPERIOD = 20; //ms