A

Dependencies:   LineFollower Motor mbed

Fork of ASEE-2014 by Bill Bonner

Revision:
5:7ff28bbae7e6
Parent:
2:0ab3dce54b64
--- a/main.cpp	Thu Feb 27 01:05:51 2014 +0000
+++ b/main.cpp	Thu Feb 27 01:51:48 2014 +0000
@@ -1,17 +1,15 @@
 #include "mbed.h"
 
 /* Global Variables */
-Linefollower frontarray(PTE5,PTE4,PTE3,PTE2,PTB11,PTB10,PTB9,PTB8);
+LineFollower frontarray(PTE5,PTE4,PTE3,PTE2,PTB11,PTB10,PTB9,PTB8);
 DigitalOut myled(LED1);
-
+Motor motorL(PTD4, PTA12);
+Motor motorR(PTA4, PTA6); //Looks like a 6, might be a 5?
 /* Driver methods */
 
 
 int main() {
-    while(1) {
-        myled = 1;
-        wait(0.2);
-        myled = 0;
-        wait(0.2);
+    while(true){
+        frontArray.followLine(motorL, motorR);
     }
 }