code de start qui marche a la fin du premier match, base pour la suite
Fork of CRAC-Strat_2017_homologation_petit_rob by
Strategie/Strategie.h
- Committer:
- antbig
- Date:
- 2016-04-17
- Revision:
- 4:88431b537477
- Parent:
- 1:116040d14164
- Child:
- 5:dcd817534b57
File content as of revision 4:88431b537477:
#ifndef CRAC_STRATEGIE #define CRAC_STRATEGIE #include "global.h" 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_POSITION, ETAT_GAME_WAIT_END_INSTRUCTION, ETAT_END, ETAT_END_LOOP } E_stratGameEtat; /****************************************************************************************/ /* FUNCTION NAME: automate_process */ /* DESCRIPTION : Automate de gestion de la stratégie du robot */ /****************************************************************************************/ void automate_process(void); /****************************************************************************************/ /* FUNCTION NAME: canProcessRx */ /* DESCRIPTION : Fonction de traitement des messages CAN */ /****************************************************************************************/ void canProcessRx(void); #endif