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: mbed
main.cpp@0:4a0b987c5c94, 2018-04-27 (annotated)
- Committer:
- Alexander_Zuest
- Date:
- Fri Apr 27 12:30:38 2018 +0000
- Revision:
- 0:4a0b987c5c94
- Child:
- 2:cb6bae534500
Base Version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Alexander_Zuest | 0:4a0b987c5c94 | 1 | #include "mbed.h" |
Alexander_Zuest | 0:4a0b987c5c94 | 2 | #include "Controller.h" |
Alexander_Zuest | 0:4a0b987c5c94 | 3 | #include "MotorDriver.h" |
Alexander_Zuest | 0:4a0b987c5c94 | 4 | #include "ReadFinalLine.h" |
Alexander_Zuest | 0:4a0b987c5c94 | 5 | #include "ReadSensor.h" |
Alexander_Zuest | 0:4a0b987c5c94 | 6 | #include "Mapping.h" |
Alexander_Zuest | 0:4a0b987c5c94 | 7 | #include "AutoDrive.h" |
Alexander_Zuest | 0:4a0b987c5c94 | 8 | #include "RouteCalculation.h" |
Alexander_Zuest | 0:4a0b987c5c94 | 9 | |
Alexander_Zuest | 0:4a0b987c5c94 | 10 | |
Alexander_Zuest | 0:4a0b987c5c94 | 11 | int answer; |
Alexander_Zuest | 0:4a0b987c5c94 | 12 | |
Alexander_Zuest | 0:4a0b987c5c94 | 13 | int main() |
Alexander_Zuest | 0:4a0b987c5c94 | 14 | { |
Alexander_Zuest | 0:4a0b987c5c94 | 15 | startup(); |
Alexander_Zuest | 0:4a0b987c5c94 | 16 | /*while(1) |
Alexander_Zuest | 0:4a0b987c5c94 | 17 | { |
Alexander_Zuest | 0:4a0b987c5c94 | 18 | |
Alexander_Zuest | 0:4a0b987c5c94 | 19 | printf("%f\n", ReadSensorValue(1)); |
Alexander_Zuest | 0:4a0b987c5c94 | 20 | }*/ |
Alexander_Zuest | 0:4a0b987c5c94 | 21 | |
Alexander_Zuest | 0:4a0b987c5c94 | 22 | /* |
Alexander_Zuest | 0:4a0b987c5c94 | 23 | while(1){ |
Alexander_Zuest | 0:4a0b987c5c94 | 24 | driveOne(3,2); |
Alexander_Zuest | 0:4a0b987c5c94 | 25 | wait(1); |
Alexander_Zuest | 0:4a0b987c5c94 | 26 | turnRight(1); |
Alexander_Zuest | 0:4a0b987c5c94 | 27 | turnRight(1); |
Alexander_Zuest | 0:4a0b987c5c94 | 28 | } |
Alexander_Zuest | 0:4a0b987c5c94 | 29 | */ |
Alexander_Zuest | 0:4a0b987c5c94 | 30 | mapping(); |
Alexander_Zuest | 0:4a0b987c5c94 | 31 | |
Alexander_Zuest | 0:4a0b987c5c94 | 32 | } |
Alexander_Zuest | 0:4a0b987c5c94 | 33 |