Alexandre Pirotte
/
0concours_cachan_programme_ok
ok
Fork of _test_suivi_mur by
globals.cpp@2:82b72fa8dbcd, 2017-05-28 (annotated)
- Committer:
- vermaelen
- Date:
- Sun May 28 17:36:57 2017 +0000
- Revision:
- 2:82b72fa8dbcd
- Child:
- 3:b91371837109
V1;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vermaelen | 2:82b72fa8dbcd | 1 | #include "mbed.h" |
vermaelen | 2:82b72fa8dbcd | 2 | BusOut leds(LED1,LED2,LED3,LED4); |
vermaelen | 2:82b72fa8dbcd | 3 | DigitalOut trigger1(p14); |
vermaelen | 2:82b72fa8dbcd | 4 | DigitalOut trigger2(p16); |
vermaelen | 2:82b72fa8dbcd | 5 | DigitalOut trigger3(p18); |
vermaelen | 2:82b72fa8dbcd | 6 | InterruptIn echo(p11); |
vermaelen | 2:82b72fa8dbcd | 7 | AnalogIn AnaG(p17); |
vermaelen | 2:82b72fa8dbcd | 8 | AnalogIn AnaAV(p15); |
vermaelen | 2:82b72fa8dbcd | 9 | PwmOut MD(p21); //vitesse moteur gauche |
vermaelen | 2:82b72fa8dbcd | 10 | PwmOut MG(p24); //vitesse moteur droit |
vermaelen | 2:82b72fa8dbcd | 11 | DigitalOut sensMG(p23); // sens moteur gauche |
vermaelen | 2:82b72fa8dbcd | 12 | DigitalOut sensMD(p26); // sens moteur droit |
vermaelen | 2:82b72fa8dbcd | 13 | Timer temp,t; |
vermaelen | 2:82b72fa8dbcd | 14 | Ticker tic1,tic2; |
vermaelen | 2:82b72fa8dbcd | 15 | |
vermaelen | 2:82b72fa8dbcd | 16 | int drap=1,flag1=0,flag2=0,flag3=0,flag4=0,flag5=0; |
vermaelen | 2:82b72fa8dbcd | 17 | float US1,US2,US3,AN1,AN2,US1_av=50,US2_av=50,US3_av=50,AN1_av=50,AN2_av=50; |
vermaelen | 2:82b72fa8dbcd | 18 | float E_av,E,iE=0; |
vermaelen | 2:82b72fa8dbcd | 19 | float cmdG=0,cmdD=0; |
vermaelen | 2:82b72fa8dbcd | 20 | int etat=0; |
vermaelen | 2:82b72fa8dbcd | 21 | float iecart=0,ecart_av,ecart; |
vermaelen | 2:82b72fa8dbcd | 22 |