Sammelt Beeper ein und NibbelLeds zählen wie viele Beeper in der Tasche sind :)

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
martinale
Date:
Fri Apr 24 08:03:47 2015 +0000
Commit message:
Sammelt Beeper ein und NibbelLeds z?hlen wie viele Beeper in der Tasche sind :)

Changed in this revision

Robot.lib Show annotated file Show diff for this revision Revisions of this file
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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Robot.lib	Fri Apr 24 08:03:47 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#07e55b300ff1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Apr 24 08:03:47 2015 +0000
@@ -0,0 +1,33 @@
+ #include "mbed.h"
+#include "Robot.h"
+#include "const.h"
+
+class Bertl_Beeper : public Robot
+{
+public:
+    void ClearAllBeeperToTheWall();
+};
+
+void Bertl_Beeper :: ClearAllBeeperToTheWall()
+{
+    while(FrontIsClear()) 
+    {
+        if(NextToABeeper())
+        {
+            PickBeeper();  
+            NibbleLeds(AnyBeeperInBag());
+            wait(1);  
+            Move();
+        }
+        else
+            Move();
+    }
+}
+
+int main()
+{
+    Bertl_Beeper karel;
+
+    karel.ClearAllBeeperToTheWall();
+   
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Apr 24 08:03:47 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889
\ No newline at end of file