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.
Dependencies: mbed SerialHalfDuplex SDFileSystem liaison_Bluetooth ident_crac DISCO-F469NI_portrait
Robots/StrategieManager.h
- Committer:
- gabrieltetar
- Date:
- 2020-01-30
- Revision:
- 1:7e925468f9d9
File content as of revision 1:7e925468f9d9:
#ifndef CRAC_STRATEGIE_BIG
#define CRAC_STRATEGIE_BIG
#include "global.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);
/****************************************************************************************/
/* FUNCTION NAME: initRobot */
/* DESCRIPTION : initialiser le robot */
/****************************************************************************************/
//void initRobot(void);
/****************************************************************************************/
/* FUNCTION NAME: initRobotActionneur */
/* DESCRIPTION : Initialiser la position des actionneurs du robot */
/****************************************************************************************/
//void initRobotActionneur(void);
/****************************************************************************************/
/* FUNCTION NAME: runTest */
/* DESCRIPTION : tester l'ensemble des actionneurs du robot */
/****************************************************************************************/
void runRobotTest(void);
/****************************************************************************************/
/* FUNCTION NAME: SelectStrategy */
/* DESCRIPTION : Charger le fichier de stratégie correspondante à un id */
/* RETURN : 0=> Erreur, 1=> OK si le fichier existe */
/****************************************************************************************/
int SelectStrategy(unsigned char id);
/****************************************************************************************/
/* FUNCTION NAME: needToStop */
/* DESCRIPTION : Savoir si il faut autoriser le stop du robot via balise */
/****************************************************************************************/
unsigned char needToStop(void);
/****************************************************************************************/
/* FUNCTION NAME: doBeforeEndAction */
/* DESCRIPTION : Terminer les actions du robot 1s avant la fin du match */
/****************************************************************************************/
void doBeforeEndAction(void);
#endif