code de la carte IHM avant les bugs et avant le travail effectué avec Melchior

Dependencies:   mbed SerialHalfDuplex SDFileSystem liaison_Bluetooth ident_crac DISCO-F469NI_portrait

Debug/debug.h

Committer:
gabrieltetar
Date:
2020-03-03
Revision:
10:1964bb91b925
Parent:
9:5c8be2a80d35
Child:
19:e70b9d4a319c

File content as of revision 10:1964bb91b925:

#ifndef CRAC_DEBUG
#define CRAC_DEBUG
//debug
#include "global.h"
void Debug_Audio(unsigned char repertoire, unsigned char track);
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);

void debugXYTTarget(signed short target_x_robot, signed short target_y_robot, signed short target_theta_robot) ;

//void affichage_debug(void);

#endif