Bertl sucht Beeper auf einer Geraden :)

Dependencies:   mbed

Committer:
martinale
Date:
Thu Apr 23 12:40:47 2015 +0000
Revision:
0:55344ddc1f92
Bertl sucht Beeper auf einer Gerade :)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martinale 0:55344ddc1f92 1 #include "mbed.h"
martinale 0:55344ddc1f92 2 #include "ur_Bertl.h"
martinale 0:55344ddc1f92 3 #include "Robot.h"
martinale 0:55344ddc1f92 4
martinale 0:55344ddc1f92 5 int main()
martinale 0:55344ddc1f92 6 {
martinale 0:55344ddc1f92 7 Robot karel;
martinale 0:55344ddc1f92 8
martinale 0:55344ddc1f92 9 while(! karel.NextToABeeper())
martinale 0:55344ddc1f92 10 {
martinale 0:55344ddc1f92 11 karel.Move();
martinale 0:55344ddc1f92 12 }
martinale 0:55344ddc1f92 13
martinale 0:55344ddc1f92 14 /*
martinale 0:55344ddc1f92 15 if(! karel.NextToABeeper())
martinale 0:55344ddc1f92 16 karel.Move();
martinale 0:55344ddc1f92 17 if(! karel.NextToABeeper())
martinale 0:55344ddc1f92 18 karel.Move();
martinale 0:55344ddc1f92 19 if(!karel.NextToABeeper())
martinale 0:55344ddc1f92 20 karel.Move();
martinale 0:55344ddc1f92 21 */
martinale 0:55344ddc1f92 22
martinale 0:55344ddc1f92 23 karel.PickBeeper();
martinale 0:55344ddc1f92 24
martinale 0:55344ddc1f92 25 }
martinale 0:55344ddc1f92 26