Programme carte strategie (disco)
Dependencies: mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Robots/StrategieManager.h@60:c7632af62d21, 2019-05-23 (annotated)
- Committer:
- kyxstark
- Date:
- Thu May 23 15:53:48 2019 +0000
- Revision:
- 60:c7632af62d21
- Parent:
- 30:a1e37af4bbde
Carte strat plus lib , mais programme
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 | /****************************************************************************************/ |
Sitkah | 30:a1e37af4bbde | 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 | /****************************************************************************************/ |
Sitkah | 30:a1e37af4bbde | 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 |