Verena Haas / Mbed 2 deprecated BERTL_BackToStart

Dependencies:   mbed ur_Bertl

Files at this revision

API Documentation at this revision

Comitter:
vhaas
Date:
Thu May 07 12:19:15 2015 +0000
Commit message:
GoToBeeper

Changed in this revision

BackToStart.cpp Show annotated file Show diff for this revision Revisions of this file
BackToStart.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 e3cc5b79096b BackToStart.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BackToStart.cpp	Thu May 07 12:19:15 2015 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "BackToStart.h"
+#include "const.h"
+
+void BackToStart :: GoToBeeper()
+{
+    int i=0;
+    while(FrontIsClear()) 
+    {
+        if(NextToABeeper()) 
+        {
+            PickBeeper();
+            NibbleLeds(AnyBeeperInBag());
+            wait(1);
+        }
+        Move();
+        i++;
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r e3cc5b79096b BackToStart.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BackToStart.h	Thu May 07 12:19:15 2015 +0000
@@ -0,0 +1,10 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+class BackToStart : public ur_Bertl
+{
+public:
+
+    void GoToBeeper();
+};
\ No newline at end of file
diff -r 000000000000 -r e3cc5b79096b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu May 07 12:19:15 2015 +0000
@@ -0,0 +1,10 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "BackToStart.h"
+#include "const.h"
+
+void main()
+{
+    BackToStart karel;
+    karel.GoToBeeper();   
+}
\ No newline at end of file
diff -r 000000000000 -r e3cc5b79096b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu May 07 12:19:15 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058
\ No newline at end of file
diff -r 000000000000 -r e3cc5b79096b ur_Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Thu May 07 12:19:15 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#3ce84646fd74