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@22:c7763a7ec6c7, 2020-06-26 (annotated)
- Committer:
- gabrieltetar
- Date:
- Fri Jun 26 13:08:54 2020 +0000
- Revision:
- 22:c7763a7ec6c7
- Parent:
- 21:d137ec53c3a9
- Child:
- 24:1a13c998c7ac
IHM VERSION TETAR
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 | 21:d137ec53c3a9 | 15 | typedef enum { |
gabrieltetar | 22:c7763a7ec6c7 | 16 | INIT, |
gabrieltetar | 22:c7763a7ec6c7 | 17 | INIT2, |
gabrieltetar | 21:d137ec53c3a9 | 18 | CHOIX, |
gabrieltetar | 22:c7763a7ec6c7 | 19 | DEMO, |
gabrieltetar | 22:c7763a7ec6c7 | 20 | DEMO2, |
gabrieltetar | 21:d137ec53c3a9 | 21 | TEST_MOTEUR, |
gabrieltetar | 21:d137ec53c3a9 | 22 | TEST_COULEUR, |
gabrieltetar | 21:d137ec53c3a9 | 23 | TEST_SERVO_BRAS, |
gabrieltetar | 21:d137ec53c3a9 | 24 | TEST_VENTOUSE, |
gabrieltetar | 22:c7763a7ec6c7 | 25 | TEST_DIVE, |
gabrieltetar | 22:c7763a7ec6c7 | 26 | TEST_ASSERVE, |
gabrieltetar | 21:d137ec53c3a9 | 27 | TEST_AUD, |
gabrieltetar | 21:d137ec53c3a9 | 28 | SELECT_SIDE, |
gabrieltetar | 21:d137ec53c3a9 | 29 | TACTIQUE, |
gabrieltetar | 21:d137ec53c3a9 | 30 | DETAILS, |
gabrieltetar | 21:d137ec53c3a9 | 31 | LECTURE, |
gabrieltetar | 21:d137ec53c3a9 | 32 | LAUNCH, |
gabrieltetar | 21:d137ec53c3a9 | 33 | AFF_WAIT_JACK, |
gabrieltetar | 21:d137ec53c3a9 | 34 | WAIT_JACK, |
gabrieltetar | 21:d137ec53c3a9 | 35 | FIN} T_etat; |
gabrieltetar | 21:d137ec53c3a9 | 36 | |
gabrieltetar | 1:7e925468f9d9 | 37 | typedef enum |
gabrieltetar | 1:7e925468f9d9 | 38 | { |
gabrieltetar | 1:7e925468f9d9 | 39 | ETAT_CHECK_CARTE_SCREEN, //Envoie check carte screen |
gabrieltetar | 1:7e925468f9d9 | 40 | ETAT_CHECK_CARTE_SCREEN_WAIT_ACK, //Time out de 1s si erreur clignotement des led et fin prog |
gabrieltetar | 1:7e925468f9d9 | 41 | ETAT_CHECK_CARTES, //Envoie check toutes les carte |
gabrieltetar | 1:7e925468f9d9 | 42 | ETAT_CHECK_CARTES_WAIT_ACK, //Time out de 1s |
gabrieltetar | 1:7e925468f9d9 | 43 | ETAT_WAIT_FORCE,//Attente du forçage du lancement |
gabrieltetar | 1:7e925468f9d9 | 44 | ETAT_CONFIG, //attente reception du choix du mode( debug ou game) |
gabrieltetar | 1:7e925468f9d9 | 45 | ETAT_GAME_INIT,//Mise en mémoire du fichier de stratégie |
gabrieltetar | 1:7e925468f9d9 | 46 | ETAT_GAME_WAIT_FOR_JACK,//Attente du retrait du jack |
gabrieltetar | 1:7e925468f9d9 | 47 | ETAT_GAME_START,//Lancement du timer 90s |
gabrieltetar | 1:7e925468f9d9 | 48 | ETAT_GAME_LOAD_NEXT_INSTRUCTION, |
gabrieltetar | 1:7e925468f9d9 | 49 | ETAT_GAME_PROCESS_INSTRUCTION, |
gabrieltetar | 1:7e925468f9d9 | 50 | ETAT_GAME_WAIT_ACK, |
gabrieltetar | 1:7e925468f9d9 | 51 | ETAT_GAME_JUMP_TIME, |
gabrieltetar | 1:7e925468f9d9 | 52 | ETAT_GAME_JUMP_CONFIG, |
gabrieltetar | 1:7e925468f9d9 | 53 | ETAT_GAME_JUMP_POSITION, |
gabrieltetar | 1:7e925468f9d9 | 54 | ETAT_GAME_WAIT_END_INSTRUCTION, |
gabrieltetar | 1:7e925468f9d9 | 55 | ETAT_END, |
gabrieltetar | 1:7e925468f9d9 | 56 | ETAT_END_LOOP, |
gabrieltetar | 1:7e925468f9d9 | 57 | } E_stratGameEtat; |
gabrieltetar | 21:d137ec53c3a9 | 58 | extern E_stratGameEtat gameEtat; |
gabrieltetar | 21:d137ec53c3a9 | 59 | extern T_etat strat_etat_s; |
gabrieltetar | 1:7e925468f9d9 | 60 | void canProcessRx(void); |
gabrieltetar | 19:e70b9d4a319c | 61 | void Strategie(void); |
gabrieltetar | 1:7e925468f9d9 | 62 | short recalageAngulaireCapteur(void); |
gabrieltetar | 1:7e925468f9d9 | 63 | short recalageDistanceX(void); |
gabrieltetar | 1:7e925468f9d9 | 64 | short recalageDistanceY(void); |
gabrieltetar | 1:7e925468f9d9 | 65 | #endif |