code de start qui marche a la fin du premier match, base pour la suite

Fork of CRAC-Strat_2017_homologation_petit_rob by CRAC Team

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers StrategieManager.h Source File

StrategieManager.h

00001 #ifndef CRAC_STRATEGIE_BIG
00002 #define CRAC_STRATEGIE_BIG
00003 
00004 #include "global.h"
00005 
00006 /****************************************************************************************/
00007 /* FUNCTION NAME: doFunnyAction                                                         */
00008 /* DESCRIPTION  : Permet de faire la funny action en fin de partie                      */
00009 /****************************************************************************************/
00010 void doFunnyAction(void);
00011 
00012 /****************************************************************************************/
00013 /* FUNCTION NAME: doAction                                                              */
00014 /* DESCRIPTION  : Effectuer une action specifique                                       */
00015 /****************************************************************************************/
00016 unsigned char doAction(unsigned char id, unsigned short speed, short angle);
00017 
00018 /****************************************************************************************/
00019 /* FUNCTION NAME: initRobot                                                             */
00020 /* DESCRIPTION  : initialiser le robot                                                  */
00021 /****************************************************************************************/
00022 void initRobot(void);
00023 
00024 /****************************************************************************************/
00025 /* FUNCTION NAME: initRobotActionneur                                                   */
00026 /* DESCRIPTION  : Initialiser la position des actionneurs du robot                      */
00027 /****************************************************************************************/
00028 void initRobotActionneur(void);
00029 
00030 /****************************************************************************************/
00031 /* FUNCTION NAME: runTest                                                               */
00032 /* DESCRIPTION  : tester l'ensemble des actionneurs du robot                            */
00033 /****************************************************************************************/
00034 void runRobotTest(void);
00035 
00036 /****************************************************************************************/
00037 /* FUNCTION NAME: SelectStrategy                                                        */
00038 /* DESCRIPTION  : Charger le fichier de stratégie correspondante à un id                */
00039 /* RETURN       : 0=> Erreur, 1=> OK si le fichier existe                               */
00040 /****************************************************************************************/
00041 int SelectStrategy(unsigned char id);
00042 
00043 /****************************************************************************************/
00044 /* FUNCTION NAME: needToStop                                                            */
00045 /* DESCRIPTION  : Savoir si il faut autoriser le stop du robot via balise               */
00046 /****************************************************************************************/
00047 unsigned char needToStop(void);
00048 
00049 /****************************************************************************************/
00050 /* FUNCTION NAME: doBeforeEndAction                                                     */
00051 /* DESCRIPTION  : Terminer les actions du robot 1s avant la fin du match                */
00052 /****************************************************************************************/
00053 void doBeforeEndAction(void);
00054 
00055 #endif