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:e3cc5b79096b, committed 2015-05-07
- Comitter:
- vhaas
- Date:
- Thu May 07 12:19:15 2015 +0000
- Commit message:
- GoToBeeper
Changed in this revision
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