David's line following code from the LVBots competition, 2015.

Dependencies:   GeneralDebouncer Pacer PololuEncoder mbed

Fork of DeadReckoning by David Grayson

Revision:
46:f11cb4f93aac
Parent:
37:23000a47ed2b
Child:
47:cb5c1504c24d
--- a/logger.cpp	Wed Apr 15 19:19:19 2015 +0000
+++ b/logger.cpp	Wed Apr 15 21:19:22 2015 +0000
@@ -24,8 +24,7 @@
     LogEntry * entry = &entries[entryIndex];
     entryIndex++;
     
-    //entry->cos = reckoner.cos >> 16;
-    //entry->sin = reckoner.sin >> 16;
+    entry->turnAngle = 0;
     entry->x = reckoner.x >> 16;
     entry->y = reckoner.y >> 16;
 }
@@ -36,7 +35,7 @@
     for(int32_t i = 0; i < entryIndex; i++)
     {
         LogEntry * entry = &entries[i];
-        pc.printf("%d,%d\r\n", entry->x, entry->y);
+        pc.printf("%d,%d\r\n", entry->turnAngle, entry->x, entry->y);
     }
     pc.printf("Log dump end\r\n");
 }
\ No newline at end of file