A

Dependencies:   LineFollower Motor mbed

Fork of ASEE-2014 by Bill Bonner

Files at this revision

API Documentation at this revision

Comitter:
cbradford
Date:
Thu Feb 27 01:51:48 2014 +0000
Parent:
4:a31eca56198a
Commit message:
Fixed Motor class, updated main

Changed in this revision

LineFollower.lib Show annotated file Show diff for this revision Revisions of this file
Motor.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r a31eca56198a -r 7ff28bbae7e6 LineFollower.lib
--- a/LineFollower.lib	Thu Feb 27 01:05:51 2014 +0000
+++ b/LineFollower.lib	Thu Feb 27 01:51:48 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/blu12758/code/LineFollower/#7a4179249fa4
+http://mbed.org/users/cbradford/code/LineFollower/#bc54728ca6c8
diff -r a31eca56198a -r 7ff28bbae7e6 Motor.lib
--- a/Motor.lib	Thu Feb 27 01:05:51 2014 +0000
+++ b/Motor.lib	Thu Feb 27 01:51:48 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/simon/code/Motor/#f265e441bcd9
+http://mbed.org/users/cbradford/code/Motor/#7f1fd2d62c72
diff -r a31eca56198a -r 7ff28bbae7e6 main.cpp
--- 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);
     }
 }