code de la carte IHM avant les bugs et avant le travail effectué avec Melchior

Dependencies:   mbed SerialHalfDuplex SDFileSystem liaison_Bluetooth ident_crac DISCO-F469NI_portrait

Committer:
gabrieltetar
Date:
Wed Mar 11 14:21:02 2020 +0000
Revision:
14:6aa8aa1699ad
Parent:
1:7e925468f9d9
Child:
18:746bc235199d
11/03/2020

Who changed what in which revision?

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