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

Committer:
goldmas
Date:
2021-05-31
Revision:
36:c37dbe2be916
Parent:
35:2a745eeb7922
Child:
37:f1a8734c193d
Child:
38:9d6a3ccc0582

File content as of revision 36:c37dbe2be916:

#ifndef CRAC_STRATEGIE
#define CRAC_STRATEGIE

typedef enum
{
    RECALAGE_1,
    RECULER_1,
    TOURNER,
    RECALAGE_2,
    RECULER_2,
    GOTOPOS,
    FIN_POS,
}E_Stratposdebut;
    
typedef enum {
    INIT,
    ATT,
    CHOIX,
    DEMO,
    DEMO2,
    TEST_MOTEUR, 
    TEST_COULEUR, 
    TEST_SERVO_BRAS, 
    TEST_VENTOUSE, 
    TEST_ELECTROV,
    TEST_AUD, 
    TEST_DIVE,
    TEST_ASSERVE,
    SELECT_SIDE, 
    SELECT_ROB,
    TACTIQUE, 
    DETAILS,
    LECTURE, 
    LAUNCH, 
    AFF_WAIT_JACK, 
    WAIT_JACK,
    FIN} T_etat;
    
typedef enum
{
    ETAT_CHECK_CARTE_SCREEN, //Envoie check carte screen
    ETAT_CHECK_CARTE_SCREEN_WAIT_ACK, //Time out de 1s si erreur clignotement des led et fin prog
    ETAT_CHECK_CARTES, //Envoie check toutes les carte
    ETAT_CHECK_CARTES_WAIT_ACK, //Time out de 1s
    ETAT_WAIT_FORCE,//Attente du forçage du lancement
    ETAT_CONFIG, //attente reception du choix du mode( debug ou game)
    ETAT_GAME_INIT,//Mise en mémoire du fichier de stratégie
    ETAT_GAME_WAIT_FOR_JACK,//Attente du retrait du jack
    ETAT_GAME_START,//Lancement du timer 90s
    ETAT_GAME_LOAD_NEXT_INSTRUCTION,
    ETAT_GAME_PROCESS_INSTRUCTION,
    ETAT_GAME_WAIT_ACK,
    ETAT_GAME_JUMP_TIME,
    ETAT_GAME_JUMP_CONFIG,
    ETAT_GAME_JUMP_POSITION,
    ETAT_GAME_WAIT_END_INSTRUCTION,
    ETAT_END,
    ETAT_END_LOOP,
} E_stratGameEtat;
extern E_stratGameEtat gameEtat;
extern T_etat strat_etat_s;
extern Timer gameTimer;
void canProcessRx(void);
void Strategie(void);
short recalageAngulaireCapteur(void);
short recalageDistanceX(void);
short recalageDistanceY(void);
#endif