Library ur_bertl included

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
davidhasenhuettl
Date:
Fri Apr 24 08:52:06 2015 +0000
Commit message:
This Program picks up all the Beepers, until the ultrasonic sensor recognizes a obstacle.

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
diff -r 000000000000 -r f1471503dde5 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Apr 24 08:52:06 2015 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+class task_Bertl : public ur_Bertl
+{
+    public:
+        void ClearAllBeepersToTheWall()
+        {
+            while( FrontIsClear())
+            {
+                Move();
+                if (NextToABeeper())
+                    PickBeeper();
+                    
+                NibbleLeds(AnyBeeperInBag());
+            }
+            
+        }
+};
+
+
+int main() 
+{
+    task_Bertl karel;
+    
+    karel.ClearAllBeepersToTheWall();
+    
+}
\ No newline at end of file
diff -r 000000000000 -r f1471503dde5 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Apr 24 08:52:06 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 f1471503dde5 ur_Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Fri Apr 24 08:52:06 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#207a1e646191