programme course avec menu amélioré

Dependencies:   MMA8451Q mbed

Fork of Programme_course_vir_am_2 by Freescale_Cachan

Revision:
2:a37de5eb8bf3
Parent:
1:000a03402c6e
Child:
4:8b0215ec788f
diff -r 000a03402c6e -r a37de5eb8bf3 Mlib.h
--- a/Mlib.h	Wed Feb 01 13:41:24 2017 +0000
+++ b/Mlib.h	Fri Mar 17 14:18:04 2017 +0000
@@ -19,16 +19,19 @@
 #define INCREM_BALANCE 300
 #define MARGE_LIGNE 5
 #define MARGE_DISTANCE_LIGNE 10
-#define LUMI_MOYENNE 80
+#define LUMI_MOYENNE 90
+
 #define CORRECTION_VIRAGE 1
 #define MAX_BATTERY 1.3
 #define SEUIL_NB_DERRIVEE 25
-#define KD 600  //valeur de base 400
+#define KD 400  //valeur de base 400
 #define KI 3
 
 #define BOSSE_ACTIVE S2
 
 #define VITESSE 40
+
+#define TAILLE_TAB_INT 6
 /***********************FONCTIONS**********************/
 /**/     /****************CAMERA****************/   /**/
 /**/    void F_GetData();                           /**/
@@ -87,6 +90,8 @@
 extern AnalogIn pot1;
 extern AnalogIn pot2;
 
+//extern DigitalOut RGB_R(LED_RED);
+
 /************TRAITEMENT_IMG************/
 extern Ticker t_clk; 
 extern Ticker t_finInte;
@@ -103,6 +108,9 @@
 extern int ralentire;
 extern MMA8451Q acc;
 extern char last_five[5];
+extern char mem_a;
+extern char mem_b;
+extern char Interval[TAILLE_TAB_INT];
 
 /*************AUTRES_VAR***************/
 extern Ticker t_cyc;