ident leo

Dependents:   carte_straegie_2019 Carte_Pompe_V2 carte_esclave201_petit_rob CRAC-Strat_2019 ... more

ID CAN 2019

Revision:
3:5d8692c71146
Parent:
2:9ab15ac5855b
Child:
4:6769b20ff998
--- a/ident_crac.h	Wed May 22 08:25:44 2019 +0000
+++ b/ident_crac.h	Wed May 22 09:19:04 2019 +0000
@@ -1,8 +1,15 @@
 #ifndef CRAC_IDENTH
 #define CRAC_IDENTH
  
-#define ROBOT_SMALL
+//------------------------------------sellection Robot---------------------
+#define ROBOT_BIG //Si commenté Petit Robot,  si Décommenter Gros Robot
+
+#ifndef ROBOT_BIG       //  !!!!!!!! ne pas commenter
+    #define ROBOT_SMALL //  !!!!!!!! ne pas commenter
+#endif                  //  !!!!!!!! ne pas commenter
  
+//-------------------------------------------------------------------------
+
 #define GLOBAL_GAME_END 0x004  // Stop fin du match
 #define GLOBAL_START 0x002  // Start
 #define GLOBAL_END_INIT_POSITION 0x005  // Fin positionnement robot avant depart
@@ -149,29 +156,9 @@
 #define LIRE_PANNEAU 0x317
 #define VIBRO 0x318
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-#define HACHEUR_GET_ATOM            0x520
-#define HACHEUR_GET_ATOM_ACK        0x521
- 
-#define HACHEUR_RELEASE_ATOM        0x522
-#define HACHEUR_RELEASE_ATOM_ACK    0x523
- 
-#define HACHEUR_GET_PRESENTOIR_AV   0x524
-#define HACHEUR_RELEASE_AV          0x525
- 
-#define HACHEUR_GET_PRESENTOIR_AR   0x526
-#define HACHEUR_RELEASE_AR          0x527
- 
-#define HACHEUR_STATUT_VENTOUSES    0x528
- 
-#define AV_BAS      0
-#define AV_DROIT    1
-#define AV_CENTRE   2
-#define AV_GAUCHE   3
- 
-#define AR_BAS      4
-#define AR_DROIT    5
-#define AR_CENTRE   6
-#define AR_GAUCHE   7
+
+
+
 ///////////////////////////////////////////////////ENVOI DE PARAMETRES//////////////////////////////////////////////////
 #define CHOICE_COLOR 0x602  // Couleur  (0->VERT;1->ORANGE)
 #define RECEPTION_COULEUR 0x603 //Code Couleur
@@ -187,6 +174,43 @@
 #define POMPE_PWM 0x9A  // pwm des pompes  (pwm entre 0 et 100)
  
  
+ 
+    
+///////////////////////////////Carte Hacheur////////////////////////////////////
+
+#define HACHEUR_GET_ATOM                0x520
+#define HACHEUR_GET_ATOM_ACK            0x521
+#define HACHEUR_RELEASE_ATOM            0x522
+#define HACHEUR_RELEASE_ATOM_ACK        0x523
+#define HACHEUR_GET_PRESENTOIR_AV       0x524
+#define HACHEUR_RELEASE_AV              0x525
+#define HACHEUR_GET_PRESENTOIR_AR       0x526
+#define HACHEUR_RELEASE_AR              0x527
+#define HACHEUR_STATUT_VENTOUSES        0x528
+
+#define ETAT_COUROIES 0x600  //data 0 : 1 ou 0 allumer éteindre
+
+#define AV_BAS      0 
+#define AV_DROIT    1
+#define AV_CENTRE   2
+#define AV_GAUCHE   3
+
+#define AR_BAS      4
+#define AR_DROIT    5
+#define AR_CENTRE   6
+#define AR_GAUCHE   7
+
+#define PGR_DROIT    0
+#define PGR_CENTRE   1
+#define PGR_GAUCHE   2
+
+
+////////////////////////////////////////////////////////////////////////////////
+ 
+ 
+ 
+ 
+ 
 #define ASSERVISSEMENT_INFO_CONSIGNE 0x1F0  // Info Consigne et Commande moteur
 #define ASSERVISSEMENT_CONFIG_KPP_DROITE 0x1F1  // Config coef KPP_Droit
 #define ASSERVISSEMENT_CONFIG_KPI_DROITE 0x1F2  // Config coef KPI_Droit