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_copy by
Robots/StrategieManager.h@12:14729d584500, 2016-05-09 (annotated)
- Committer:
- antbig
- Date:
- Mon May 09 09:10:17 2016 +0000
- Revision:
- 12:14729d584500
- Parent:
- 9:d0042422d95a
1Version utilis? lors du match 5
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| antbig | 1:116040d14164 | 1 | #ifndef CRAC_STRATEGIE_BIG |
| antbig | 1:116040d14164 | 2 | #define CRAC_STRATEGIE_BIG |
| antbig | 0:ad97421fb1fb | 3 | |
| antbig | 0:ad97421fb1fb | 4 | #include "global.h" |
| antbig | 0:ad97421fb1fb | 5 | |
| antbig | 1:116040d14164 | 6 | /****************************************************************************************/ |
| antbig | 1:116040d14164 | 7 | /* FUNCTION NAME: doFunnyAction */ |
| antbig | 1:116040d14164 | 8 | /* DESCRIPTION : Permet de faire la funny action en fin de partie */ |
| antbig | 1:116040d14164 | 9 | /****************************************************************************************/ |
| antbig | 1:116040d14164 | 10 | void doFunnyAction(void); |
| antbig | 1:116040d14164 | 11 | |
| antbig | 1:116040d14164 | 12 | /****************************************************************************************/ |
| antbig | 1:116040d14164 | 13 | /* FUNCTION NAME: doAction */ |
| antbig | 1:116040d14164 | 14 | /* DESCRIPTION : Effectuer une action specifique */ |
| antbig | 1:116040d14164 | 15 | /****************************************************************************************/ |
| antbig | 1:116040d14164 | 16 | unsigned char doAction(unsigned char id, unsigned short speed, short angle); |
| antbig | 1:116040d14164 | 17 | |
| antbig | 1:116040d14164 | 18 | /****************************************************************************************/ |
| antbig | 1:116040d14164 | 19 | /* FUNCTION NAME: initRobot */ |
| antbig | 1:116040d14164 | 20 | /* DESCRIPTION : initialiser le robot */ |
| antbig | 1:116040d14164 | 21 | /****************************************************************************************/ |
| antbig | 1:116040d14164 | 22 | void initRobot(void); |
| antbig | 0:ad97421fb1fb | 23 | |
| antbig | 4:88431b537477 | 24 | /****************************************************************************************/ |
| antbig | 12:14729d584500 | 25 | /* FUNCTION NAME: initRobotActionneur */ |
| antbig | 12:14729d584500 | 26 | /* DESCRIPTION : Initialiser la position des actionneurs du robot */ |
| antbig | 12:14729d584500 | 27 | /****************************************************************************************/ |
| antbig | 12:14729d584500 | 28 | void initRobotActionneur(void); |
| antbig | 12:14729d584500 | 29 | |
| antbig | 12:14729d584500 | 30 | /****************************************************************************************/ |
| antbig | 9:d0042422d95a | 31 | /* FUNCTION NAME: runTest */ |
| antbig | 9:d0042422d95a | 32 | /* DESCRIPTION : tester l'ensemble des actionneurs du robot */ |
| antbig | 9:d0042422d95a | 33 | /****************************************************************************************/ |
| antbig | 9:d0042422d95a | 34 | void runRobotTest(void); |
| antbig | 9:d0042422d95a | 35 | |
| antbig | 9:d0042422d95a | 36 | /****************************************************************************************/ |
| antbig | 4:88431b537477 | 37 | /* FUNCTION NAME: SelectStrategy */ |
| antbig | 4:88431b537477 | 38 | /* DESCRIPTION : Charger le fichier de stratégie correspondante à un id */ |
| antbig | 4:88431b537477 | 39 | /* RETURN : 0=> Erreur, 1=> OK si le fichier existe */ |
| antbig | 4:88431b537477 | 40 | /****************************************************************************************/ |
| antbig | 4:88431b537477 | 41 | int SelectStrategy(unsigned char id); |
| antbig | 4:88431b537477 | 42 | |
| antbig | 12:14729d584500 | 43 | /****************************************************************************************/ |
| antbig | 12:14729d584500 | 44 | /* FUNCTION NAME: needToStop */ |
| antbig | 12:14729d584500 | 45 | /* DESCRIPTION : Savoir si il faut autoriser le stop du robot via balise */ |
| antbig | 12:14729d584500 | 46 | /****************************************************************************************/ |
| antbig | 12:14729d584500 | 47 | unsigned char needToStop(void); |
| antbig | 12:14729d584500 | 48 | |
| antbig | 12:14729d584500 | 49 | /****************************************************************************************/ |
| antbig | 12:14729d584500 | 50 | /* FUNCTION NAME: doBeforeEndAction */ |
| antbig | 12:14729d584500 | 51 | /* DESCRIPTION : Terminer les actions du robot 1s avant la fin du match */ |
| antbig | 12:14729d584500 | 52 | /****************************************************************************************/ |
| antbig | 12:14729d584500 | 53 | void doBeforeEndAction(void); |
| antbig | 12:14729d584500 | 54 | |
| antbig | 0:ad97421fb1fb | 55 | #endif |
