Verena Haas
/
BERTL_GoToBeeper
move while beeper, pick up beeper
main.cpp@1:18080d6d4866, 2015-04-23 (annotated)
- Committer:
- vhaas
- Date:
- Thu Apr 23 12:07:02 2015 +0000
- Revision:
- 1:18080d6d4866
- Parent:
- 0:c2175b5f3742
BERTL_GoToBeeper
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vhaas | 0:c2175b5f3742 | 1 | #include "mbed.h" |
vhaas | 0:c2175b5f3742 | 2 | #include "ur_Bertl.h" |
vhaas | 0:c2175b5f3742 | 3 | #include "const.h" |
vhaas | 0:c2175b5f3742 | 4 | |
vhaas | 0:c2175b5f3742 | 5 | class IfBertl : public ur_Bertl |
vhaas | 0:c2175b5f3742 | 6 | { |
vhaas | 0:c2175b5f3742 | 7 | public: |
vhaas | 0:c2175b5f3742 | 8 | |
vhaas | 0:c2175b5f3742 | 9 | }; |
vhaas | 0:c2175b5f3742 | 10 | |
vhaas | 0:c2175b5f3742 | 11 | int main() |
vhaas | 0:c2175b5f3742 | 12 | { |
vhaas | 0:c2175b5f3742 | 13 | IfBertl karel; |
vhaas | 0:c2175b5f3742 | 14 | |
vhaas | 1:18080d6d4866 | 15 | while(!karel.NextToABeeper()) |
vhaas | 0:c2175b5f3742 | 16 | karel.Move(); |
vhaas | 0:c2175b5f3742 | 17 | karel.PickBeeper(); |
vhaas | 0:c2175b5f3742 | 18 | } |