strat des robots

Fork of CRAC-Strat_2017 by CRAC Team

Telemetre/Telemetre.h

Committer:
ClementBreteau
Date:
2017-03-31
Revision:
14:c8fc06c4887f
Child:
15:c2fc239e85df

File content as of revision 14:c8fc06c4887f:

#ifndef CRAC_TELEMETRE
#define CRAC_TELEMETRE

#include "global.h"


 struct T_MODULE{
    bool         existe;
    signed short x;
    signed short y;
    int          timeout;
    };
    
struct T_FUSEE{
    int          nb_module;
    signed short x;
    signed short y;
    int          timeout;
    };

struct T_LISTE_MODULES{
    // cote bleu
    T_MODULE module1;    /// 1000 y , 600  x
    T_MODULE module2;    /// 200  y , 600  x
    T_MODULE module3;    /// 500  y , 1100 x
    T_MODULE module4;    /// 900  y , 1400 x
    T_MODULE module5;    /// 800  y , 1850 x
    T_FUSEE  fusee1 ;    /// 0    y , 1350 x
    T_FUSEE  fusee2 ;    /// 1150 y , 0    x
    };


/*********************************************************************************************************/
/* FUNCTION NAME: SendTelemetreID                                                                        */
/* DESCRIPTION  : Envoie un message sans donnée, c'est-à-dire contenant uniquement un ID, sur le bus CAN */
/*********************************************************************************************************/
void SendTelemetreID (unsigned short id);


void TraitementBalle(signed short x_robot, signed short y_robot, signed short theta_robot);

void TraitementCylindre(void);

void TraitementCylindreMultiple(void);

#endif