Grundfunktionen für Micromouse
Dependencies: AutomationElements mbed
Diff: main.cpp
- Revision:
- 1:4808f55970e8
- Parent:
- 0:e38b500d6e74
--- a/main.cpp Thu Apr 19 11:31:49 2018 +0000 +++ b/main.cpp Sun Apr 22 09:55:40 2018 +0000 @@ -5,12 +5,23 @@ #include "ReadSensor.h" -DigitalOut myled(LED2); + int answer; int main() { startup(); - while(1) { + /*while(1) + { + + printf("%f\n", ReadSensorValue(1)); + }*/ + + while(1){ + driveOne(3,2); + wait(1); + turnRight(1); + turnRight(1); } } +