strat des robots

Fork of CRAC-Strat_2017 by CRAC Team

Committer:
antbig
Date:
Fri Apr 15 16:43:35 2016 +0000
Revision:
2:8d8e2cf798a3
Parent:
1:116040d14164
Child:
5:dcd817534b57
Version utiliser pour la demo devant prof

Who changed what in which revision?

UserRevisionLine numberNew contents of line
antbig 0:ad97421fb1fb 1 #define GLOBAL_GAME_END 0x004 // Stop fin du match
antbig 0:ad97421fb1fb 2 #define GLOBAL_START 0x002 // Start
antbig 0:ad97421fb1fb 3 #define GLOBAL_END_INIT_POSITION 0x005 // Fin positionnement robot avant depart
antbig 0:ad97421fb1fb 4 #define GLOBAL_FUNNY_ACTION 0x003 // Funny action start (0: start, 1: stop)
antbig 0:ad97421fb1fb 5
antbig 0:ad97421fb1fb 6 #define BALISE_STOP 0x003 // Trame stop
antbig 0:ad97421fb1fb 7 #define BALISE_DANGER 0xA // Trame danger
antbig 0:ad97421fb1fb 8 #define BALISE_END_DANGER 0xB // Trame fin de danger
antbig 0:ad97421fb1fb 9
antbig 0:ad97421fb1fb 10 #define ASSERVISSEMENT_STOP 0x001 // Stop moteur
antbig 0:ad97421fb1fb 11 #define ASSERVISSEMENT_SPEED_DANGER 0x005 // Vitesse de danger
antbig 0:ad97421fb1fb 12 #define ASSERVISSEMENT_XYT 0x020 // Asservissement (x,y,theta) (0 : au choix 1 : avant -1 : arrière)
antbig 0:ad97421fb1fb 13 #define ASSERVISSEMENT_COURBURE 0x021 // Asservissement rayon de courbure (+ gauche, - droite , sens : 1avt , -1arr; enchainement => 1 oui, 0 => non)
antbig 0:ad97421fb1fb 14 #define ASSERVISSEMENT_CONFIG 0x022 // Asservissement paramètre (définir les valeurs)
antbig 0:ad97421fb1fb 15 #define ASSERVISSEMENT_ROTATION 0x023 // Asservissement rotation
antbig 0:ad97421fb1fb 16 #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)
antbig 0:ad97421fb1fb 17
antbig 0:ad97421fb1fb 18 #define ODOMETRIE_BIG_POSITION 0x026 // Odométrie position robot (Position actuel du robot)
antbig 0:ad97421fb1fb 19 #define ODOMETRIE_BIG_VITESSE 0x027 // Odométrie vitesse (Indication sur l'état actuel)
antbig 0:ad97421fb1fb 20 #define ODOMETRIE_SMALL_POSITION 0x028 // Odométrie position robot (Position actuel du robot)
antbig 0:ad97421fb1fb 21 #define ODOMETRIE_SMALL_VITESSE 0x029 // Odométrie vitesse (Indication sur l'état actuel)
antbig 0:ad97421fb1fb 22
antbig 0:ad97421fb1fb 23 #define ASSERVISSEMENT_INFO_CONSIGNE 0x1F0 // Info Consigne et Commande moteur
antbig 0:ad97421fb1fb 24 #define ASSERVISSEMENT_CONFIG_KPP 0x1F1 // Config coef KPP
antbig 0:ad97421fb1fb 25 #define ASSERVISSEMENT_CONFIG_KPI 0x1F2 // Config coef KPI
antbig 0:ad97421fb1fb 26 #define ASSERVISSEMENT_CONFIG_KPD 0x1F3 // Config coef KPD
antbig 0:ad97421fb1fb 27 #define ASSERVISSEMENT_ENABLE 0x1F7 // Activation asservissement (0 : désactivation, 1 : activation)
antbig 0:ad97421fb1fb 28
antbig 0:ad97421fb1fb 29
antbig 0:ad97421fb1fb 30 #define RESET_BALISE 0x030 // Reset balise
antbig 0:ad97421fb1fb 31 #define RESET_MOTEUR 0x031 // Reset moteur
antbig 0:ad97421fb1fb 32 #define RESET_IHM 0x032 // Reset écran tactile
antbig 0:ad97421fb1fb 33 #define RESET_STRAT 0x3A // Reset stratégie
antbig 0:ad97421fb1fb 34
antbig 0:ad97421fb1fb 35 #define CHECK_BALISE 0x060 // Check balise
antbig 0:ad97421fb1fb 36 #define CHECK_MOTEUR 0x061 // Check moteur
antbig 0:ad97421fb1fb 37 #define CHECK_IHM 0x062 // Check écran tactile
antbig 0:ad97421fb1fb 38
antbig 0:ad97421fb1fb 39 #define ALIVE_BALISE 0x070 // Alive balise
antbig 0:ad97421fb1fb 40 #define ALIVE_MOTEUR 0x071 // Alive moteur
antbig 0:ad97421fb1fb 41 #define ALIVE_IHM 0x072 // Alive écran tactile
antbig 0:ad97421fb1fb 42
antbig 0:ad97421fb1fb 43 #define ACKNOWLEDGE_BALISE 0x100 // Acknowledge balise
antbig 0:ad97421fb1fb 44 #define ACKNOWLEDGE_MOTEUR 0x101 // Acknowledge moteur
antbig 0:ad97421fb1fb 45 #define ACKNOWLEDGE_IHM 0x102 // Acknowledge ecran tactile
antbig 0:ad97421fb1fb 46
antbig 0:ad97421fb1fb 47 #define INSTRUCTION_END_BALISE 0x110 // Fin instruction balise (Indique que l'instruction est terminée)
antbig 0:ad97421fb1fb 48 #define INSTRUCTION_END_MOTEUR 0x111 // Fin instruction moteur (Indique que l'instruction est terminée)
antbig 0:ad97421fb1fb 49 #define INSTRUCTION_END_IHM 0x112 // Fin instruction ecran tactile (Indique que l'instruction est terminée)
antbig 0:ad97421fb1fb 50
antbig 0:ad97421fb1fb 51 #define ECRAN_CHOICE_STRAT 0x601 // Choix d'une stratégie (n° strat (1-4))
antbig 2:8d8e2cf798a3 52 #define ECRAN_CHOICE_COLOR 0x602 // Couleur (0->Purple;1->green)
antbig 0:ad97421fb1fb 53 #define ECRAN_START_MATCH 0x603 // Match (Indique que l'on souhaite commencer le match)
antbig 0:ad97421fb1fb 54 #define ECRAN_ACK_STRAT 0x611 // Acknowledge stratégie (si 0 erreur, sinon n°strat)
antbig 2:8d8e2cf798a3 55 #define ECRAN_ACK_COLOR 0x612 // Acknowledge couleur (0->Purple;1->green)
antbig 0:ad97421fb1fb 56 #define ECRAN_ACK_START_MATCH 0x613 // Acknowledge Match (Indique que l'on a bien reçu le debut du match)
antbig 0:ad97421fb1fb 57 #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)
antbig 0:ad97421fb1fb 58 #define ECRAN_TIME 0x621 // Time match (Indication de moment cle du temps (10,30,60,70,80,85,90))
antbig 0:ad97421fb1fb 59 #define ECRAN_PRINTF_1 0x6C0 // Tactile printf (Afficher les 8 permier caractères)
antbig 0:ad97421fb1fb 60 #define ECRAN_PRINTF_2 0x6C1 // Tactile printf (Afficher les 8 second caractères)
antbig 0:ad97421fb1fb 61 #define ECRAN_PRINTF_3 0x6C2 // Tactile printf (Afficher les 8 troisième caractères)
antbig 0:ad97421fb1fb 62 #define ECRAN_PRINTF_4 0x6C3 // Tactile printf (Afficher les 8 quatrième caractères)
antbig 0:ad97421fb1fb 63 #define ECRAN_PRINTF_CLEAR 0x6CF // Tactile printf clear (Permet d'effacer l'ecran)
antbig 0:ad97421fb1fb 64
antbig 0:ad97421fb1fb 65 #define ERROR_OVERFLOW_BALISE 0x040 // Overflow odométrie
antbig 0:ad97421fb1fb 66 #define ERROR_OVERFLOW_MOTEUR 0x041 // Overflow asservissement
antbig 0:ad97421fb1fb 67 #define ERROR_OVERFLOW_IHM 0x042 // Overflow balise
antbig 0:ad97421fb1fb 68 #define ERROR_OVERFLOW_STRAT 0x043 // Overflow stratégie
antbig 0:ad97421fb1fb 69 #define ERROR_BALISE 0x785 // Bug balise
antbig 0:ad97421fb1fb 70 #define ERROR_RTC 0x786 // Bug RTC
antbig 0:ad97421fb1fb 71 #define ERROR_MOTEUR 0x787 // Bug moteur
antbig 0:ad97421fb1fb 72 #define ERROR_TELEMETRIE 0x788 // Bug télémètre
antbig 0:ad97421fb1fb 73 #define ERROR_STRATEGIE 0x789 // Bug stratégie
antbig 0:ad97421fb1fb 74
antbig 0:ad97421fb1fb 75 #define DEBUG_STRATEGIE_AUTOMATE 0x760 // Etat automate stratégie (Permet de savoir l'etat de l'automate)
antbig 1:116040d14164 76 #define DEBUG_FAKE_JAKE 0x761 // Fake jack (Permet d'outre passerr le JACk du robot)
antbig 0:ad97421fb1fb 77
antbig 0:ad97421fb1fb 78 #define SERVO_AX12_SETGOAL 0x090 // AX12 setGoal (Indiquer la nouvelle position de l'AX12 !! Ne bouge pas)
antbig 0:ad97421fb1fb 79 #define SERVO_AX12_PROCESS 0x091 // AX12 processChange (Lancer le déplacement des AX12)
antbig 1:116040d14164 80 #define SERVO_AX12_DONE 0x092 // AX12 done (Indique q'un AX12 a terminé son déplacement)
antbig 1:116040d14164 81 #define SERVO_XL320 0x093 // XL320
antbig 1:116040d14164 82
antbig 2:8d8e2cf798a3 83