code avec la sortie d'évitement en plus géré par un ticker, ce code et le code "avec_modifs" buggent en match avec seulement la stratégie agressive.

Dependencies:   mbed SerialHalfDuplex SDFileSystem liaison_Bluetooth ident_crac DISCO-F469NI_portrait

Revision:
1:7e925468f9d9
Child:
12:227c15c7ebe6
Child:
14:6aa8aa1699ad
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Globals/global.h	Thu Jan 30 16:48:59 2020 +0000
@@ -0,0 +1,69 @@
+#ifndef GLOBAL_H
+#define GLOBAL_H
+
+#include "mbed.h"
+#include "ident_crac.h"
+
+
+#include <CAN.h>
+#include <DirHandle.h>
+#include "SDFileSystem.h"
+#include "conv_data.h"
+#include "Config_big.h"
+#include "constantes.h"
+#include "Instruction.h"
+#include "Strategie.h"
+#include "lecture_repertoire.h"
+#include "StrategieManager.h"
+#include "SerialHalfDuplex.h"
+#include "debug.h"
+#include "Asservissement.h"
+#include "TS_DISCO_F469NI.h"
+#include "LCD_DISCO_F469NI.h"
+#include "fonts.h"
+#include "F469_GUI.hpp"
+#include "Config_big.h"
+#include "LiaisonBluetooth.h"
+#include "Evitement.h"
+
+//#include "peripheriques.h"
+extern Serial pc;
+extern Serial rn42_Tx;
+extern Serial rn42_Rx;
+extern Serial rn42_pr;
+extern LiaisonBluetooth liaison_Tx;
+extern LiaisonBluetooth liaison_Rx;
+extern LiaisonBluetooth liaison_pr;
+
+extern CAN can1;
+extern CAN can2;
+extern CANMessage msgRxBuffer[SIZE_FIFO];
+extern unsigned char FIFO_ecriture;
+extern char strat_sd[10][SIZE+8];
+extern char PATH[10][SIZE+8];
+
+extern signed char Strategie;
+
+extern int ack_bluetooth;
+
+extern DigitalOut led1,led2,led3,led4;
+extern LCD_DISCO_F469NI lcd;
+extern char cheminFileStart[SIZE+8]; //Le chemin du fichier de strat, utiliser strcpy(cheminFileStart,"/local/strat.txt");
+extern short SCORE_GLOBAL;
+extern short SCORE_PR, SCORE_GR;
+
+extern struct S_Instruction strat_instructions[SIZE_BUFFER_FILE]; //La liste des instruction chargé en mémoire
+extern unsigned char nb_instructions; //Le nombre d'instruction dans le fichier de strategie
+extern unsigned char actual_instruction;//La ligne de l'instruction en cours d'execution
+
+extern unsigned short telemetreDistance;
+extern char couleur1, couleur2, couleur3;
+extern unsigned char InversStrat;//Si à 1, indique que l'on part de l'autre cote de la table(inversion des Y)
+
+extern unsigned short waitingAckID;//L'id du ack attendu
+extern unsigned short waitingAckFrom;//La provenance du ack attendu
+extern char modeTelemetre; // Si à 1, indique que l'on attend une reponse du telemetre 
+extern unsigned short waitingId;
+
+extern unsigned char isStopEnable;
+#endif