Pick Beepers until Facing South Wall

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mSeiser
Date:
Fri Apr 24 08:07:27 2015 +0000
Commit message:
Sammelt Beeper auf bis zur Wand

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
ur_Bertl.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Apr 24 08:07:27 2015 +0000
@@ -0,0 +1,41 @@
+#include "mbed.h"
+#include "Robot.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+
+class NewClass : public ur_Bertl
+{
+    public:
+     void ClearAllBeepersToTheWall();
+    
+    
+};
+
+void NewClass :: ClearAllBeepersToTheWall()
+{
+     while(FrontIsClear())
+     {
+         
+         if(NextToABeeper())
+            {
+                PickBeeper();
+                NibbleLeds(AnyBeeperInBag());
+                wait(0.5);
+                Move();
+            }
+        else
+         Move();
+     
+     }
+       
+}
+
+
+int main()
+{
+    NewClass karel;
+    
+    karel.ClearAllBeepersToTheWall();       
+    
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Apr 24 08:07:27 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	Fri Apr 24 08:07:27 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#07e55b300ff1