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

Debug/debug.h

Committer:
ClementBreteau
Date:
2017-05-25
Revision:
21:7c60d6dfcab5
Parent:
11:ed13a480ddca

File content as of revision 21:7c60d6dfcab5:

#ifndef CRAC_DEBUG
#define CRAC_DEBUG

#include "global.h"

void debug_Instruction(struct S_Instruction instruction);

char* InstructionTypeToString(enum E_InstructionType type);

char* InstructionDirectionToString(enum E_InstructionDirection type);

char* InstructionPrecisionOuRecalageToString(enum E_InstructionPrecisionOuRecalage type);

char* InstructionNextActionTypeToString(enum E_InstructionNextActionType type);

char* InstructionNextActionJumpTypeToString(enum E_InstructionNextActionJumpType type);

/***
Boucle d'erreur
***/
void errorLoop(void);
/***
Boucle d'erreur si une instruction n'est pas lue correctement
***/
void errorInstructionLoop(void);

/****************************************************************************************/
/* FUNCTION NAME: sendStratEtat                                                         */
/* DESCRIPTION  : permet le debug de l'etat de l'automate de stratégie                  */
/****************************************************************************************/
void sendStratEtat(unsigned char etat, unsigned char currentInstruction);

#endif