carte_strategie_2019

Dependencies:   mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac

Committer:
marwanesaich
Date:
Sun May 26 15:29:47 2019 +0000
Revision:
70:73b033f2d13f
Parent:
57:082ecdf02a98
Child:
83:23e04b85ae06
Child:
85:c46c39d879a9
lib crac-srtat retiree

Who changed what in which revision?

UserRevisionLine numberNew contents of line
marwanesaich 70:73b033f2d13f 1 #ifndef GLOBAL_H
marwanesaich 70:73b033f2d13f 2 #define GLOBAL_H
marwanesaich 70:73b033f2d13f 3
antbig 0:ad97421fb1fb 4 #include "mbed.h"
kyxstark 55:1e3dab1f90f4 5 #include "ident_crac.h"
kyxstark 57:082ecdf02a98 6
kyxstark 57:082ecdf02a98 7
Sitkah 29:41e02746041d 8 #include <CAN.h>
Sitkah 29:41e02746041d 9 #include <DirHandle.h>
Sitkah 29:41e02746041d 10 #include "SDFileSystem.h"
Sitkah 30:a1e37af4bbde 11 #include "conv_data.h"
Sitkah 29:41e02746041d 12 #include "Config_big.h"
antbig 0:ad97421fb1fb 13 #include "constantes.h"
Sitkah 29:41e02746041d 14 #include "Instruction.h"
Sitkah 29:41e02746041d 15 #include "Strategie.h"
Sitkah 29:41e02746041d 16 #include "lecture_repertoire.h"
Sitkah 29:41e02746041d 17 #include "StrategieManager.h"
Sitkah 29:41e02746041d 18 #include "SerialHalfDuplex.h"
antbig 0:ad97421fb1fb 19 #include "debug.h"
antbig 0:ad97421fb1fb 20 #include "Asservissement.h"
Sitkah 29:41e02746041d 21 #include "TS_DISCO_F469NI.h"
Sitkah 29:41e02746041d 22 #include "LCD_DISCO_F469NI.h"
Sitkah 29:41e02746041d 23 #include "fonts.h"
Sitkah 29:41e02746041d 24 #include "F469_GUI.hpp"
Sitkah 29:41e02746041d 25 #include "Config_big.h"
Sitkah 30:a1e37af4bbde 26 #include "LiaisonBluetooth.h"
Sitkah 35:742dc6b200b0 27 #include "Evitement.h"
Sitkah 29:41e02746041d 28
Sitkah 29:41e02746041d 29 //#include "peripheriques.h"
Sitkah 30:a1e37af4bbde 30 extern Serial pc;
Sitkah 31:833fc481b002 31 extern Serial rn42_Tx;
Sitkah 31:833fc481b002 32 extern Serial rn42_Rx;
Sitkah 38:76f886a1c8e6 33 extern Serial rn42_pr;
Sitkah 31:833fc481b002 34 extern LiaisonBluetooth liaison_Tx;
Sitkah 31:833fc481b002 35 extern LiaisonBluetooth liaison_Rx;
Sitkah 38:76f886a1c8e6 36 extern LiaisonBluetooth liaison_pr;
Sitkah 31:833fc481b002 37
antbig 0:ad97421fb1fb 38 extern CAN can1;
Sitkah 29:41e02746041d 39 extern CAN can2;
antbig 0:ad97421fb1fb 40 extern CANMessage msgRxBuffer[SIZE_FIFO];
antbig 0:ad97421fb1fb 41 extern unsigned char FIFO_ecriture;
Sitkah 29:41e02746041d 42 extern char strat_sd[10][SIZE+8];
Sitkah 29:41e02746041d 43 extern char PATH[10][SIZE+8];
Sitkah 29:41e02746041d 44
Sitkah 29:41e02746041d 45 extern signed char Strategie;
Sitkah 29:41e02746041d 46
Sitkah 29:41e02746041d 47 extern int ack_bluetooth;
antbig 0:ad97421fb1fb 48
antbig 8:0edc7dfb7f7e 49 extern DigitalOut led1,led2,led3,led4;
Sitkah 30:a1e37af4bbde 50 extern LCD_DISCO_F469NI lcd;
antbig 0:ad97421fb1fb 51 extern char cheminFileStart[SIZE+8]; //Le chemin du fichier de strat, utiliser strcpy(cheminFileStart,"/local/strat.txt");
Sitkah 38:76f886a1c8e6 52 extern short SCORE_GLOBAL;
Sitkah 38:76f886a1c8e6 53 extern short SCORE_PR, SCORE_GR;
Sitkah 29:41e02746041d 54
antbig 0:ad97421fb1fb 55 extern struct S_Instruction strat_instructions[SIZE_BUFFER_FILE]; //La liste des instruction chargé en mémoire
antbig 0:ad97421fb1fb 56 extern unsigned char nb_instructions; //Le nombre d'instruction dans le fichier de strategie
antbig 0:ad97421fb1fb 57 extern unsigned char actual_instruction;//La ligne de l'instruction en cours d'execution
antbig 0:ad97421fb1fb 58
ClementBreteau 18:cc5fec34ed9c 59 extern unsigned short telemetreDistance;
Sitkah 30:a1e37af4bbde 60 extern char couleur1, couleur2, couleur3;
antbig 1:116040d14164 61 extern unsigned char InversStrat;//Si à 1, indique que l'on part de l'autre cote de la table(inversion des Y)
antbig 1:116040d14164 62
antbig 1:116040d14164 63 extern unsigned short waitingAckID;//L'id du ack attendu
antbig 1:116040d14164 64 extern unsigned short waitingAckFrom;//La provenance du ack attendu
Sitkah 29:41e02746041d 65 extern char modeTelemetre; // Si à 1, indique que l'on attend une reponse du telemetre
Artiom 50:a5361ffeefc8 66 extern unsigned short waitingId;
Sitkah 29:41e02746041d 67
marwanesaich 70:73b033f2d13f 68 #endif