FRC_equipe1 / Mbed 2 deprecated FRC_2019

Dependencies:   mbed

Revision:
39:82c1de84bf40
Parent:
38:a8b84be7dce5
Child:
40:c89872c80e75
--- 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();