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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers debug.h Source File

debug.h

00001 #ifndef CRAC_DEBUG
00002 #define CRAC_DEBUG
00003 
00004 #include "global.h"
00005 
00006 void debug_Instruction(struct S_Instruction instruction);
00007 
00008 char* InstructionTypeToString(enum E_InstructionType type);
00009 
00010 char* InstructionDirectionToString(enum E_InstructionDirection type);
00011 
00012 char* InstructionPrecisionOuRecalageToString(enum E_InstructionPrecisionOuRecalage type);
00013 
00014 char* InstructionNextActionTypeToString(enum E_InstructionNextActionType type);
00015 
00016 char* InstructionNextActionJumpTypeToString(enum E_InstructionNextActionJumpType type);
00017 
00018 /***
00019 Boucle d'erreur
00020 ***/
00021 void errorLoop(void);
00022 /***
00023 Boucle d'erreur si une instruction n'est pas lue correctement
00024 ***/
00025 void errorInstructionLoop(void);
00026 
00027 /****************************************************************************************/
00028 /* FUNCTION NAME: sendStratEtat                                                         */
00029 /* DESCRIPTION  : permet le debug de l'etat de l'automate de stratégie                  */
00030 /****************************************************************************************/
00031 void sendStratEtat(unsigned char etat, unsigned char currentInstruction);
00032 
00033 #endif