Zurück zum Start

Dependencies:   mbed ur_Bertl

Files at this revision

API Documentation at this revision

Comitter:
Alexander400
Date:
Fri May 08 07:36:59 2015 +0000
Commit message:
Zur?ck zum Start

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 08 07:36:59 2015 +0000
@@ -0,0 +1,34 @@
+
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+ 
+ 
+Serial bt(p9, p10);
+ 
+int main ()
+{
+    ur_Bertl karel;
+    int beeper = 0;
+     while(!karel.IsButtonPressed(BTN_FM))
+    {
+         while(!karel.NextToABeeper())
+        {
+            karel.Move();
+        }
+        beeper++;
+        bt.printf("Beeper: %d", beeper);
+        
+        karel.Move();
+    }
+    
+    karel.TurnLeft();
+    
+    for (int a = 0; a < beeper; a++)
+        {
+            karel.Move();
+        }
+        
+    karel.TurnLeft();
+}
+            
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri May 08 07:36:59 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Fri May 08 07:36:59 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#155ce3832f01