code petit robot pour homologation

Fork of CRAC-Strat_2017_V2 by CRAC Team

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

Who changed what in which revision?

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