Dominik Weiss / Mbed 2 deprecated Beeper_Test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Dominik32
Date:
Thu Apr 16 11:54:02 2015 +0000
Child:
1:5bcd7fd92f60
Commit message:
Test_2

Changed in this revision

Alle_Befehle.cpp Show annotated file Show diff for this revision Revisions of this file
Alle_Befehle.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Alle_Befehle.cpp	Thu Apr 16 11:54:02 2015 +0000
@@ -0,0 +1,35 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+#include "Alle_Befehle.h"
+
+void Alle_Befehle :: TurnRight()
+{
+    TurnLeft();
+    TurnLeft();
+    TurnLeft();
+}
+void Alle_Befehle :: TurnAround()
+{
+    TurnLeft();
+    TurnLeft();
+}
+void Alle_Befehle :: Move2Times()
+{
+    Move();
+    Move();
+}
+void Alle_Befehle :: Move4Times()
+{
+    Move();
+    Move();
+    Move();
+    Move();
+}
+void Alle_Befehle :: FullRotation()
+{
+    TurnLeft();
+    TurnLeft();
+    TurnLeft();
+    TurnLeft();
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Alle_Befehle.h	Thu Apr 16 11:54:02 2015 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+#ifndef ALLE_BEFEHLE_H
+#define ALLE_BEFEHLE_H
+
+class Alle_Befehle : public ur_Bertl
+{
+      public:
+                void TurnRight();
+                void TurnAround();
+                void Move2Times();
+                void Move4Times();
+                void FullRotation();
+};
+#endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 16 11:54:02 2015 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+#include "Alle_Befehle.h"
+
+int main()
+{
+    Alle_Befehle_bertl  karel;
+    
+    for (int x = 0; x < 10; x++) 
+    {
+       
+       
+        if( karel.IsButtonPressed(BTN_FLL || BTN_FL || BTN_FM || BTN_FR || BTN_FRR || BTN_BL || BTN_BM || BTN_BR))
+            karel.TurnLeft();
+
+        
+        karel.Move();
+
+    }
+    
+    karel.ShutOff();
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 16 11:54:02 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Thu Apr 16 11:54:02 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/teams/BULME_BERTL_2CHEL/code/ur_Bertl/#66e9a0afcbd6