Main repository for dump truck API development in Spring 2017

Dependencies:   Tracker mbed MotorV2 SRF05 nRF24L01P

Fork of DUMP_TRUCK_TEST_V1 by Terrabots

Activities

This Week

If needed, please contact Milo Pan at mpan9@gatech.edu for rights and access to this repository.

Revision:
15:a4bbdde8ed69
Parent:
13:112b6543909a
--- a/main.cpp	Tue Apr 25 05:24:47 2017 +0000
+++ b/main.cpp	Tue Apr 25 20:54:15 2017 +0000
@@ -7,12 +7,16 @@
 to the dump truck.
 */
 
-int main() {   
+Ticker srf;
+
+void avoidCrash() {
+    dump.detect();
+}
+
+int main() {  
+    srf.attach_us(&avoidCrash, 4000); 
     dump.startComms();
+    
     dump.getCommand();
-    /*
-    for(int i = 0; i < dump.rxDataCnt; i++) {
-        pc.putc(dump.rxData[i]);
-    }*/ 
 }