Robotics Term Project / Mbed 2 deprecated Robottics_Motion

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
smilestone520
Date:
Thu May 26 11:27:25 2016 +0000
Parent:
28:d576b1190610
Child:
30:2ce51e8719ff
Commit message:
hahaha

Changed in this revision

AI_Friday.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/AI_Friday.cpp	Thu May 26 10:36:46 2016 +0000
+++ b/AI_Friday.cpp	Thu May 26 11:27:25 2016 +0000
@@ -75,11 +75,9 @@
 
 float ballSize; // ball size
 
-float longC; // car's length
-float longB;// long of the court
-float wideB; // wide of the court
+float longC; // car's length  //65
 int yB1,yB2,xB3,xB4; // broder conditions
-
+//65 , 580, 170,860
 int ticCheck = 10;
 
 int main() {
@@ -207,10 +205,10 @@
 
     angleR = Angle_Target; //  angleR =  car-nextSpot direction  --->  car direction
     
-    yB1 = longC;
-    yB2 = wideB - longC ;
-    xB3 = longC ;
-    xB4 = longB-longC;
+    yB1 += longC; 
+    yB2 -= longC ;
+    xB3 += longC ;
+    xB4 -= longC;
     
     //****   AI_State   ********************