FRC_equipe1 / Mbed 2 deprecated FRC_2019

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
AlexisCollin
Date:
Sat Jun 08 12:32:29 2019 +0000
Parent:
40:c89872c80e75
Commit message:
programme parfait compete;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;