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:
- 39:82c1de84bf40
- Parent:
- 38:a8b84be7dce5
- Child:
- 40:c89872c80e75
diff -r a8b84be7dce5 -r 82c1de84bf40 main.cpp --- a/main.cpp Sat Jun 08 06:17:19 2019 +0000 +++ b/main.cpp Sat Jun 08 07:17:01 2019 +0000 @@ -33,7 +33,7 @@ static type_etat etat = ATTENTE; static Timer T_partie; - if(T_partie.read() > 80.0f) + if(T_partie.read() > 70.0f) { etat = FIN_PARTIE; robot.stop(); @@ -53,7 +53,7 @@ break; case RUN_AVEUGLE: - if(automate_aveugle(robot, ejecte) && robot.GoToXYT(2000,2500,0)) + if(automate_aveugle(robot, ejecte) && robot.tourne(1800)) etat = RECHERCHE_BALLES; automate_ejecte(robot, ejecte); break; @@ -219,7 +219,7 @@ switch(etat) { case 0: - if(robot.pos(Robot::X) < 400 || robot.pos(Robot::X) > 3600 || robot.pos(Robot::Y) < 400 || robot.pos(Robot::Y) > 3500) + if(robot.pos(Robot::X) < 400 || robot.pos(Robot::X) > 3600 || robot.pos(Robot::Y) < 400 || robot.pos(Robot::Y) > 3350) { forceRAS = true; robot.stop();