Damian Herman / Mbed 2 deprecated NetrunnerMain

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
overkiller
Date:
Mon Sep 21 11:04:27 2015 +0000
Parent:
6:9eb153e1d472
Commit message:
1st public commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Aug 15 11:47:53 2015 +0000
+++ b/main.cpp	Mon Sep 21 11:04:27 2015 +0000
@@ -21,25 +21,28 @@
 }
 int main()
 {
-    if(initDrivingUnit(1) == 0)
-    {
-        pc.printf("Ready to accept commands.\n\r Netrunner will start moving in 1 second");
-        displayPrompt(&pc);
-    }
-    wait(1);
+   // if(initDrivingUnit(1) == 0)
+//    {
+//        pc.printf("Ready to accept commands.\n\r Netrunner will start moving in 1 second");
+//        displayPrompt(&pc);
+//    }
+//    wait(1);
     while (true) 
     {
-        checkEnableButtonState();
+   //     checkEnableButtonState();
       //  displayMessage("clicks: %f", &pc, buttonClicks);
-        int action = getMenuInput(&pc);
+   //     int action = getMenuInput(&pc);
         actualDistance = getDistance(0);
-        if(actualDistance <= 10)
-        {
-            resetEngines();
-        }else
-        {
-            forward();
-        }
-        applyStates();
+       pc.printf("test\n");
+       pc.printf("%d", actualDistance);
+        wait(1);
+     //   if(actualDistance <= 10)
+//        {
+//            resetEngines();
+//        }else
+//        {
+//            forward();
+//        }
+    //    applyStates();
     }
 }
\ No newline at end of file