ok

Dependencies:   mbed

Fork of _test_suivi_mur by christophe vermaelen

Committer:
vermaelen
Date:
Wed Jun 07 16:14:27 2017 +0000
Revision:
8:24a3fa0f912a
Parent:
6:5f7df5c74a77
V1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vermaelen 2:82b72fa8dbcd 1 #ifndef FCT_H
vermaelen 2:82b72fa8dbcd 2 #define FCT_H
vermaelen 2:82b72fa8dbcd 3 //GLOBALES
vermaelen 2:82b72fa8dbcd 4 extern BusOut leds;
vermaelen 8:24a3fa0f912a 5
vermaelen 8:24a3fa0f912a 6 extern Serial CamPixy;
vermaelen 8:24a3fa0f912a 7
vermaelen 8:24a3fa0f912a 8 extern DigitalOut trig1;//US1
vermaelen 8:24a3fa0f912a 9 extern InterruptIn echo1;
vermaelen 8:24a3fa0f912a 10 extern DigitalOut trig2;//US2
vermaelen 8:24a3fa0f912a 11 extern InterruptIn echo2;
vermaelen 8:24a3fa0f912a 12 extern DigitalOut trig3;//US3
vermaelen 8:24a3fa0f912a 13 extern InterruptIn echo3;
vermaelen 8:24a3fa0f912a 14
vermaelen 8:24a3fa0f912a 15 extern I2C monI2C;
vermaelen 8:24a3fa0f912a 16 extern PwmOut Servo;
vermaelen 2:82b72fa8dbcd 17
vermaelen 8:24a3fa0f912a 18 extern AnalogIn SD_1; // capteur de distance courte droite
vermaelen 8:24a3fa0f912a 19 extern AnalogIn SD_2; // capteur de distance courte gauche
vermaelen 8:24a3fa0f912a 20 extern AnalogIn LD_1; // capteur de distance longue droite
vermaelen 8:24a3fa0f912a 21 extern AnalogIn LD_2; // capteur de distance longue gauche
vermaelen 8:24a3fa0f912a 22
vermaelen 8:24a3fa0f912a 23 extern InterruptIn I_D;
vermaelen 8:24a3fa0f912a 24 extern InterruptIn I_G;
vermaelen 8:24a3fa0f912a 25
vermaelen 8:24a3fa0f912a 26 extern SPI spi;
vermaelen 8:24a3fa0f912a 27
vermaelen 8:24a3fa0f912a 28 extern AnalogIn C1;// capteur de ligne blanche 1
vermaelen 8:24a3fa0f912a 29 extern AnalogIn C3;// capteur de ligne blanche 3
vermaelen 8:24a3fa0f912a 30 //-- le capteur de ligne 2 est sur un MCP3201(spi) dont le CS est sur p13
vermaelen 8:24a3fa0f912a 31 extern DigitalOut CS_C2;
vermaelen 8:24a3fa0f912a 32
vermaelen 8:24a3fa0f912a 33 extern PwmOut vitD;
vermaelen 8:24a3fa0f912a 34 extern PwmOut vitG;
vermaelen 8:24a3fa0f912a 35
vermaelen 8:24a3fa0f912a 36 //CONSTANTES
vermaelen 8:24a3fa0f912a 37 #define ADR_PCF 0x70
vermaelen 8:24a3fa0f912a 38 #define PERIOD 0.0001
vermaelen 2:82b72fa8dbcd 39
vermaelen 2:82b72fa8dbcd 40
vermaelen 2:82b72fa8dbcd 41 //PROTOTYPES
vermaelen 8:24a3fa0f912a 42
vermaelen 2:82b72fa8dbcd 43
vermaelen 2:82b72fa8dbcd 44 #endif