official library and example code for tracking X and Y positions on the dump truck

Dependencies:   QEI mbed

Dependents:   DUMP_TRUCK_TEST_V1 DUMP_TRUCK_SPR2017

Revision:
1:008116b6eb46
Parent:
0:8038ea3ee241
Child:
3:eb8680da1721
--- a/Tracker.cpp	Thu Jan 26 20:06:55 2017 +0000
+++ b/Tracker.cpp	Thu Jan 26 20:16:25 2017 +0000
@@ -12,6 +12,24 @@
     db = 4.25;                                          // distance from pivot to back wheel
 }
 
+/*
+// Example Code
+#include "mbed.h"
+#include "Tracker.h"
+ 
+Tracker foo(p29, p30, p15);
+ 
+int main() {
+    foo.clear();
+    foo.potSetup();
+    foo.setDirection();
+    foo.checkToStart();
+    while(true) {
+        foo.calcDisplacement();
+    }
+}
+*/
+
 /*Tracker::~Tracker()
 {
     if(wheel != NULL) {