Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:363abd3fc535, committed 2015-04-16
- Comitter:
- Dominik32
- Date:
- Thu Apr 16 11:54:02 2015 +0000
- Child:
- 1:5bcd7fd92f60
- Commit message:
- Test_2
Changed in this revision
--- /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