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