Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: AI_Friday.cpp
- Revision:
- 29:47519f2b14ad
- Parent:
- 28:d576b1190610
- Child:
- 30:2ce51e8719ff
--- 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 ********************