M Seiser
/
Bertl_neu_LEd
LED_Programm
If_Task.cpp@0:c4795d964769, 2015-04-16 (annotated)
- Committer:
- mSeiser
- Date:
- Thu Apr 16 11:48:29 2015 +0000
- Revision:
- 0:c4795d964769
LED_BLINKER;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mSeiser | 0:c4795d964769 | 1 | #include "mbed.h" |
mSeiser | 0:c4795d964769 | 2 | #include "ur_Bertl.h" |
mSeiser | 0:c4795d964769 | 3 | #include "If_Task.h" |
mSeiser | 0:c4795d964769 | 4 | |
mSeiser | 0:c4795d964769 | 5 | |
mSeiser | 0:c4795d964769 | 6 | void GamePlayer::CaptureTheBeeper() |
mSeiser | 0:c4795d964769 | 7 | { |
mSeiser | 0:c4795d964769 | 8 | Move(); |
mSeiser | 0:c4795d964769 | 9 | if(NextToABeeper()) |
mSeiser | 0:c4795d964769 | 10 | { |
mSeiser | 0:c4795d964769 | 11 | PickBeeper(); |
mSeiser | 0:c4795d964769 | 12 | TurnAround(); |
mSeiser | 0:c4795d964769 | 13 | } |
mSeiser | 0:c4795d964769 | 14 | Move(); |
mSeiser | 0:c4795d964769 | 15 | } |
mSeiser | 0:c4795d964769 | 16 | void GamePlayer :: TurnAround() |
mSeiser | 0:c4795d964769 | 17 | { |
mSeiser | 0:c4795d964769 | 18 | TurnLeft(); |
mSeiser | 0:c4795d964769 | 19 | TurnLeft(); |
mSeiser | 0:c4795d964769 | 20 | |
mSeiser | 0:c4795d964769 | 21 | } |