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: main.cpp
- Revision:
- 33:c70ded6dd380
- Parent:
- 32:84bcb8f2667a
- Child:
- 34:cea05fa02f37
diff -r 84bcb8f2667a -r c70ded6dd380 main.cpp --- a/main.cpp Fri Jun 07 11:18:42 2019 +0000 +++ b/main.cpp Fri Jun 07 11:42:29 2019 +0000 @@ -66,7 +66,7 @@ } break; case RUN: - if(T_partie.read() < 35.0f) + if(T_partie.read() < 30.0f) { /*while( !*/automate_aveugle(robot, ejecte)/* )*/; automate_ejecte(robot, ejecte); @@ -91,13 +91,11 @@ switch(etat) { case AVANCE: - robot.avance(); - if(automate_arretUrgence(robot)) + if(robot.GoToXYT(3500,3800,0)) etat = EXPLOSE_BALLON; break; case EXPLOSE_BALLON: - robot.stop(); if(robot.leveBras()) { robot.exploseBallon(); @@ -117,7 +115,7 @@ return false; } -bool automate_arretUrgence(Robot& robot) +/*bool automate_arretUrgence(Robot& robot) { typedef enum{RAS, PERCEPTION, ARRET_URGENCE, ATTENTE_REPLACEMENT} type_etat; static type_etat etat = RAS; @@ -159,7 +157,7 @@ } return false; -} +}*/ bool automate_aveugle(Robot& robot, bool& ejecte) {