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
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
Generated on Wed Jul 13 2022 17:05:17 by
