Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of CRAC-Strat_2017_HOMOLOGATION_PETIT_ROBOT by
Strategie/Strategie.h
- Committer:
- antbig
- Date:
- 2016-04-15
- Revision:
- 1:116040d14164
- Parent:
- 0:ad97421fb1fb
- Child:
- 4:88431b537477
File content as of revision 1:116040d14164:
#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,
ETAT_GAME_START,
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_FUNNY_ACTION_START,
ETAT_FUNNY_ACTION_PROCESS,
ETAT_FUNNY_ACTION_END,
ETAT_END,
ETAT_END_LOOP
} E_stratGameEtat;
/**
Automate de gestion du robot
**/
void automate_process(void);
/**
Traitement du buffer CAN
**/
void canProcessRx(void);
#endif
