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:
- 41:ee856eef5f6d
- Parent:
- 40:c89872c80e75
--- a/main.cpp Sat Jun 08 09:11:13 2019 +0000
+++ b/main.cpp Sat Jun 08 12:32:29 2019 +0000
@@ -33,7 +33,7 @@
static type_etat etat = ATTENTE;
static Timer T_partie;
- if(T_partie.read() > 70.0f)
+ if(T_partie.read() > 75.0f)
{
etat = FIN_PARTIE;
robot.stop();
@@ -107,7 +107,7 @@
case RAS:
if(etat_deplacement != TURN_FAST_GO)
etat_deplacement = TURN_FAST;
- if( droit[1] > (droit[0] + distMurBalle) && droit[0] <= 300)
+ if( droit[1] > (droit[0] + distMurBalle) && droit[0] <= 350)
{
T_suspi.start();
etat = SUSPICION;
@@ -116,7 +116,7 @@
break;
case SUSPICION:
- if(T_suspi.read_ms() < 500)
+ if(T_suspi.read_ms() < 150)
{
if( gauche[1] > (gauche[0] + distMurBalle) )
{
@@ -231,7 +231,7 @@
break;
case 1:
- if(robot.GoToXYT(2000,2000,450))
+ if(robot.GoToXYT(2000,3200,900))
{
forceRAS = false;
etat = 0;