test program

Dependencies:   LSM9DS1_Library2 MotorV2 SRF05 Tracker2 mbed nRF24L01P

Fork of DUMP_TRUCK_SPR2017 by Terrabots

Committer:
simplyellow
Date:
Thu Apr 13 17:32:44 2017 +0000
Revision:
13:112b6543909a
Parent:
11:87f30625b213
Child:
14:192e103d5246
.

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
simplyellow 13:112b6543909a 10 int main() {
simplyellow 13:112b6543909a 11 dump.startComms();
simplyellow 13:112b6543909a 12 dump.getCommand();
simplyellow 13:112b6543909a 13 /*
simplyellow 13:112b6543909a 14 for(int i = 0; i < dump.rxDataCnt; i++) {
simplyellow 13:112b6543909a 15 pc.putc(dump.rxData[i]);
simplyellow 13:112b6543909a 16 }*/
simplyellow 5:dc4cf6cc24b3 17 }
simplyellow 11:87f30625b213 18