strat des robots

Fork of CRAC-Strat_2017 by CRAC Team

Committer:
ClementBreteau
Date:
Fri Mar 31 16:20:26 2017 +0000
Revision:
14:c8fc06c4887f
Parent:
12:14729d584500
Child:
15:c2fc239e85df
code strategie du robot, version 31 mars 2017

Who changed what in which revision?

UserRevisionLine numberNew contents of line
antbig 1:116040d14164 1 #ifndef CRAC_CONSTANTES
antbig 1:116040d14164 2 #define CRAC_CONSTANTES
antbig 0:ad97421fb1fb 3 // ****************************************************************************************
antbig 0:ad97421fb1fb 4 // * CONSTANTES SYMBOLIQUES *
antbig 0:ad97421fb1fb 5 // ****************************************************************************************
antbig 0:ad97421fb1fb 6
antbig 1:116040d14164 7
antbig 0:ad97421fb1fb 8
ClementBreteau 14:c8fc06c4887f 9 #define SIZE_FIFO 50 //Taille du buffer pour le bus CAN
antbig 0:ad97421fb1fb 10
antbig 0:ad97421fb1fb 11 #define SIZE 750 //Taille d'une ligne du fichier
antbig 0:ad97421fb1fb 12 #define SIZE_BUFFER_FILE 150 //Taille du buffer d'instruction
antbig 0:ad97421fb1fb 13
ClementBreteau 14:c8fc06c4887f 14 #define BALLE 60
ClementBreteau 14:c8fc06c4887f 15 #define CYLINDRE 61
ClementBreteau 14:c8fc06c4887f 16 #define MODULE 62
antbig 0:ad97421fb1fb 17
antbig 0:ad97421fb1fb 18 /****
antbig 0:ad97421fb1fb 19 ** Variable à modifier en fonction du robot
antbig 0:ad97421fb1fb 20 ***/
antbig 12:14729d584500 21 #define ROBOT_BIG//Indique que l'on va compiler pour le gros robot
antbig 12:14729d584500 22 //#define ROBOT_SMALL
antbig 1:116040d14164 23
antbig 5:dcd817534b57 24 #ifdef ROBOT_BIG
antbig 5:dcd817534b57 25
ClementBreteau 14:c8fc06c4887f 26 #define NOMBRE_CARTES 1//Le nombre de carte présente sur le gros robot
ClementBreteau 14:c8fc06c4887f 27 //#define POSITION_DEBUT_X 1830
ClementBreteau 14:c8fc06c4887f 28 //#define POSITION_DEBUT_Y 900
ClementBreteau 14:c8fc06c4887f 29 //#define POSITION_DEBUT_T 180
ClementBreteau 14:c8fc06c4887f 30
ClementBreteau 14:c8fc06c4887f 31 #define POSITION_DEBUT_X 0
ClementBreteau 14:c8fc06c4887f 32 #define POSITION_DEBUT_Y 0
ClementBreteau 14:c8fc06c4887f 33 #define POSITION_DEBUT_T 0
antbig 12:14729d584500 34
antbig 12:14729d584500 35 #define BALISE_TIMEOUT 6000
antbig 12:14729d584500 36
antbig 5:dcd817534b57 37 #else
antbig 5:dcd817534b57 38
antbig 11:ed13a480ddca 39 #define NOMBRE_CARTES 3 //Le nombre de carte présente sur le petit robot
antbig 9:d0042422d95a 40 #define POSITION_DEBUT_X 990
antbig 9:d0042422d95a 41 #define POSITION_DEBUT_Y 150
antbig 9:d0042422d95a 42 #define POSITION_DEBUT_T 0
antbig 12:14729d584500 43
antbig 12:14729d584500 44 #define BALISE_TIMEOUT 2000
antbig 12:14729d584500 45
antbig 5:dcd817534b57 46 #endif
antbig 5:dcd817534b57 47
antbig 1:116040d14164 48
antbig 1:116040d14164 49
antbig 1:116040d14164 50 #endif