programme course avec menu amélioré
Fork of Programme_course_vir_am_2 by
Diff: shield.cpp
- Revision:
- 4:8b0215ec788f
- Parent:
- 1:000a03402c6e
diff -r c0aae5aa230b -r 8b0215ec788f shield.cpp --- a/shield.cpp Sat Mar 18 13:21:28 2017 +0000 +++ b/shield.cpp Wed Mar 22 14:41:20 2017 +0000 @@ -7,8 +7,13 @@ { vitesse_virage = new_bari/2; - ajust_vitesse = (ligne_droite*5)/2; - if(VIT == 0) + ajust_vitesse = ajust_vit_bosse +((ligne_droite*5)/2);-ajust_vit_vir; + + pc.printf("%hi\n", ajust_vit_bosse); + + if(bosse==1) {PWM_motor(90,90);} // acceleration à diminuer pour la competition + else if(bosse==3) {PWM_motor(30,30);} + else if(VIT == 0) { PWM_motor(0,0); }