code avec modifs, programme mit dans les robots pour les derniers matchs

Dependencies:   mbed SerialHalfDuplex SDFileSystem liaison_Bluetooth ident_crac DISCO-F469NI_portrait

Files at this revision

API Documentation at this revision

Comitter:
gabrieltetar
Date:
Wed Mar 04 12:38:22 2020 +0000
Parent:
10:1964bb91b925
Child:
12:227c15c7ebe6
Child:
14:6aa8aa1699ad
Commit message:
menu demo ++

Changed in this revision

Globals/constantes.h Show annotated file Show diff for this revision Revisions of this file
Strategie/Strategie.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Globals/constantes.h	Tue Mar 03 16:41:33 2020 +0000
+++ b/Globals/constantes.h	Wed Mar 04 12:38:22 2020 +0000
@@ -3,7 +3,7 @@
 // ****************************************************************************************
 // * CONSTANTES SYMBOLIQUES                                                               *
 // ****************************************************************************************
-#define ESPACE_INTER_TELEMETRE 149.98//PR 2019
+
 
 
 #define SIZE_FIFO               50 //Taille du buffer pour le bus CAN
@@ -17,10 +17,11 @@
 ***/
 
 //-------------------------------------------------------------------------
+    #define ESPACE_INTER_TELEMETRE 79.05
     #define NOMBRE_CARTES           2//Le nombre de carte présente sur le petit robot
-    #define POSITION_DEBUT_X 210
-    #define POSITION_DEBUT_Y 285
+    #define POSITION_DEBUT_X 300
+    #define POSITION_DEBUT_Y 300
     #define POSITION_DEBUT_T 0
-    #define MOITIEE_ROBOT 90
+    #define MOITIEE_ROBOT 120 // ou 115
     #define BALISE_TIMEOUT 2000
 #endif
\ No newline at end of file
--- a/Strategie/Strategie.cpp	Tue Mar 03 16:41:33 2020 +0000
+++ b/Strategie/Strategie.cpp	Wed Mar 04 12:38:22 2020 +0000
@@ -139,7 +139,7 @@
 Button TEST_COUL(0,245,400,100,"Test capteurs couleur");
 Button TEST_BRAS(0,355,400,100,"Test Bras");
 Button TEST_AUDIO(0,465,400,100,"Test Audio");
-Button TEST_ELECTRV(0,465,400,100,"Test Electro Vannes");
+Button TEST_ELECTRV(0,575,400,100,"Test Electro Vannes");
 //menu demo/demo/
 Button TEST_A(0,25,195,100,"A");
 Button TEST_B(205,25,195,100,"B");
@@ -451,7 +451,7 @@
             TEST_NUM.Draw(BLEU, BLANC);
             TEST_PLUS.Draw(BLEU, BLANC);
             TEST_MOINS.Draw(BLEU, BLANC);
-            while(etat==TEST_SERVO_BRAS) {
+            while(etat==TEST_VENTOUSE) {
                 if(RETOUR.Touched()) {
                     while (RETOUR.Touched());
                     etat=DEMO;
@@ -515,7 +515,7 @@
             TEST_NUM.Draw(BLEU, BLANC);
             TEST_PLUS.Draw(BLEU, BLANC);
             TEST_MOINS.Draw(BLEU, BLANC);
-            while(etat==TEST_SERVO_BRAS) {
+            while(etat==TEST_ELECTROV) {
                 if(RETOUR.Touched()) {
                     while (RETOUR.Touched());
                     etat=DEMO;
--- a/main.cpp	Tue Mar 03 16:41:33 2020 +0000
+++ b/main.cpp	Wed Mar 04 12:38:22 2020 +0000
@@ -69,7 +69,7 @@
     lcd.DisplayStringAt(0, 0,(uint8_t *)"Initialisation", LEFT_MODE);
     led1 = 1;
     bluetooth_init();
-    lecture_fichier(); //bloquant si pas de carte SD
+    //lecture_fichier(); //bloquant si pas de carte SD
     led1 = 0;
     wait_ms(2000);//Attente pour que toutes les cartes se lancent et surtout le CANBlue
     while(true) {