![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
GoToBeeper
Fork of GoToBeeper2 by
main.cpp@1:0f309ef92d1e, 2015-04-23 (annotated)
- Committer:
- Markus_Watko
- Date:
- Thu Apr 23 12:29:16 2015 +0000
- Revision:
- 1:0f309ef92d1e
- Parent:
- 0:6e9ea56b10d9
- Child:
- 2:08173a84bca6
GoToBeeper;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Markus_Watko | 0:6e9ea56b10d9 | 1 | #include "mbed.h" |
Markus_Watko | 0:6e9ea56b10d9 | 2 | #include "ur_Bertl.h" |
Markus_Watko | 0:6e9ea56b10d9 | 3 | |
Markus_Watko | 0:6e9ea56b10d9 | 4 | |
Markus_Watko | 0:6e9ea56b10d9 | 5 | int main() |
Markus_Watko | 0:6e9ea56b10d9 | 6 | { |
Markus_Watko | 0:6e9ea56b10d9 | 7 | ur_Bertl karel; |
Markus_Watko | 0:6e9ea56b10d9 | 8 | |
Markus_Watko | 1:0f309ef92d1e | 9 | |
Markus_Watko | 1:0f309ef92d1e | 10 | for(int i = 0; i > 5; i++) |
Markus_Watko | 0:6e9ea56b10d9 | 11 | { |
Markus_Watko | 1:0f309ef92d1e | 12 | while(!karel.NextToABeeper()) |
Markus_Watko | 1:0f309ef92d1e | 13 | { |
Markus_Watko | 1:0f309ef92d1e | 14 | karel.Move(); |
Markus_Watko | 1:0f309ef92d1e | 15 | } |
Markus_Watko | 1:0f309ef92d1e | 16 | |
Markus_Watko | 1:0f309ef92d1e | 17 | if(karel.NextToABeeper()) |
Markus_Watko | 1:0f309ef92d1e | 18 | { |
Markus_Watko | 1:0f309ef92d1e | 19 | karel.PickBeeper(); |
Markus_Watko | 1:0f309ef92d1e | 20 | karel.NibbleLeds(karel.AnyBeeperInBag()); |
Markus_Watko | 1:0f309ef92d1e | 21 | } |
Markus_Watko | 0:6e9ea56b10d9 | 22 | } |
Markus_Watko | 0:6e9ea56b10d9 | 23 | } |