test program

Dependencies:   LSM9DS1_Library2 MotorV2 SRF05 Tracker2 mbed nRF24L01P

Fork of DUMP_TRUCK_SPR2017 by Terrabots

Committer:
jcallahan1
Date:
Sun Apr 23 18:59:43 2017 +0000
Revision:
14:192e103d5246
Parent:
13:112b6543909a
Test for dump truck

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simplyellow 10:cf77da9be0b8 1 #include "DumpTruck.h"
simplyellow 10:cf77da9be0b8 2 DumpTruck dump(1);
simplyellow 13:112b6543909a 3 Serial pc(USBTX, USBRX);
Josahty 0:6942f0e2198c 4
simplyellow 10:cf77da9be0b8 5 /*
simplyellow 10:cf77da9be0b8 6 test code for driving and stopping when an object gets too close
simplyellow 10:cf77da9be0b8 7 to the dump truck.
simplyellow 10:cf77da9be0b8 8 */
simplyellow 5:dc4cf6cc24b3 9
jcallahan1 14:192e103d5246 10 int main() {
jcallahan1 14:192e103d5246 11 dump.driveDistance(5,6);
jcallahan1 14:192e103d5246 12 // dump.startComms();
jcallahan1 14:192e103d5246 13 // dump.getCommand();
simplyellow 13:112b6543909a 14 /*
simplyellow 13:112b6543909a 15 for(int i = 0; i < dump.rxDataCnt; i++) {
simplyellow 13:112b6543909a 16 pc.putc(dump.rxData[i]);
simplyellow 13:112b6543909a 17 }*/
simplyellow 5:dc4cf6cc24b3 18 }
simplyellow 11:87f30625b213 19