
code avec modifs, programme mit dans les robots pour les derniers matchs
Dependencies: mbed SerialHalfDuplex SDFileSystem liaison_Bluetooth ident_crac DISCO-F469NI_portrait
Revision 9:5c8be2a80d35, committed 2020-02-10
- Comitter:
- gabrieltetar
- Date:
- Mon Feb 10 08:07:17 2020 +0000
- Parent:
- 8:50afdde4f5bc
- Child:
- 10:1964bb91b925
- Commit message:
- missing files
Changed in this revision
Debug/debug.h | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Debug/debug.h Mon Feb 10 08:07:17 2020 +0000 @@ -0,0 +1,37 @@ +#ifndef CRAC_DEBUG +#define CRAC_DEBUG +//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); + +void debugXYTTarget(signed short target_x_robot, signed short target_y_robot, signed short target_theta_robot) ; + +//void affichage_debug(void); + +#endif \ No newline at end of file