programme ines avce xbee
Dependencies: MMA8451Q mbed xbee_lib
Fork of Programme_course by
Diff: shield.cpp
- Revision:
- 2:ddf9879f0e25
- Parent:
- 1:4a9196bcf97a
diff -r 4a9196bcf97a -r ddf9879f0e25 shield.cpp --- a/shield.cpp Wed Feb 08 15:16:04 2017 +0000 +++ b/shield.cpp Fri Mar 17 14:18:13 2017 +0000 @@ -11,7 +11,7 @@ pc.printf("%hi\n", ajust_vit_bosse); - while(bosse==1) {PWM_motor(100,100);} // acceleration à diminuer pour la competition + while(bosse==1) {PWM_motor(90,90);} // acceleration à diminuer pour la competition while(bosse==3) {PWM_motor(30,30);} @@ -63,9 +63,10 @@ VIT = 0, KP = 0; for(int i = 0; i < 10; i++) { - VIT += ((pot1.read()+1)*(25.0)); + //VIT += ((pot1.read()+1)*(25.0)); KP += ((pot2.read()+1)*100); } - VIT /= 10; - pc.printf("VIT=%d\nKP=%d\n",VIT,KP); + //VIT /= 10; + // pc.printf("VIT=%d\nKP=%d\n",VIT,KP); } +