Bertl_Schleifen

Dependencies:   mbed ur_Bertl

Files at this revision

API Documentation at this revision

Comitter:
zwiebelturm100
Date:
Fri May 08 08:00:59 2015 +0000
Commit message:
Bertl_Schleifen

Changed in this revision

BertlSchleifen.cpp Show annotated file Show diff for this revision Revisions of this file
BertlSchleifen.h 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
ur_Bertl.lib Show annotated file Show diff for this revision Revisions of this file
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