Michael Benedikt
/
BertlSchleifen
Bertl_Schleifen
Revision 0:10319cfc956d, committed 2015-05-08
- Comitter:
- zwiebelturm100
- Date:
- Fri May 08 08:00:59 2015 +0000
- Commit message:
- Bertl_Schleifen
Changed in this revision
diff -r 000000000000 -r 10319cfc956d BertlSchleifen.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BertlSchleifen.cpp Fri May 08 08:00:59 2015 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "BertlSchleifen.h" + + + +void BertlSchleifen :: ClearAllBeepersToTheWall() +{ + + + while (FrontIsClear()) + { + Move(); + + if(NextToABeeper()) + { + PickBeeper(); + NibbleLeds(AnyBeeperInBag()); + + } + + } + +} \ No newline at end of file
diff -r 000000000000 -r 10319cfc956d BertlSchleifen.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BertlSchleifen.h Fri May 08 08:00:59 2015 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" +#include "ur_Bertl.h" + + +class BertlSchleifen : public ur_Bertl +{ +public: + void ClearAllBeepersToTheWall(); + +}; \ No newline at end of file
diff -r 000000000000 -r 10319cfc956d main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 08 08:00:59 2015 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "BertlSchleifen.h" + +int main() +{ + BertlSchleifen karel; + + karel.ClearAllBeepersToTheWall(); + return 0; +} \ No newline at end of file
diff -r 000000000000 -r 10319cfc956d mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 08 08:00:59 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889 \ No newline at end of file
diff -r 000000000000 -r 10319cfc956d ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Fri May 08 08:00:59 2015 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#07e55b300ff1