A
Dependencies: LineFollower Motor mbed
Fork of ASEE-2014 by
main.cpp@5:7ff28bbae7e6, 2014-02-27 (annotated)
- Committer:
- cbradford
- Date:
- Thu Feb 27 01:51:48 2014 +0000
- Revision:
- 5:7ff28bbae7e6
- Parent:
- 2:0ab3dce54b64
Fixed Motor class, updated main
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
blu12758 | 0:0f66f94032be | 1 | #include "mbed.h" |
blu12758 | 0:0f66f94032be | 2 | |
blu12758 | 2:0ab3dce54b64 | 3 | /* Global Variables */ |
cbradford | 5:7ff28bbae7e6 | 4 | LineFollower frontarray(PTE5,PTE4,PTE3,PTE2,PTB11,PTB10,PTB9,PTB8); |
blu12758 | 0:0f66f94032be | 5 | DigitalOut myled(LED1); |
cbradford | 5:7ff28bbae7e6 | 6 | Motor motorL(PTD4, PTA12); |
cbradford | 5:7ff28bbae7e6 | 7 | Motor motorR(PTA4, PTA6); //Looks like a 6, might be a 5? |
blu12758 | 2:0ab3dce54b64 | 8 | /* Driver methods */ |
blu12758 | 2:0ab3dce54b64 | 9 | |
blu12758 | 2:0ab3dce54b64 | 10 | |
blu12758 | 0:0f66f94032be | 11 | int main() { |
cbradford | 5:7ff28bbae7e6 | 12 | while(true){ |
cbradford | 5:7ff28bbae7e6 | 13 | frontArray.followLine(motorL, motorR); |
blu12758 | 0:0f66f94032be | 14 | } |
blu12758 | 0:0f66f94032be | 15 | } |