this code is completely restructured, but should do the same thing. did not want to directly commit, since it may not work at all. compiles though.

Dependencies:   AVEncoder mbed-src-AV

Fork of Test by 2015-2016_Mouserat

Revision:
13:5f08195456a4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sensors.h	Tue Dec 15 08:56:36 2015 +0000
@@ -0,0 +1,24 @@
+#ifndef SENSORS_H
+#define SENSORS_H
+
+const float base_RS = 0.2;
+const float base_LS = 0.1;
+const float base_RF = 0.002;
+const float base_LF = 0.15;
+
+const float thresh_LF = 0.3;
+const float thresh_RF = 0.0045; // TODO: CAUTION USING THIS ALONE. 
+
+const float open_left = 0.22;     //calibrate these two
+const float open_right = 0.18;
+const float wall_left = 0;
+const float wall_right = 0;
+
+// MAZE/MOUSE CONSTANTS.
+const int cell_length_count = 2000;
+
+//time to make a 90 degree turn and move forward one cell length, repectively
+//should be replaced with encoder counts
+const float gyro_90 = 0.595;
+
+#endif
\ No newline at end of file