Programme carte strategie (disco)

Dependencies:   mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac

Committer:
antbig
Date:
Wed Apr 13 22:04:54 2016 +0000
Revision:
0:ad97421fb1fb
Child:
1:116040d14164
Ajout interruption fin de match

Who changed what in which revision?

UserRevisionLine numberNew contents of line
antbig 0:ad97421fb1fb 1 #include "Strategie_big.h"
antbig 0:ad97421fb1fb 2
antbig 0:ad97421fb1fb 3 /****************************************************************************************/
antbig 0:ad97421fb1fb 4 /* FUNCTION NAME: doFunnyAction */
antbig 0:ad97421fb1fb 5 /* DESCRIPTION : Permet de faire la funny action en fin de partie */
antbig 0:ad97421fb1fb 6 /****************************************************************************************/
antbig 0:ad97421fb1fb 7 void doFunnyAction(void) {
antbig 0:ad97421fb1fb 8
antbig 0:ad97421fb1fb 9
antbig 0:ad97421fb1fb 10 }
antbig 0:ad97421fb1fb 11
antbig 0:ad97421fb1fb 12 /****************************************************************************************/
antbig 0:ad97421fb1fb 13 /* FUNCTION NAME: doAction */
antbig 0:ad97421fb1fb 14 /* DESCRIPTION : Effectuer une action specifique */
antbig 0:ad97421fb1fb 15 /****************************************************************************************/
antbig 0:ad97421fb1fb 16 unsigned char doAction(unsigned char id, unsigned short speed, short angle) {
antbig 0:ad97421fb1fb 17
antbig 0:ad97421fb1fb 18 switch(id) {
antbig 0:ad97421fb1fb 19 case 20:
antbig 0:ad97421fb1fb 20
antbig 0:ad97421fb1fb 21 break;
antbig 0:ad97421fb1fb 22 default:
antbig 0:ad97421fb1fb 23 return 0;//L'action n'existe pas, il faut utiliser le CAN
antbig 0:ad97421fb1fb 24
antbig 0:ad97421fb1fb 25 }
antbig 0:ad97421fb1fb 26 return 1;//L'action est spécifique.
antbig 0:ad97421fb1fb 27
antbig 0:ad97421fb1fb 28 }
antbig 0:ad97421fb1fb 29
antbig 0:ad97421fb1fb 30 /****************************************************************************************/
antbig 0:ad97421fb1fb 31 /* FUNCTION NAME: initRobot */
antbig 0:ad97421fb1fb 32 /* DESCRIPTION : initialiser le robot */
antbig 0:ad97421fb1fb 33 /****************************************************************************************/
antbig 0:ad97421fb1fb 34 void initRobot(void) {
antbig 0:ad97421fb1fb 35
antbig 0:ad97421fb1fb 36 }