Programme course fonctionnel Jour J Croisement non pris en charge (tourne en rond)
Fork of Programme_course_30Tr by
Diff: shield.cpp
- Revision:
- 5:7714a216c91d
- Parent:
- 4:8b0215ec788f
diff -r 8b0215ec788f -r 7714a216c91d shield.cpp --- a/shield.cpp Wed Mar 22 14:41:20 2017 +0000 +++ b/shield.cpp Fri Mar 24 09:29:12 2017 +0000 @@ -7,7 +7,7 @@ { vitesse_virage = new_bari/2; - ajust_vitesse = ajust_vit_bosse +((ligne_droite*5)/2);-ajust_vit_vir; + ajust_vitesse = ajust_vit_bosse +((ligne_droite*5)/2)-ajust_vit_vir; pc.printf("%hi\n", ajust_vit_bosse); @@ -68,7 +68,7 @@ for(int i = 0; i < 10; i++) { VIT += ((pot1.read()+1)*(25.0)); - KP += ((pot2.read()+1)*100); + KP += ((pot2.read()+1)*75); } VIT /= 10; pc.printf("VIT=%d\nKP=%d\n",VIT,KP); //ici