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:4a495b04cc0f, committed 2015-04-17
- Comitter:
- matthiasdorudi
- Date:
- Fri Apr 17 08:40:59 2015 +0000
- Commit message:
- IF_Task3
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl_Task3.cpp Fri Apr 17 08:40:59 2015 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "const.h"
+#include "ur_Bertl.h"
+#include "Bertl_Task3.h"
+
+bool Bertl_Task3 :: RightIsClear(){
+ bool clear;
+ TurnLeft();
+ TurnLeft();
+ TurnLeft();
+
+ clear = FrontIsClear();
+
+ TurnLeft();
+
+ return clear;
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl_Task3.h Fri Apr 17 08:40:59 2015 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+#include "const.h"
+#include "ur_Bertl.h"
+
+#ifndef BERTL_TASK3
+#define BERTL_TASK3
+
+class Bertl_Task3 : public ur_Bertl{
+ public:
+ bool RightIsClear();
+};
+#endif
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Apr 17 08:40:59 2015 +0000
@@ -0,0 +1,17 @@
+#include "ur_Bertl.h"
+#include "const.h"
+#include "mbed.h"
+#include "Bertl_Task3.h"
+
+int main(){
+ Bertl_Task3 Tom; //Benennen
+
+ Tom.Move();
+
+ if (Tom.RightIsClear()){
+ Tom.Move();
+ }
+ else
+ Tom.ShutOff();
+
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Apr 17 08:40:59 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 Fri Apr 17 08:40:59 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#e7f74f072564