![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
...
Diff: globals.cpp
- Revision:
- 3:b91371837109
- Parent:
- 2:82b72fa8dbcd
- Child:
- 7:24a3fa0f912a
diff -r 82b72fa8dbcd -r b91371837109 globals.cpp --- a/globals.cpp Sun May 28 17:36:57 2017 +0000 +++ b/globals.cpp Mon May 29 12:01:43 2017 +0000 @@ -10,12 +10,12 @@ PwmOut MG(p24); //vitesse moteur droit DigitalOut sensMG(p23); // sens moteur gauche DigitalOut sensMD(p26); // sens moteur droit -Timer temp,t; +Timer temp,t,t2; Ticker tic1,tic2; int drap=1,flag1=0,flag2=0,flag3=0,flag4=0,flag5=0; float US1,US2,US3,AN1,AN2,US1_av=50,US2_av=50,US3_av=50,AN1_av=50,AN2_av=50; -float E_av,E,iE=0; +float E_av,E,iE=0,E0=0,E1=0,E2=0,E3=0; float cmdG=0,cmdD=0; int etat=0; float iecart=0,ecart_av,ecart;