homologation gros robot et test avec les ack de la carte a tout faire

Fork of CRAC-Strat_2017_HOMOLOGATION_PETIT_ROBOT by CRAC Team

Robots/Strategie_big.cpp

Committer:
antbig
Date:
2016-04-26
Revision:
7:dcce34c7e06e
Parent:
4:88431b537477
Child:
8:0edc7dfb7f7e

File content as of revision 7:dcce34c7e06e:

#include "StrategieManager.h"
#ifdef ROBOT_BIG
#include "Config_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 101:
        
        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) {
    AX12_register(1,AX12_SERIAL1);
    AX12_register(2,AX12_SERIAL1);
    AX12_register(3,AX12_SERIAL1);
    AX12_register(4,AX12_SERIAL1);
    AX12_register(5,AX12_SERIAL1);
    AX12_register(6,AX12_SERIAL1);
    AX12_register(7,AX12_SERIAL1);
    AX12_register(8,AX12_SERIAL1);
    AX12_register(9,AX12_SERIAL1);
    AX12_register(11,AX12_SERIAL1);
    AX12_register(13,AX12_SERIAL1);
}

/****************************************************************************************/
/* 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)
{
    switch(id)
    {
        case 1:
        
        break;
    }
    return 0;
}

#endif