Test

Dependencies:   mbed DRV8825

Revision:
22:f891c2bce091
Parent:
20:7d206773f39e
diff -r e5f0f5abb5ae -r f891c2bce091 pins.h
--- a/pins.h	Sun Oct 25 22:36:51 2020 +0000
+++ b/pins.h	Tue Oct 27 17:27:33 2020 +0000
@@ -1,4 +1,4 @@
-// Nom du fichier : pins.h
+/* #include */
 #include "mbed.h"
 #include "DRV8825.h"
 
@@ -10,21 +10,14 @@
 #include "odo_asserv.h"
 #include "Flag.h"
 
-// #define
-//#define Pi 3.14159265359
-#define _PI_ 3.14159265359
-//#define NbPulseCodeur 1000
-//#define ecartCodeuse 245 // Distance en mm entre les deux roues codeuses
-#define diametreRoueCodeuse 51.450 // Diamètre de la roue codeuse en mm
-#define perimetreRoueCodeuse (diametreRoueCodeuse * Pi)
-#define vitesseSAT 0.250 // m/s 
-#define perimetreE Pi*ecartCodeuse
+/* #define */
+//#define _PI_ 3.14159265359
 
-extern InterruptIn btn;
-//extern DigitalOut myled;
-//extern DigitalIn cordon;
+/* extern */
+extern DigitalOut Led;
+extern DigitalIn Tirette;
+extern InterruptIn BtnBlue;
 
-//Capteurs à ultrasons
 extern DigitalOut trigger;
 extern InterruptIn echo1;
 extern InterruptIn echo2;
@@ -33,15 +26,12 @@
 extern InterruptIn echo5;
 extern InterruptIn echo6;
 
-// Drivers DRV8825 
-//extern BusOut mode;
 extern DigitalOut mode_M0;
 //extern DigitalOut mode_M1;
 //extern DigitalOut mode_M2;
 extern DRV8825 drvGauche; 
 extern DRV8825 drvDroite; 
 
-// Codeurs
 extern InterruptIn cdgA;
 extern DigitalIn cdgB;
 extern InterruptIn cddA;