Eimantas Bernotavicius / Mbed 2 deprecated Buggy_Project

Dependencies:   QEI mbed

Revision:
4:48d390356fba
Parent:
3:c9df852ad9ac
diff -r c9df852ad9ac -r 48d390356fba main.cpp
--- a/main.cpp	Wed Feb 21 11:55:29 2018 +0000
+++ b/main.cpp	Thu Feb 22 17:01:00 2018 +0000
@@ -1,20 +1,9 @@
 #include "mbed.h"
 #include "pwm.h"
+#include "control.h"
+
 
 int main(){
-    
     motorSetup();
-while(1){
-    if(joystickCenter == 1){
-    wait(0.5);
-    buggyGoF();
-    wait(2);
-    buggyGoLeft();
-    wait(2);
-    buggyGoRight();
-    wait(2);
-    buggyStop();
+    controlManual(0);
     }
-}
-
-}
\ No newline at end of file