Test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Pouter123
Date:
Thu Apr 16 11:47:08 2015 +0000
Commit message:
Test

Changed in this revision

Task6_Bertl.cpp Show annotated file Show diff for this revision Revisions of this file
Task6_Bertl.h Show annotated file Show diff for this revision Revisions of this file
Task7_Bertl.cpp Show annotated file Show diff for this revision Revisions of this file
Task7_Bertl.h Show annotated file Show diff for this revision Revisions of this file
Task8_Bertl.cpp Show annotated file Show diff for this revision Revisions of this file
Task8_Bertl.h Show annotated file Show diff for this revision Revisions of this file
Task9_Bertl.cpp Show annotated file Show diff for this revision Revisions of this file
Task9_Bertl.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/Task6_Bertl.cpp	Thu Apr 16 11:47:08 2015 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+#include "Task6_Bertl.h"
+
+void Task6_Bertl :: Move4Boxes()
+{
+    Move();
+    Move();
+    Move();
+    Move();
+}
+
+
+void Task6_Bertl :: Move2Boxes()
+{
+    Move();
+    Move();
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Task6_Bertl.h	Thu Apr 16 11:47:08 2015 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+#ifndef TASK6_BERTL_H
+#define TASK6_BERTL_H
+
+class Task6_Bertl : public ur_Bertl
+{
+public:
+    void Move4Boxes();
+    void Move2Boxes();
+    
+    
+};
+
+#endif
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Task7_Bertl.cpp	Thu Apr 16 11:47:08 2015 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "Task6_Bertl.h"
+#include "ur_Bertl.h"
+#include "const.h"
+#include "Task7_Bertl.h"
+
+
+void Task7_Bertl :: TurnAround()
+{
+    TurnLeft();
+    TurnLeft();
+    
+}
+    
+void Task7_Bertl :: Move2Boxes()
+{
+    Move();
+    Move();
+}
+
+void Task7_Bertl :: TurnRight()
+{
+    TurnLeft();
+    TurnLeft();
+    TurnLeft();
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Task7_Bertl.h	Thu Apr 16 11:47:08 2015 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "Task6_Bertl.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+#ifndef TASK7_BERTL_H
+#define TASK7_BERTL_H
+
+class Task7_Bertl : public Task6_Bertl
+{
+    public:
+    void TurnAround();
+    void Move2Boxes();
+    void TurnRight();
+    
+};
+
+#endif
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Task8_Bertl.cpp	Thu Apr 16 11:47:08 2015 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "Task6_Bertl.h"
+#include "Task7_Bertl.h"
+#include "Task8_Bertl.h"
+#include "const.h"
+
+void Task8_Bertl :: TurnLeftBlink()
+{
+     TurnLedOn(0xA9);
+     wait(500);
+     TurnLedOff(0xA9);
+     wait(500);
+     TurnLedOn(0xA9);
+     wait(500);
+     TurnLedOff(0xA9);
+     TurnLeft();
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Task8_Bertl.h	Thu Apr 16 11:47:08 2015 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "Task6_Bertl.h"
+#include "Task7_Bertl.h"
+#include "const.h"
+
+#ifndef TASK8_BERTL_H
+#define TASK8_BERTL_H
+
+class Task8_Bertl : public Task7_Bertl
+{
+    public:
+    void TurnLeftBlink();
+    
+};
+
+#endif
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Task9_Bertl.cpp	Thu Apr 16 11:47:08 2015 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "Task6_Bertl.h"
+#include "Task7_Bertl.h"
+#include "Task8_Bertl.h"
+#include "Task9_Bertl.h"
+#include "const.h"
+
+void Task9_Bertl :: TurnRightBlink()
+{
+     TurnLedOn(0xA9);
+     wait(500);
+     TurnLedOff(0xA9);
+     wait(500);
+     TurnLedOn(0xA9);
+     wait(500);
+     TurnLedOff(0xA9);
+     TurnLeft();
+     TurnLeft();
+     TurnLeft();
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Task9_Bertl.h	Thu Apr 16 11:47:08 2015 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "Task6_Bertl.h"
+#include "Task7_Bertl.h"
+#include "Task8_Bertl.h"
+#include "const.h"
+
+#ifndef TASK9_BERTL_H
+#define TASK9_BERTL_H
+
+class Task9_Bertl : public Task8_Bertl
+{
+public:
+    void TurnRightBlink();
+    
+};
+
+#endif
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 16 11:47:08 2015 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+#include "Task6_Bertl.h"
+#include "Task7_Bertl.h"
+#include "Task8_Bertl.h"
+#include "Task9_Bertl.h"
+#include "const.h"
+
+
+int main() 
+{
+   Task9_Bertl karel;
+   
+   
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 16 11:47:08 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:47:08 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#01b183fe8b41