Robotics Term Project / Mbed 2 deprecated Robottics_Motion

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
smilestone520
Date:
Wed May 25 10:39:33 2016 +0000
Parent:
11:44989c0bcea5
Child:
13:13d7f407d8b4
Child:
14:c46f22bcaa38
Commit message:
real

Changed in this revision

AI_Friday.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/AI_Friday.cpp	Wed May 25 10:36:45 2016 +0000
+++ b/AI_Friday.cpp	Wed May 25 10:39:33 2016 +0000
@@ -133,15 +133,31 @@
     
     switch(aI_State)
     {
-        case 0:
+        case 0:   // IDLE
+            // IDLE check if stop color appear 
+            //check purple color appear or not 
+           
+            setSpecs();
             break;
-        case 1:
+        case 1:   // get first information 
+            //  set everything icludes the car's and ball's position
+            //  go to case 2 after get all the information
             break;
-        case 2:
+        case 2:   ///   border condition
+            // check if car fit border conditions
+            funcBorder();
+            to case3
             break;
-        case 3:
+        case 3://move to get ball
+          
+            getBall();
             break;
-        case 4:
+        case 4: /// move to the gate and release ball
+        // move to the point in front of the gate first
+        // then head to the gate
+            break;
+        case 5: 
+            break;
         
     }