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:
slowness
Date:
Wed Mar 17 08:13:52 2021 +0000
Revision:
29:ff575aff301f
Parent:
26:b7967815bb7d
Child:
35:2a745eeb7922
version correction de la sd

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