code de start qui marche a la fin du premier match, base pour la suite
Fork of CRAC-Strat_2017_homologation_petit_rob by
Diff: Telemetre/Telemetre.h
- Revision:
- 14:c8fc06c4887f
- Child:
- 15:c2fc239e85df
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Telemetre/Telemetre.h Fri Mar 31 16:20:26 2017 +0000 @@ -0,0 +1,46 @@ +#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 \ No newline at end of file