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
Globals/global.h@37:f1a8734c193d, 2021-07-17 (annotated)
- Committer:
- goldmas
- Date:
- Sat Jul 17 16:07:29 2021 +0000
- Revision:
- 37:f1a8734c193d
- Parent:
- 36:c37dbe2be916
code de l'IHM avant bug
Who changed what in which revision?
User | Revision | Line number | New 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" |
goldmas | 35:2a745eeb7922 | 26 | #include "Compteur.h" |
goldmas | 37:f1a8734c193d | 27 | #include "bon_port.h" |
goldmas | 37:f1a8734c193d | 28 | extern unsigned char ingnorInversionOnce; |
goldmas | 37:f1a8734c193d | 29 | extern char asser_stop_direction; |
goldmas | 37:f1a8734c193d | 30 | extern E_InstructionType actionPrecedente; |
gabrieltetar | 1:7e925468f9d9 | 31 | extern Serial pc; |
gabrieltetar | 21:d137ec53c3a9 | 32 | //extern E_stratGameEtat gameEtat = ETAT_CHECK_CARTES; |
gabrieltetar | 21:d137ec53c3a9 | 33 | //extern T_etat strat_etat_s = INIT; |
gabrieltetar | 1:7e925468f9d9 | 34 | extern CAN can1; |
gabrieltetar | 1:7e925468f9d9 | 35 | extern CAN can2; |
gabrieltetar | 1:7e925468f9d9 | 36 | extern CANMessage msgRxBuffer[SIZE_FIFO]; |
gabrieltetar | 1:7e925468f9d9 | 37 | extern unsigned char FIFO_ecriture; |
gabrieltetar | 1:7e925468f9d9 | 38 | extern char strat_sd[10][SIZE+8]; |
gabrieltetar | 1:7e925468f9d9 | 39 | extern char PATH[10][SIZE+8]; |
gabrieltetar | 24:1a13c998c7ac | 40 | extern signed short x_robot; |
gabrieltetar | 24:1a13c998c7ac | 41 | extern signed short y_robot; |
gabrieltetar | 24:1a13c998c7ac | 42 | extern signed short theta_robot; |
gabrieltetar | 19:e70b9d4a319c | 43 | extern signed char nbStrat; |
gabrieltetar | 24:1a13c998c7ac | 44 | extern unsigned short flag_check_carte; |
gabrieltetar | 1:7e925468f9d9 | 45 | extern int ack_bluetooth; |
gabrieltetar | 21:d137ec53c3a9 | 46 | extern unsigned char Cote; |
goldmas | 36:c37dbe2be916 | 47 | extern unsigned char Hauteur; |
gabrieltetar | 1:7e925468f9d9 | 48 | extern DigitalOut led1,led2,led3,led4; |
gabrieltetar | 1:7e925468f9d9 | 49 | extern LCD_DISCO_F469NI lcd; |
gabrieltetar | 1:7e925468f9d9 | 50 | extern char cheminFileStart[SIZE+8]; //Le chemin du fichier de strat, utiliser strcpy(cheminFileStart,"/local/strat.txt"); |
gabrieltetar | 1:7e925468f9d9 | 51 | extern short SCORE_GLOBAL; |
gabrieltetar | 1:7e925468f9d9 | 52 | extern short SCORE_PR, SCORE_GR; |
gabrieltetar | 26:b7967815bb7d | 53 | extern Serial rn42_Tx; |
gabrieltetar | 26:b7967815bb7d | 54 | extern Serial rn42_Rx; |
gabrieltetar | 26:b7967815bb7d | 55 | extern Serial rn42_pr; |
gabrieltetar | 26:b7967815bb7d | 56 | extern LiaisonBluetooth liaison_Tx; |
gabrieltetar | 26:b7967815bb7d | 57 | extern LiaisonBluetooth liaison_Rx; |
gabrieltetar | 26:b7967815bb7d | 58 | extern LiaisonBluetooth liaison_pr; |
gabrieltetar | 1:7e925468f9d9 | 59 | extern struct S_Instruction strat_instructions[SIZE_BUFFER_FILE]; //La liste des instruction chargé en mémoire |
gabrieltetar | 1:7e925468f9d9 | 60 | extern unsigned char nb_instructions; //Le nombre d'instruction dans le fichier de strategie |
gabrieltetar | 1:7e925468f9d9 | 61 | extern unsigned char actual_instruction;//La ligne de l'instruction en cours d'execution |
gabrieltetar | 1:7e925468f9d9 | 62 | |
gabrieltetar | 1:7e925468f9d9 | 63 | extern unsigned short telemetreDistance; |
gabrieltetar | 1:7e925468f9d9 | 64 | extern char couleur1, couleur2, couleur3; |
gabrieltetar | 1:7e925468f9d9 | 65 | extern unsigned char InversStrat;//Si à 1, indique que l'on part de l'autre cote de la table(inversion des Y) |
gabrieltetar | 1:7e925468f9d9 | 66 | |
gabrieltetar | 1:7e925468f9d9 | 67 | extern unsigned short waitingAckID;//L'id du ack attendu |
gabrieltetar | 1:7e925468f9d9 | 68 | extern unsigned short waitingAckFrom;//La provenance du ack attendu |
gabrieltetar | 1:7e925468f9d9 | 69 | extern char modeTelemetre; // Si à 1, indique que l'on attend une reponse du telemetre |
gabrieltetar | 1:7e925468f9d9 | 70 | extern unsigned short waitingId; |
gabrieltetar | 1:7e925468f9d9 | 71 | |
gabrieltetar | 1:7e925468f9d9 | 72 | extern unsigned char isStopEnable; |
slowness | 29:ff575aff301f | 73 | |
slowness | 29:ff575aff301f | 74 | extern char sd_present; |
slowness | 29:ff575aff301f | 75 | extern char can_present; |
gabrieltetar | 1:7e925468f9d9 | 76 | #endif |