Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Files at this revision

API Documentation at this revision

Comitter:
narshu
Date:
Mon Apr 30 20:15:43 2012 +0000
Parent:
18:6583ea604eb4
Child:
20:0c3f320e477a
Commit message:
Changed move speed and AI targets

Changed in this revision

Eurobot_shared.lib Show annotated file Show diff for this revision Revisions of this file
globals.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
--- a/Eurobot_shared.lib	Sun Apr 29 00:43:46 2012 +0000
+++ b/Eurobot_shared.lib	Mon Apr 30 20:15:43 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/narshu/libraries/Eurobot_shared/m96n0v
\ No newline at end of file
+http://mbed.org/users/narshu/libraries/Eurobot_shared/m980u0
\ No newline at end of file
--- a/globals.h	Sun Apr 29 00:43:46 2012 +0000
+++ b/globals.h	Mon Apr 30 20:15:43 2012 +0000
@@ -69,7 +69,7 @@
 #define ANGLE_TOR               0.1
 
 // motion control
-#define MOVE_SPEED              30
+#define MOVE_SPEED              20
 #define MAX_STEP_RATIO          0.10 //maximum change in the speed
 //#define TRACK_RATE              10       // +- rate for each wheel when tracking
 
--- a/main.cpp	Sun Apr 29 00:43:46 2012 +0000
+++ b/main.cpp	Mon Apr 30 20:15:43 2012 +0000
@@ -90,6 +90,38 @@
     flag_terminate = true;
     */
     
+    // strat 1 ==================================
+    // goto middle x
+    settarget(1500, 250, PI/2, true);
+    Thread::signal_wait(0x01);
+    Thread::wait(2000);
+    
+    // to palm tree
+    settarget(1500, 1000, PI, true);
+    Thread::signal_wait(0x01);
+    Thread::wait(2000);
+    
+    // run over totem
+    settarget(640,1000,PI, true);
+    Thread::signal_wait(0x01);
+    Thread::wait(2000);
+    
+    // back to ship
+    settarget(220,780,PI,true);
+    Thread::signal_wait(0x01);
+    Thread::wait(2000);
+    
+    flag_terminate = true;
+    while(true){
+        Thread::wait(osWaitForever);
+    }
+    
+    
+    // end of strat 1 ===========================
+    
+    
+   
+    
     while (1) {