v2019
Dependencies: CRAC-Strat_2019 SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Dependents: Codeprincipal_2019 CRAC-Strat_2019
Diff: Robots/Strategie_big.cpp
- Revision:
- 0:ad97421fb1fb
- Child:
- 1:116040d14164
diff -r 000000000000 -r ad97421fb1fb Robots/Strategie_big.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Robots/Strategie_big.cpp Wed Apr 13 22:04:54 2016 +0000 @@ -0,0 +1,36 @@ +#include "Strategie_big.h" + +/****************************************************************************************/ +/* FUNCTION NAME: doFunnyAction */ +/* DESCRIPTION : Permet de faire la funny action en fin de partie */ +/****************************************************************************************/ +void doFunnyAction(void) { + + +} + +/****************************************************************************************/ +/* FUNCTION NAME: doAction */ +/* DESCRIPTION : Effectuer une action specifique */ +/****************************************************************************************/ +unsigned char doAction(unsigned char id, unsigned short speed, short angle) { + + switch(id) { + case 20: + + break; + default: + return 0;//L'action n'existe pas, il faut utiliser le CAN + + } + return 1;//L'action est spécifique. + +} + +/****************************************************************************************/ +/* FUNCTION NAME: initRobot */ +/* DESCRIPTION : initialiser le robot */ +/****************************************************************************************/ +void initRobot(void) { + +}