
code avec modifs, programme mit dans les robots pour les derniers matchs
Dependencies: mbed SerialHalfDuplex SDFileSystem liaison_Bluetooth ident_crac DISCO-F469NI_portrait
Debug/debug.h@30:059df50682f4, 2021-03-17 (annotated)
- Committer:
- slowness
- Date:
- Wed Mar 17 08:20:38 2021 +0000
- Revision:
- 30:059df50682f4
- Parent:
- 19:e70b9d4a319c
carte strat 2021
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gabrieltetar | 9:5c8be2a80d35 | 1 | #ifndef CRAC_DEBUG |
gabrieltetar | 9:5c8be2a80d35 | 2 | #define CRAC_DEBUG |
gabrieltetar | 9:5c8be2a80d35 | 3 | //debug |
gabrieltetar | 9:5c8be2a80d35 | 4 | #include "global.h" |
gabrieltetar | 10:1964bb91b925 | 5 | void Debug_Audio(unsigned char repertoire, unsigned char track); |
gabrieltetar | 9:5c8be2a80d35 | 6 | void debug_Instruction(struct S_Instruction instruction); |
gabrieltetar | 9:5c8be2a80d35 | 7 | |
gabrieltetar | 9:5c8be2a80d35 | 8 | char* InstructionTypeToString(enum E_InstructionType type); |
gabrieltetar | 9:5c8be2a80d35 | 9 | |
gabrieltetar | 9:5c8be2a80d35 | 10 | char* InstructionDirectionToString(enum E_InstructionDirection type); |
gabrieltetar | 9:5c8be2a80d35 | 11 | |
gabrieltetar | 9:5c8be2a80d35 | 12 | char* InstructionPrecisionOuRecalageToString(enum E_InstructionPrecisionOuRecalage type); |
gabrieltetar | 9:5c8be2a80d35 | 13 | |
gabrieltetar | 9:5c8be2a80d35 | 14 | char* InstructionNextActionTypeToString(enum E_InstructionNextActionType type); |
gabrieltetar | 9:5c8be2a80d35 | 15 | |
gabrieltetar | 9:5c8be2a80d35 | 16 | char* InstructionNextActionJumpTypeToString(enum E_InstructionNextActionJumpType type); |
gabrieltetar | 9:5c8be2a80d35 | 17 | |
gabrieltetar | 9:5c8be2a80d35 | 18 | /*** |
gabrieltetar | 9:5c8be2a80d35 | 19 | Boucle d'erreur |
gabrieltetar | 9:5c8be2a80d35 | 20 | ***/ |
gabrieltetar | 9:5c8be2a80d35 | 21 | void errorLoop(void); |
gabrieltetar | 9:5c8be2a80d35 | 22 | /*** |
gabrieltetar | 9:5c8be2a80d35 | 23 | Boucle d'erreur si une instruction n'est pas lue correctement |
gabrieltetar | 9:5c8be2a80d35 | 24 | ***/ |
gabrieltetar | 9:5c8be2a80d35 | 25 | void errorInstructionLoop(void); |
gabrieltetar | 9:5c8be2a80d35 | 26 | |
gabrieltetar | 9:5c8be2a80d35 | 27 | /****************************************************************************************/ |
gabrieltetar | 9:5c8be2a80d35 | 28 | /* FUNCTION NAME: sendStratEtat */ |
gabrieltetar | 9:5c8be2a80d35 | 29 | /* DESCRIPTION : permet le debug de l'etat de l'automate de stratégie */ |
gabrieltetar | 9:5c8be2a80d35 | 30 | /****************************************************************************************/ |
gabrieltetar | 9:5c8be2a80d35 | 31 | void sendStratEtat(unsigned char etat, unsigned char currentInstruction); |
gabrieltetar | 9:5c8be2a80d35 | 32 | |
gabrieltetar | 9:5c8be2a80d35 | 33 | void debugXYTTarget(signed short target_x_robot, signed short target_y_robot, signed short target_theta_robot) ; |
gabrieltetar | 9:5c8be2a80d35 | 34 | |
gabrieltetar | 9:5c8be2a80d35 | 35 | |
gabrieltetar | 9:5c8be2a80d35 | 36 | #endif |