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:
3:eb8680da1721
Parent:
1:008116b6eb46
Child:
4:c38c00a6588c
--- a/Tracker.cpp	Thu Jan 26 20:31:52 2017 +0000
+++ b/Tracker.cpp	Thu Jan 26 21:02:05 2017 +0000
@@ -3,7 +3,7 @@
 Tracker::Tracker(PinName _chA, PinName _chB, PinName _pot) : chA(_chA), chB(_chB), pot(_pot)
 {
     //chA = p29, chB = p30, pot = p15
-    wheel = new QEI(_chA, _chB, NC, 128, QEI::X4_ENCODING);   //orange, yellow wires, VU 5 VOLTS, BOTTOM 2x2 pins on WW02
+    wheel = new QEI(chA, chB, NC, 128, QEI::X4_ENCODING);   //orange, yellow wires, VU 5 VOLTS, BOTTOM 2x2 pins on WW02
     encoding = 2;                                       // X2 encoding
     circumference = 13.25;                              // circumference of wheel
     constant = 1360;                                    // obtained from tests