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:
- 12:c1a667ca6c53
- Parent:
- 11:44989c0bcea5
- Child:
- 13:13d7f407d8b4
- Child:
- 14:c46f22bcaa38
diff -r 44989c0bcea5 -r c1a667ca6c53 AI_Friday.cpp
--- 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;
}