Programme course fonctionnel Jour J Croisement non pris en charge (tourne en rond)
Fork of Programme_course_30Tr by
Diff: shield.cpp
- Revision:
- 4:8b0215ec788f
- Parent:
- 1:000a03402c6e
- Child:
- 5:7714a216c91d
--- 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); }