Programme carte strategie (disco)
Dependencies: mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Globals/global.h@3:19f2285a4757, 2016-04-17 (annotated)
- Committer:
- antbig
- Date:
- Sun Apr 17 08:31:59 2016 +0000
- Revision:
- 3:19f2285a4757
- Parent:
- 1:116040d14164
- Child:
- 8:0edc7dfb7f7e
Mise en place de la s?paration des fonctions doAction, initRobot, doFunnyAction entre les robots dans 2 fichier diff. Il faut modifier le fichier constantes.h pour indiquer le type de robot
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
antbig | 0:ad97421fb1fb | 1 | #include "mbed.h" |
antbig | 0:ad97421fb1fb | 2 | #include "constantes.h" |
antbig | 0:ad97421fb1fb | 3 | #include "ident_crac.h" |
antbig | 0:ad97421fb1fb | 4 | #include "Display.h" |
antbig | 3:19f2285a4757 | 5 | #include "AX12-V2.h" |
antbig | 0:ad97421fb1fb | 6 | #include "Instruction.h" |
antbig | 0:ad97421fb1fb | 7 | #include "debug.h" |
antbig | 0:ad97421fb1fb | 8 | #include "Asservissement.h" |
antbig | 0:ad97421fb1fb | 9 | #include "StrategieManager.h" |
antbig | 0:ad97421fb1fb | 10 | #include "Strategie.h" |
antbig | 0:ad97421fb1fb | 11 | |
antbig | 0:ad97421fb1fb | 12 | extern CAN can1; |
antbig | 0:ad97421fb1fb | 13 | extern CANMessage msgRxBuffer[SIZE_FIFO]; |
antbig | 0:ad97421fb1fb | 14 | extern unsigned char FIFO_ecriture; |
antbig | 0:ad97421fb1fb | 15 | |
antbig | 1:116040d14164 | 16 | extern DigitalOut led1,led2; |
antbig | 0:ad97421fb1fb | 17 | |
antbig | 0:ad97421fb1fb | 18 | extern char cheminFileStart[SIZE+8]; //Le chemin du fichier de strat, utiliser strcpy(cheminFileStart,"/local/strat.txt"); |
antbig | 0:ad97421fb1fb | 19 | extern struct S_Instruction strat_instructions[SIZE_BUFFER_FILE]; //La liste des instruction chargé en mémoire |
antbig | 0:ad97421fb1fb | 20 | extern unsigned char nb_instructions; //Le nombre d'instruction dans le fichier de strategie |
antbig | 0:ad97421fb1fb | 21 | extern unsigned char actual_instruction;//La ligne de l'instruction en cours d'execution |
antbig | 0:ad97421fb1fb | 22 | |
antbig | 1:116040d14164 | 23 | extern unsigned char InversStrat;//Si à 1, indique que l'on part de l'autre cote de la table(inversion des Y) |
antbig | 1:116040d14164 | 24 | |
antbig | 1:116040d14164 | 25 | extern unsigned short waitingAckID;//L'id du ack attendu |
antbig | 1:116040d14164 | 26 | extern unsigned short waitingAckFrom;//La provenance du ack attendu |