Aufgabe Wiederholungsanweisung

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
matthiasdorudi
Date:
Thu Apr 23 12:49:11 2015 +0000
Commit message:
Aufgabe Wiederholungsanweisung

Changed in this revision

ClearBeepersToWall.h Show annotated file Show diff for this revision Revisions of this file
ClearbeepersToWall.cpp 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 e0e97c83754e ClearBeepersToWall.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ClearBeepersToWall.h	Thu Apr 23 12:49:11 2015 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+#include "const.h"
+#include "ur_Bertl.h"
+
+#ifndef CLEARBEEPERSTOWALL
+#define CLEARBEEPERSTOWALL
+
+class ClearBeeperToWall : public ur_Bertl{
+    public:
+    void ClearAllBeepersToWall();
+};
+#endif
\ No newline at end of file
diff -r 000000000000 -r e0e97c83754e ClearbeepersToWall.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ClearbeepersToWall.cpp	Thu Apr 23 12:49:11 2015 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "const.h"
+#include "ur_Bertl.h"
+#include "ClearBeepersToWall.h"
+
+void ClearBeeperToWall :: ClearAllBeepersToWall(){
+    
+    while(FrontIsClear()) {
+        Move();
+
+        if(NextToABeeper()) {
+            PickBeeper();
+            NibbleLeds(AnyBeeperInBag());
+        }
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r e0e97c83754e main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 23 12:49:11 2015 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "const.h"
+#include "ClearBeepersToWall.h"
+
+int main(){
+
+    ClearBeeperToWall tom;
+    
+    tom.ClearAllBeepersToWall();
+    
+}
diff -r 000000000000 -r e0e97c83754e mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 23 12:49:11 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0
\ No newline at end of file
diff -r 000000000000 -r e0e97c83754e ur_Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Thu Apr 23 12:49:11 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#07e55b300ff1