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
Diff: Strategie/Strategie.h
- Revision:
- 0:ad97421fb1fb
- Child:
- 1:116040d14164
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Strategie/Strategie.h Wed Apr 13 22:04:54 2016 +0000
@@ -0,0 +1,42 @@
+#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_START,
+ ETAT_GAME_WAIT_FOR_JACK,
+ 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
\ No newline at end of file
