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.
Dependencies: mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
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