Markus Watko
/
GoToBeeper3
GoToBeeper
Fork of GoToBeeper2 by
Revision 2:08173a84bca6, committed 2015-04-24
- Comitter:
- Markus_Watko
- Date:
- Fri Apr 24 08:15:00 2015 +0000
- Parent:
- 1:0f309ef92d1e
- Commit message:
- GoToBeeper
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Apr 23 12:29:16 2015 +0000 +++ b/main.cpp Fri Apr 24 08:15:00 2015 +0000 @@ -7,17 +7,28 @@ ur_Bertl karel; - for(int i = 0; i > 5; i++) + for(int i = 0; i < 3; i++) { while(!karel.NextToABeeper()) { karel.Move(); } - if(karel.NextToABeeper()) - { + karel.PickBeeper(); karel.NibbleLeds(karel.AnyBeeperInBag()); - } + wait(1); + if(i != 3) + { + while(karel.NextToABeeper()) + { + karel.Move(); + } + } + + if(karel.NextToABeeper && i == 3) + { + karel.TurnLedOn = 0xFF; + } } } \ No newline at end of file