homologation gros robot et test avec les ack de la carte a tout faire

Fork of CRAC-Strat_2017_HOMOLOGATION_PETIT_ROBOT by CRAC Team

Committer:
antbig
Date:
Fri Apr 15 10:49:40 2016 +0000
Revision:
1:116040d14164
Parent:
0:ad97421fb1fb
Child:
4:88431b537477
Premier test fonctionnel avec le petit robot,

Who changed what in which revision?

UserRevisionLine numberNew contents of line
antbig 0:ad97421fb1fb 1 #ifndef CRAC_STRATEGIE
antbig 0:ad97421fb1fb 2 #define CRAC_STRATEGIE
antbig 0:ad97421fb1fb 3
antbig 0:ad97421fb1fb 4 #include "global.h"
antbig 0:ad97421fb1fb 5
antbig 0:ad97421fb1fb 6 typedef enum
antbig 0:ad97421fb1fb 7 {
antbig 0:ad97421fb1fb 8 ETAT_CHECK_CARTE_SCREEN, //Envoie check carte screen
antbig 0:ad97421fb1fb 9 ETAT_CHECK_CARTE_SCREEN_WAIT_ACK, //Time out de 1s si erreur clignotement des led et fin prog
antbig 0:ad97421fb1fb 10 ETAT_CHECK_CARTES, //Envoie check toutes les carte
antbig 0:ad97421fb1fb 11 ETAT_CHECK_CARTES_WAIT_ACK, //Time out de 1s
antbig 0:ad97421fb1fb 12 ETAT_WAIT_FORCE,//Attente du forçage du lancement
antbig 0:ad97421fb1fb 13 ETAT_CONFIG, //attente reception du choix du mode( debug ou game)
antbig 0:ad97421fb1fb 14
antbig 1:116040d14164 15 ETAT_GAME_INIT,//Mise en mémoire du fichier de stratégie
antbig 1:116040d14164 16 ETAT_GAME_WAIT_FOR_JACK,
antbig 0:ad97421fb1fb 17 ETAT_GAME_START,
antbig 0:ad97421fb1fb 18 ETAT_GAME_LOAD_NEXT_INSTRUCTION,
antbig 0:ad97421fb1fb 19 ETAT_GAME_PROCESS_INSTRUCTION,
antbig 0:ad97421fb1fb 20 ETAT_GAME_WAIT_ACK,
antbig 0:ad97421fb1fb 21 ETAT_GAME_JUMP_TIME,
antbig 0:ad97421fb1fb 22 ETAT_GAME_JUMP_POSITION,
antbig 0:ad97421fb1fb 23 ETAT_GAME_WAIT_END_INSTRUCTION,
antbig 0:ad97421fb1fb 24
antbig 0:ad97421fb1fb 25 ETAT_FUNNY_ACTION_START,
antbig 0:ad97421fb1fb 26 ETAT_FUNNY_ACTION_PROCESS,
antbig 0:ad97421fb1fb 27 ETAT_FUNNY_ACTION_END,
antbig 0:ad97421fb1fb 28
antbig 0:ad97421fb1fb 29 ETAT_END,
antbig 0:ad97421fb1fb 30 ETAT_END_LOOP
antbig 0:ad97421fb1fb 31 } E_stratGameEtat;
antbig 0:ad97421fb1fb 32
antbig 0:ad97421fb1fb 33 /**
antbig 0:ad97421fb1fb 34 Automate de gestion du robot
antbig 0:ad97421fb1fb 35 **/
antbig 0:ad97421fb1fb 36 void automate_process(void);
antbig 0:ad97421fb1fb 37
antbig 0:ad97421fb1fb 38 /**
antbig 0:ad97421fb1fb 39 Traitement du buffer CAN
antbig 0:ad97421fb1fb 40 **/
antbig 0:ad97421fb1fb 41 void canProcessRx(void);
antbig 0:ad97421fb1fb 42
antbig 0:ad97421fb1fb 43 #endif