David Hasenhüttl
/
Bertl_ClearAllBeepersToTheWall
Library ur_bertl included
Revision 0:f1471503dde5, committed 2015-04-24
- Comitter:
- davidhasenhuettl
- Date:
- Fri Apr 24 08:52:06 2015 +0000
- Commit message:
- This Program picks up all the Beepers, until the ultrasonic sensor recognizes a obstacle.
Changed in this revision
diff -r 000000000000 -r f1471503dde5 main.cpp --- /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
diff -r 000000000000 -r f1471503dde5 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Apr 24 08:52:06 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 f1471503dde5 ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Fri Apr 24 08:52:06 2015 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#207a1e646191