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