CAN_Servomoteur_V1_Haoxuan avec lib de servo

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ident_crac.h Source File

ident_crac.h

00001 #ifndef CRAC_IDENTH
00002 #define CRAC_IDENTH
00003 
00004 
00005 
00006 #define GLOBAL_GAME_END 0x004  // Stop fin du match
00007 #define GLOBAL_START 0x002  // Start
00008 #define GLOBAL_END_INIT_POSITION 0x005  // Fin positionnement robot avant depart
00009 #define GLOBAL_FUNNY_ACTION 0x007  // Funny action start  (0: start, 1: stop)
00010 #define GLOBAL_JACK 0x008
00011 #define ACKNOWLEDGE_JACK 0X009
00012 
00013 #define BALISE_STOP 0x003  // Trame stop
00014 
00015 #define BALISE_DANGER 0xA  // Trame danger
00016 
00017 #define BALISE_END_DANGER 0xB  // Trame fin de danger
00018 
00019 
00020 #define ASSERVISSEMENT_STOP 0x001  // Stop moteur
00021 #define ASSERVISSEMENT_SPEED_DANGER 0x006  // Vitesse de danger
00022 #define ASSERVISSEMENT_XYT 0x020  // Asservissement (x,y,theta)  (0 : au choix 1 : avant -1 : arrière)
00023 #define ASSERVISSEMENT_COURBURE 0x021  // Asservissement rayon de courbure  (+ gauche, - droite , sens : 1avt , -1arr; enchainement => 1 oui, 0 => non, 2=>derniére instruction de l'enchainement)
00024 #define ASSERVISSEMENT_CONFIG 0x022  // Asservissement paramètre  (définir les valeurs de vitesse max et d'eccélération max)
00025 #define ASSERVISSEMENT_ROTATION 0x023  // Asservissement rotation
00026 #define ASSERVISSEMENT_RECALAGE 0x024  // Moteur tout droit  (recalage : 0 mouvement seul, 1 x, 2y valeur : coordonnée à laquelle est recalé x/y; enchainement => 1 oui, 0 => non)
00027 
00028 #define ODOMETRIE_BIG_POSITION 0x026  // Odométrie position robot  (Position actuel du robot)
00029 #define ODOMETRIE_BIG_VITESSE 0x027  // Odométrie vitesse  (Indication sur l'état actuel)
00030 #define ODOMETRIE_SMALL_POSITION 0x028  // Odométrie position robot  (Position actuel du robot)
00031 #define ODOMETRIE_SMALL_VITESSE 0x029  // Odométrie vitesse  (Indication sur l'état actuel)
00032 #define ACTION_BIG_DEMARRAGE 0x025  // Action de départ du GR  (Lancement de la trajectoire de départ du GR)
00033 
00034 #define ASSERVISSEMENT_INFO_CONSIGNE 0x1F0  // Info Consigne et Commande moteur
00035 #define ASSERVISSEMENT_CONFIG_KPP_DROITE 0x1F1  // Config coef KPP_Droit
00036 #define ASSERVISSEMENT_CONFIG_KPI_DROITE 0x1F2  // Config coef KPI_Droit
00037 #define ASSERVISSEMENT_CONFIG_KPD_DROITE 0x1F3  // Config coef KPD_Droit
00038 #define ASSERVISSEMENT_CONFIG_KPP_GAUCHE 0x1F4  // Config coef KPP_Gauche
00039 #define ASSERVISSEMENT_CONFIG_KPI_GAUCHE 0x1F5  // Config coef KPI_Gauche
00040 #define ASSERVISSEMENT_CONFIG_KPD_GAUCHE 0x1F6  // Config coef KPD_Gauche
00041 #define ASSERVISSEMENT_ENABLE 0x1F7  // Activation asservissement  (0 : désactivation, 1 : activation)
00042 #define ASSERVISSEMENT_CONFIG_DECEL 0x019 // Asservissement paramètre  (définir les valeurs de vitesse max et de decélération max)
00043 
00044 #define RESET_BALISE 0x030  // Reset balise
00045 #define RESET_MOTEUR 0x031  // Reset moteur
00046 #define RESET_IHM 0x032  // Reset écran tactile
00047 #define RESET_ACTIONNEURS 0x033  // Reset actionneurs
00048 #define RESET_POMPES 0x034  // Reset pompes
00049 #define RESET_AX12 0x035  // Reset AX12
00050 #define RESET_TELEMETRE 0x036 // Reset telemetre
00051 
00052 
00053 
00054 #define RESET_STRAT 0x3A  // Reset stratégie
00055 
00056 
00057 #define CHECK_BALISE 0x060  // Check balise
00058 #define CHECK_MOTEUR 0x061  // Check moteur
00059 #define CHECK_IHM 0x062  // Check écran tactile
00060 #define CHECK_ACTIONNEURS_AVANT 0x063  // Check actionneurs
00061 #define CHECK_ACTIONNEURS_ARRIERE 0x064  // Check pompes
00062 #define CHECK_AX12 0x065  // Check AX12
00063 #define CHECK_OK_TELEMETRE 0x066 // Check telemetre
00064 
00065 
00066 #define ALIVE_BALISE 0x070  // Alive balise
00067 #define ALIVE_MOTEUR 0x071  // Alive moteur
00068 #define ALIVE_IHM 0x072  // Alive écran tactile
00069 #define ALIVE_ACTIONNEURS_AVANT 0x073  // Alive actionneurs
00070 #define ALIVE_ACTIONNEURS_ARRIERE 0x074  // Alive pompes
00071 #define ALIVE_AX12 0x075  // Alive AX12
00072 #define ALIVE_TELEMETRE 0x076 // Alive telemetre
00073 
00074 
00075 
00076 
00077 #define ACKNOWLEDGE_BALISE 0x100  // Acknowledge balise
00078 #define ACKNOWLEDGE_MOTEUR 0x101  // Acknowledge moteur
00079 #define ACKNOWLEDGE_IHM 0x102  // Acknowledge ecran tactile
00080 #define ACKNOWLEDGE_ACTIONNEURS 0x103  // Acknowledge actionneurs
00081 #define ACKNOWLEDGE_POMPES 0x104  // Acknowledge pompes
00082 #define ACKNOWLEDGE_TELEMETRE 0x105 // Acknowledge telemetre
00083 #define ACKNOWLEDGE_AX12 0x106 // Ack ax12
00084 #define ACKNOWLEDGE_STRAT 0x10A  // Acknowledge pompes
00085 #define ACKNOWLEDGE_CAMERA 0x108 //Acknowledge couleur caméra
00086 
00087 
00088 #define INSTRUCTION_END_BALISE 0x110  // Fin instruction balise  (Indique que l'instruction est terminée)
00089 #define INSTRUCTION_END_MOTEUR 0x111  // Fin instruction moteur  (Indique que l'instruction est terminée)
00090 #define INSTRUCTION_END_IHM 0x112  // Fin instruction ecran tactile  (Indique que l'instruction est terminée)
00091 #define INSTRUCTION_END_ACTIONNEURS 0x113  // Fin instruction actionneurs  (Indique que l'instruction est terminée)
00092 #define INSTRUCTION_END_AX12 0x116
00093 
00094 #define ECRAN_CHOICE_STRAT 0x601  // Choix d'une stratégie  (n° strat (1-4))
00095 #define ECRAN_CHOICE_COLOR 0x602  // Couleur  (0->Blue;1->Yellow)
00096 #define ECRAN_START_MATCH 0x603  // Match  (Indique que l'on souhaite commencer le match)
00097 #define ECRAN_DEMO_BEGIN 0x604 // Demo (Indique que l'on souhaite faire une demo)
00098 #define ECRAN_ACK_STRAT 0x611  // Acknowledge stratégie  (si 0 erreur, sinon n°strat)
00099 #define ECRAN_ACK_COLOR 0x612  // Acknowledge couleur  (0->Blue;1->Yellow)
00100 #define ECRAN_ACK_START_MATCH 0x613  // Acknowledge Match  (Indique que l'on a bien reçu le debut du match)
00101 #define ECRAN_ACK_DEMO 0x614
00102 #define ECRAN_ALL_CHECK 0x620  // Carte all check  (Si provient de carte strat => toutes les cartes sont en ligne, Si provient IHM => forcer le lancement)
00103 #define ECRAN_TIME 0x621  // Time match  (Indication de moment cle du temps (10,30,60,70,80,85,90))
00104 #define ECRAN_PRINTF_1 0x6C0  // Tactile printf  (Afficher les 8 permier caractères)
00105 #define ECRAN_PRINTF_2 0x6C1  // Tactile printf  (Afficher les 8 second caractères)
00106 #define ECRAN_PRINTF_3 0x6C2  // Tactile printf  (Afficher les 8 troisième caractères)
00107 #define ECRAN_PRINTF_4 0x6C3  // Tactile printf  (Afficher les 8 quatrième caractères)
00108 #define ECRAN_PRINTF_CLEAR 0x6CF  // Tactile printf clear  (Permet d'effacer l'ecran)
00109 #define ECRAN_CHOICE_START_ACTION 0x604  // Tactile printf clear  (Choisir si il faut lancer le test actionneur)
00110 #define ECRAN_ACK_CHOICE_START_ACTION 0x605  // Tactile printf clear  (Ack du test actionneur)
00111 
00112 #define ERROR_OVERFLOW_BALISE 0x040  // Overflow odométrie
00113 #define ERROR_OVERFLOW_MOTEUR 0x041  // Overflow asservissement
00114 #define ERROR_OVERFLOW_IHM 0x042  // Overflow balise
00115 #define ERROR_OVERFLOW_STRAT 0x043  // Overflow stratégie
00116 #define ERROR_BALISE 0x785  // Bug balise
00117 #define ERROR_RTC 0x786  // Bug RTC
00118 #define ERROR_MOTEUR 0x787  // Bug moteur
00119 #define ERROR_TELEMETRIE 0x788  // Bug télémètre
00120 #define ERROR_STRATEGIE 0x789  // Bug stratégie
00121 
00122 #define DEBUG_STRATEGIE_AUTOMATE 0x760  // Etat automate stratégie  (Permet de savoir l'etat de l'automate)
00123 #define DEBUG_FAKE_JAKE 0x761  // Fake jack  (Permet d'outre passerr le JACk du robot)
00124 #define DEBUG_ASSERV 0x762  // Info debug carte moteur
00125 
00126 //---------------------------------------------------------------------------------------------
00127 #define Monter_immeuble 0x090  // AX12 setGoal  (Indiquer la nouvelle position de l'AX12 !! Ne bouge pas)  //------------
00128 #define SERVO_AX12_PROCESS 0x091  // AX12 processChange  (Lancer le déplacement des AX12)
00129 #define SERVO_AX12_DONE 0x092  // AX12 done  (Indique q'un AX12 a terminé son déplacement)
00130 #define SERVO_XL320 0x093  // XL320
00131 #define SERVO_AX12_ACTION 0x96
00132 //---------------------------------------------------------------------------------------------
00133 
00134 #define TELEMETRE_RECHERCHE_COIN 0x301
00135 #define TELEMETRE_OBJET 0x302
00136 #define OBJET_SUR_TABLE 0x304
00137 
00138 #define POMPE_PWM 0x9A  // pwm des pompes  (pwm entre 0 et 100)
00139 
00140 
00141 //////0x400 Plage de la caméra/////
00142 #define RECEPTION_COULEUR 0x401    
00143 #endif