Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LineFollower Motor mbed
Fork of ASEE-2014 by
Revision 5:7ff28bbae7e6, committed 2014-02-27
- 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
--- 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
--- 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
--- 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);
}
}
