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:
- 14:c46f22bcaa38
- Parent:
- 12:c1a667ca6c53
- Child:
- 15:3e0a4079b28a
diff -r c1a667ca6c53 -r c46f22bcaa38 AI_Friday.cpp
--- a/AI_Friday.cpp Wed May 25 10:39:33 2016 +0000
+++ b/AI_Friday.cpp Wed May 25 11:00:16 2016 +0000
@@ -45,13 +45,13 @@
float v2_err = 0.0, v2_ierr = 0.0, PIout_2 = 0.0, PIout_2_old = 0.0;
//**** receive and return by bluetooth ************** // bluetooth.getc()
-float xC, yC // car's position
+float xC, yC; // car's position
-float angleC // car's angle
+float angleC;// car's angle
-float xP,yP //position that car need to reach
+float xP,yP; //position that car need to reach
-float angleR // angleR = car-nextSpot direction ---> car direction
+float angleR; // angleR = car-nextSpot direction ---> car direction
int aI_State = 0;
@@ -119,15 +119,15 @@
//***** get position information from the bluetooth
- xC = ;
- yC = ; // car's position
+ xC = 0;
+ yC = 0; // car's position
- angleC = ; // car's angle
+ angleC = 0; // car's angle
- xP = ;
- yP = ;//position that car need to reach
+ xP = 0;
+ yP = 0;//position that car need to reach
- angleR = ; // angleR = car-nextSpot direction ---> car direction
+ angleR = 0; // angleR = car-nextSpot direction ---> car direction
//**** AI_State ********************
@@ -137,7 +137,7 @@
// IDLE check if stop color appear
//check purple color appear or not
- setSpecs();
+ //****setSpecs();
break;
case 1: // get first information
// set everything icludes the car's and ball's position
@@ -145,12 +145,12 @@
break;
case 2: /// border condition
// check if car fit border conditions
- funcBorder();
- to case3
+ //****funcBorder();
+ //****to case3
break;
case 3://move to get ball
- getBall();
+ //****getBall();
break;
case 4: /// move to the gate and release ball
// move to the point in front of the gate first