code petit robot pour homologation
Fork of CRAC-Strat_2017_V2 by
Globals/constantes.h@16:7321fb3bb396, 2017-05-19 (annotated)
- Committer:
- ClementBreteau
- Date:
- Fri May 19 17:13:46 2017 +0000
- Revision:
- 16:7321fb3bb396
- Parent:
- 15:c2fc239e85df
- Child:
- 18:cc5fec34ed9c
strat du robot, ann?e 2017, le 19 mai ? 19h
Who changed what in which revision?
User | Revision | Line number | New 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 | |
ClementBreteau | 15:c2fc239e85df | 18 | #define NOMBRE_OBJETS 16 |
ClementBreteau | 15:c2fc239e85df | 19 | |
antbig | 0:ad97421fb1fb | 20 | /**** |
antbig | 0:ad97421fb1fb | 21 | ** Variable à modifier en fonction du robot |
antbig | 0:ad97421fb1fb | 22 | ***/ |
ClementBreteau | 16:7321fb3bb396 | 23 | //#define ROBOT_BIG//Indique que l'on va compiler pour le gros robot |
ClementBreteau | 16:7321fb3bb396 | 24 | #define ROBOT_SMALL |
antbig | 1:116040d14164 | 25 | |
antbig | 5:dcd817534b57 | 26 | #ifdef ROBOT_BIG |
antbig | 5:dcd817534b57 | 27 | |
ClementBreteau | 15:c2fc239e85df | 28 | #define NOMBRE_CARTES 2//Le nombre de carte présente sur le gros robot |
ClementBreteau | 14:c8fc06c4887f | 29 | //#define POSITION_DEBUT_X 1830 |
ClementBreteau | 14:c8fc06c4887f | 30 | //#define POSITION_DEBUT_Y 900 |
ClementBreteau | 14:c8fc06c4887f | 31 | //#define POSITION_DEBUT_T 180 |
ClementBreteau | 14:c8fc06c4887f | 32 | |
ClementBreteau | 15:c2fc239e85df | 33 | #define POSITION_DEBUT_X 2000-1830 |
ClementBreteau | 15:c2fc239e85df | 34 | #define POSITION_DEBUT_Y 3000-900 |
ClementBreteau | 14:c8fc06c4887f | 35 | #define POSITION_DEBUT_T 0 |
antbig | 12:14729d584500 | 36 | |
ClementBreteau | 15:c2fc239e85df | 37 | //#define POSITION_DEBUT_X 0 |
ClementBreteau | 15:c2fc239e85df | 38 | //#define POSITION_DEBUT_Y 0 |
ClementBreteau | 15:c2fc239e85df | 39 | //#define POSITION_DEBUT_T 0 |
ClementBreteau | 15:c2fc239e85df | 40 | |
antbig | 12:14729d584500 | 41 | #define BALISE_TIMEOUT 6000 |
antbig | 12:14729d584500 | 42 | |
antbig | 5:dcd817534b57 | 43 | #else |
antbig | 5:dcd817534b57 | 44 | |
ClementBreteau | 15:c2fc239e85df | 45 | #define NOMBRE_CARTES 1 //Le nombre de carte présente sur le petit robot |
ClementBreteau | 15:c2fc239e85df | 46 | #define POSITION_DEBUT_X 0 |
ClementBreteau | 15:c2fc239e85df | 47 | #define POSITION_DEBUT_Y 0 |
antbig | 9:d0042422d95a | 48 | #define POSITION_DEBUT_T 0 |
antbig | 12:14729d584500 | 49 | |
antbig | 12:14729d584500 | 50 | #define BALISE_TIMEOUT 2000 |
antbig | 12:14729d584500 | 51 | |
antbig | 5:dcd817534b57 | 52 | #endif |
antbig | 5:dcd817534b57 | 53 | |
antbig | 1:116040d14164 | 54 | |
antbig | 1:116040d14164 | 55 | |
antbig | 1:116040d14164 | 56 | #endif |