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
Strategie/Strategie.h@19:e70b9d4a319c, 2020-05-25 (annotated)
- Committer:
- gabrieltetar
- Date:
- Mon May 25 18:25:20 2020 +0000
- Revision:
- 19:e70b9d4a319c
- Parent:
- 1:7e925468f9d9
- Child:
- 21:d137ec53c3a9
correctif precedent publish + suppression affichage_debug
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gabrieltetar | 1:7e925468f9d9 | 1 | #ifndef CRAC_STRATEGIE |
gabrieltetar | 1:7e925468f9d9 | 2 | #define CRAC_STRATEGIE |
gabrieltetar | 1:7e925468f9d9 | 3 | |
gabrieltetar | 1:7e925468f9d9 | 4 | typedef enum |
gabrieltetar | 1:7e925468f9d9 | 5 | { |
gabrieltetar | 1:7e925468f9d9 | 6 | RECALAGE_1, |
gabrieltetar | 1:7e925468f9d9 | 7 | RECULER_1, |
gabrieltetar | 1:7e925468f9d9 | 8 | TOURNER, |
gabrieltetar | 1:7e925468f9d9 | 9 | RECALAGE_2, |
gabrieltetar | 1:7e925468f9d9 | 10 | RECULER_2, |
gabrieltetar | 1:7e925468f9d9 | 11 | GOTOPOS, |
gabrieltetar | 1:7e925468f9d9 | 12 | FIN_POS, |
gabrieltetar | 1:7e925468f9d9 | 13 | }E_Stratposdebut; |
gabrieltetar | 1:7e925468f9d9 | 14 | |
gabrieltetar | 1:7e925468f9d9 | 15 | typedef enum |
gabrieltetar | 1:7e925468f9d9 | 16 | { |
gabrieltetar | 1:7e925468f9d9 | 17 | ETAT_CHECK_CARTE_SCREEN, //Envoie check carte screen |
gabrieltetar | 1:7e925468f9d9 | 18 | ETAT_CHECK_CARTE_SCREEN_WAIT_ACK, //Time out de 1s si erreur clignotement des led et fin prog |
gabrieltetar | 1:7e925468f9d9 | 19 | ETAT_CHECK_CARTES, //Envoie check toutes les carte |
gabrieltetar | 1:7e925468f9d9 | 20 | ETAT_CHECK_CARTES_WAIT_ACK, //Time out de 1s |
gabrieltetar | 1:7e925468f9d9 | 21 | ETAT_WAIT_FORCE,//Attente du forçage du lancement |
gabrieltetar | 1:7e925468f9d9 | 22 | ETAT_CONFIG, //attente reception du choix du mode( debug ou game) |
gabrieltetar | 1:7e925468f9d9 | 23 | ETAT_GAME_INIT,//Mise en mémoire du fichier de stratégie |
gabrieltetar | 1:7e925468f9d9 | 24 | ETAT_GAME_WAIT_FOR_JACK,//Attente du retrait du jack |
gabrieltetar | 1:7e925468f9d9 | 25 | ETAT_GAME_START,//Lancement du timer 90s |
gabrieltetar | 1:7e925468f9d9 | 26 | ETAT_GAME_LOAD_NEXT_INSTRUCTION, |
gabrieltetar | 1:7e925468f9d9 | 27 | ETAT_GAME_PROCESS_INSTRUCTION, |
gabrieltetar | 1:7e925468f9d9 | 28 | ETAT_GAME_WAIT_ACK, |
gabrieltetar | 1:7e925468f9d9 | 29 | ETAT_GAME_JUMP_TIME, |
gabrieltetar | 1:7e925468f9d9 | 30 | ETAT_GAME_JUMP_CONFIG, |
gabrieltetar | 1:7e925468f9d9 | 31 | ETAT_GAME_JUMP_POSITION, |
gabrieltetar | 1:7e925468f9d9 | 32 | ETAT_GAME_WAIT_END_INSTRUCTION, |
gabrieltetar | 1:7e925468f9d9 | 33 | ETAT_END, |
gabrieltetar | 1:7e925468f9d9 | 34 | ETAT_END_LOOP, |
gabrieltetar | 1:7e925468f9d9 | 35 | } E_stratGameEtat; |
gabrieltetar | 1:7e925468f9d9 | 36 | |
gabrieltetar | 1:7e925468f9d9 | 37 | void canProcessRx(void); |
gabrieltetar | 19:e70b9d4a319c | 38 | void Strategie(void); |
gabrieltetar | 1:7e925468f9d9 | 39 | void automate_etat_ihm(void); |
gabrieltetar | 1:7e925468f9d9 | 40 | void init_lcd(void); |
gabrieltetar | 1:7e925468f9d9 | 41 | short recalageAngulaireCapteur(void); |
gabrieltetar | 1:7e925468f9d9 | 42 | short recalageDistanceX(void); |
gabrieltetar | 1:7e925468f9d9 | 43 | short recalageDistanceY(void); |
gabrieltetar | 1:7e925468f9d9 | 44 | #endif |