Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Revision:
2:cffa347bb943
Parent:
1:bbabbd997d21
Child:
5:7ac07bf30707
--- a/globals.h	Fri Apr 20 21:56:15 2012 +0000
+++ b/globals.h	Thu Apr 26 21:02:12 2012 +0000
@@ -1,21 +1,28 @@
 #ifndef GLOBALS_H
 #define GLOBALS_H
 
+//#define ROBOT_SECONDARY
+
+#ifndef ROBOT_SECONDARY
+#define ROBOT_PRIMARY
+// invert echo polarity for primary
+#define SONAR_ECHO_INV
+#endif
+
 #include "mbed.h"
 
 #define PI 3.14159265
 
 //Robot constants
-const int robot_width = 395;
-const int encoderRevCount = 1856;
-const int wheelmm = 314;
-const int robotCircumference = 1256;
+//const int encoderRevCount = 1856;
+//const int wheelmm = 314;
+//const int robotCircumference = 1256;
 
 //Robot constants in mm
-//const int robot_width = 260;
-//const int encoderRevCount = 360;
-//const int wheelmm = 226;
-//const int robotCircumference = 816;
+const int robot_width = 260;
+const int encoderRevCount = 360;
+const int wheelmm = 226;
+const int robotCircumference = 816;
 
 //Robot movement constants
 const float fwdvarperunit = 0.005; //1 std dev = 7% //NEEDS TO BE MEASURED AGAIN!