Markus Watko
/
GoToBeeper
GoToBeeper
Revision 0:6e9ea56b10d9, committed 2015-04-23
- Comitter:
- Markus_Watko
- Date:
- Thu Apr 23 12:03:31 2015 +0000
- Commit message:
- GoToBeeper
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 23 12:03:31 2015 +0000 @@ -0,0 +1,36 @@ +#include "mbed.h" +#include "ur_Bertl.h" + + +int main() +{ + ur_Bertl karel; + + /* if(!karel.NextToABeeper()) + { + karel.Move(); + } + + if(!karel.NextToABeeper()) + { + karel.Move(); + } + + if(!karel.NextToABeeper()) + { + karel.Move(); + } + + karel.PickBeeper(); + */ + + while(!karel.NextToABeeper()) + { + karel.Move(); + } + + if(karel.NextToABeeper()) + { + karel.PickBeeper(); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 23 12:03:31 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889 \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Thu Apr 23 12:03:31 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#07e55b300ff1