zum Beeper fahren

Dependencies:   mbed

Committer:
Dominik32
Date:
Thu Apr 23 12:33:34 2015 +0000
Revision:
2:0e1b409ff333
Parent:
1:5bcd7fd92f60
Liniensensor Versuch 1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Dominik32 0:363abd3fc535 1 #include "mbed.h"
Dominik32 0:363abd3fc535 2 #include "ur_Bertl.h"
Dominik32 0:363abd3fc535 3 #include "const.h"
Dominik32 0:363abd3fc535 4 #include "Alle_Befehle.h"
Dominik32 0:363abd3fc535 5
Dominik32 1:5bcd7fd92f60 6
Dominik32 1:5bcd7fd92f60 7
Dominik32 1:5bcd7fd92f60 8
Dominik32 1:5bcd7fd92f60 9
Dominik32 1:5bcd7fd92f60 10
Dominik32 0:363abd3fc535 11 int main()
Dominik32 0:363abd3fc535 12 {
Dominik32 1:5bcd7fd92f60 13 ur_Bertl karel;
Dominik32 0:363abd3fc535 14
Dominik32 2:0e1b409ff333 15 while(1)
Dominik32 0:363abd3fc535 16 {
Dominik32 2:0e1b409ff333 17 while(karel.NextToABeeper())
Dominik32 2:0e1b409ff333 18 {
Dominik32 2:0e1b409ff333 19 karel.Move();
Dominik32 1:5bcd7fd92f60 20 }
Dominik32 2:0e1b409ff333 21 karel.MoveBackwards();
Dominik32 2:0e1b409ff333 22 karel.TurnLeft();
Dominik32 2:0e1b409ff333 23
Dominik32 2:0e1b409ff333 24 }
Dominik32 2:0e1b409ff333 25
Dominik32 2:0e1b409ff333 26 }
Dominik32 0:363abd3fc535 27
Dominik32 2:0e1b409ff333 28
Dominik32 2:0e1b409ff333 29
Dominik32 2:0e1b409ff333 30
Dominik32 2:0e1b409ff333 31
Dominik32 2:0e1b409ff333 32