Bertl moves picks the beepers in the corners and gets out of the room.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mSeiser
Date:
Thu Apr 23 12:06:05 2015 +0000
Commit message:
Move , PickBeeper and Turn;

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
task_Bertl.cpp Show annotated file Show diff for this revision Revisions of this file
task_Bertl.h 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
diff -r 000000000000 -r 339f000abe3a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 23 12:06:05 2015 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "task_Bertl.h"
+
+int main()
+{
+    Task_Bertl robot;
+    
+    robot.MovePickTurn();
+    robot.MovePickTurn();
+    robot.Move();
+    robot.TurnRight();
+    robot.Move2Boxes();
+    robot.ShutOff();
+    
+    
+    
+}
\ No newline at end of file
diff -r 000000000000 -r 339f000abe3a mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 23 12:06:05 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0
\ No newline at end of file
diff -r 000000000000 -r 339f000abe3a task_Bertl.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/task_Bertl.cpp	Thu Apr 23 12:06:05 2015 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "task_Bertl.h"
+
+void Task_Bertl :: MovePickTurn()
+{
+    Move2Boxes();
+    PickBeeper();
+    TurnLeft();
+    
+}
+void Task_Bertl :: Move2Boxes()
+{
+    Move();
+    Move();
+    
+}
+void Task_Bertl :: TurnRight()
+{
+    TurnLeft();
+    TurnLeft();
+    TurnLeft();
+}
\ No newline at end of file
diff -r 000000000000 -r 339f000abe3a task_Bertl.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/task_Bertl.h	Thu Apr 23 12:06:05 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+
+#ifndef TASK_BERTL_H
+#define TASK_BERTL_H
+
+class Task_Bertl : public ur_Bertl
+{
+    public:
+        void MovePickTurn();
+        void Move2Boxes();
+        void TurnRight();
+    
+};
+#endif
\ No newline at end of file
diff -r 000000000000 -r 339f000abe3a ur_Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Thu Apr 23 12:06:05 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#76acfddc26fb