David Hasenhüttl
/
Bertl_ClearAllBeepersToTheWall
Library ur_bertl included
Diff: main.cpp
- Revision:
- 0:f1471503dde5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Apr 24 08:52:06 2015 +0000 @@ -0,0 +1,29 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "const.h" + +class task_Bertl : public ur_Bertl +{ + public: + void ClearAllBeepersToTheWall() + { + while( FrontIsClear()) + { + Move(); + if (NextToABeeper()) + PickBeeper(); + + NibbleLeds(AnyBeeperInBag()); + } + + } +}; + + +int main() +{ + task_Bertl karel; + + karel.ClearAllBeepersToTheWall(); + +} \ No newline at end of file